KItinerary::SsbDocumentProcessor
#include <eradocumentprocessor.h>
Public Member Functions | |
bool | canHandleData (const QByteArray &encodedData, QStringView fileName) const override |
ExtractorDocumentNode | createNodeFromData (const QByteArray &encodedData) const override |
void | preExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) const override |
Public Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
virtual QJSValue | contentToScriptValue (const ExtractorDocumentNode &node, QJSEngine *engine) const |
virtual ExtractorDocumentNode | createNodeFromContent (const QVariant &decodedData) const |
virtual void | destroyNode (ExtractorDocumentNode &node) const |
virtual void | expandNode (ExtractorDocumentNode &node, const ExtractorEngine *engine) const |
virtual bool | matches (const ExtractorFilter &filter, const ExtractorDocumentNode &node) const |
virtual void | postExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) const |
virtual void | reduceNode (ExtractorDocumentNode &node) const |
Additional Inherited Members | |
Protected Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
template<typename T > | |
void | destroyIfOwned (ExtractorDocumentNode &node) const |
Static Protected Member Functions inherited from KItinerary::ExtractorDocumentProcessor | |
static bool | matchesGadget (const ExtractorFilter &filter, const QMetaObject *mo, const void *obj) |
template<typename T > | |
static bool | matchesGadget (const ExtractorFilter &filter, const T *obj) |
Detailed Description
Document processor for ERA SSB ticket barcodes.
Definition at line 22 of file eradocumentprocessor.h.
Member Function Documentation
◆ canHandleData()
|
overridevirtual |
Fast check whether the given encoded data can possibly be processed by this instance.
The default implementation returns false, relying on QMimeDatabase for detection.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 38 of file eradocumentprocessor.cpp.
◆ createNodeFromData()
|
overridevirtual |
Create a document node from raw data.
The default implementation produces in invalid node.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 43 of file eradocumentprocessor.cpp.
◆ preExtract()
|
overridevirtual |
Called before extractors are applied to node
.
This can be used for performing document type specific extraction steps. The default implementation does nothing.
Reimplemented from KItinerary::ExtractorDocumentProcessor.
Definition at line 64 of file eradocumentprocessor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.