KItinerary::BinaryDocumentProcessor

Search for usage in LXR

KItinerary::BinaryDocumentProcessor Class Reference

#include <binarydocumentprocessor.h>

Inheritance diagram for KItinerary::BinaryDocumentProcessor:

Public Member Functions

QJSValue contentToScriptValue (const ExtractorDocumentNode &node, QJSEngine *engine) const override
 
ExtractorDocumentNode createNodeFromData (const QByteArray &encodedData) const override
 
bool matches (const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override
 
- Public Member Functions inherited from KItinerary::ExtractorDocumentProcessor
virtual bool canHandleData (const QByteArray &encodedData, QStringView fileName) const
 
virtual ExtractorDocumentNode createNodeFromContent (const QVariant &decodedData) const
 
virtual void destroyNode (ExtractorDocumentNode &node) const
 
virtual void expandNode (ExtractorDocumentNode &node, const ExtractorEngine *engine) const
 
virtual void postExtract (ExtractorDocumentNode &node) const
 
virtual void preExtract (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

Processor for generic binary content.

Definition at line 14 of file binarydocumentprocessor.h.

Member Function Documentation

QJSValue BinaryDocumentProcessor::contentToScriptValue ( const ExtractorDocumentNode node,
QJSEngine engine 
) const
overridevirtual

Create a QJSValue for the node content.

The default implementation is sufficient if the content is a QObject pointer, QGadget value, or any built-in type.

Reimplemented from KItinerary::ExtractorDocumentProcessor.

Definition at line 30 of file binarydocumentprocessor.cpp.

ExtractorDocumentNode BinaryDocumentProcessor::createNodeFromData ( const QByteArray encodedData) const
overridevirtual

Create a document node from raw data.

The default implementation produces in invalid node.

Reimplemented from KItinerary::ExtractorDocumentProcessor.

Definition at line 18 of file binarydocumentprocessor.cpp.

bool BinaryDocumentProcessor::matches ( const ExtractorFilter filter,
const ExtractorDocumentNode node 
) const
overridevirtual

Checks whether the given filter matches node.

The default implementation can handle QObject and Q_GADGET types via Qt's property system.

Reimplemented from KItinerary::ExtractorDocumentProcessor.

Definition at line 25 of file binarydocumentprocessor.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 23:05:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.