KItinerary::IcalEventProcessor

Search for usage in LXR

KItinerary::IcalEventProcessor Class Reference

#include <icaldocumentprocessor.h>

Inheritance diagram for KItinerary::IcalEventProcessor:

Public Member Functions

QJSValue contentToScriptValue (const ExtractorDocumentNode &node, QJSEngine *engine) const override
 
void expandNode (ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
 
bool matches (const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override
 
void postExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
 
void preExtract (ExtractorDocumentNode &node, const ExtractorEngine *engine) 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 ExtractorDocumentNode createNodeFromData (const QByteArray &encodedData) const
 
virtual void destroyNode (ExtractorDocumentNode &node) 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 ical calendar events.

Definition at line 23 of file icaldocumentprocessor.h.

Member Function Documentation

◆ contentToScriptValue()

QJSValue IcalEventProcessor::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 129 of file icaldocumentprocessor.cpp.

◆ expandNode()

void IcalEventProcessor::expandNode ( ExtractorDocumentNode & node,
const ExtractorEngine * engine ) const
overridevirtual

Create child nodes for node, as far as that's necessary for this document type.

Reimplemented from KItinerary::ExtractorDocumentProcessor.

Definition at line 70 of file icaldocumentprocessor.cpp.

◆ matches()

bool IcalEventProcessor::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 64 of file icaldocumentprocessor.cpp.

◆ postExtract()

void IcalEventProcessor::postExtract ( ExtractorDocumentNode & node,
const ExtractorEngine * engine ) const
overridevirtual

Called after extractors have been applied to node.

This can be used for applying document type specific data to the extracted result. The default implementation does nothing.

Reimplemented from KItinerary::ExtractorDocumentProcessor.

Definition at line 117 of file icaldocumentprocessor.cpp.

◆ preExtract()

void IcalEventProcessor::preExtract ( ExtractorDocumentNode & node,
const ExtractorEngine * engine ) const
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 80 of file icaldocumentprocessor.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.