KItinerary

mimedocumentprocessor.h
1 /*
2  SPDX-FileCopyrightText: 2021 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <KItinerary/ExtractorDocumentProcessor>
10 
11 namespace KItinerary {
12 
13 /** MIME document processor. */
15 {
16 public:
17  bool canHandleData(const QByteArray &encodedData, QStringView fileName) const override;
18  ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override;
19  ExtractorDocumentNode createNodeFromContent(const QVariant &decodedData) const override;
20  void expandNode(ExtractorDocumentNode& node, const ExtractorEngine *engine) const override;
21  bool matches(const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override;
22  void destroyNode(ExtractorDocumentNode &node) const override;
23 };
24 
25 }
26 
A node in the extracted document object tree.
Determines whether an extractor is applicable to a given email.
bool canHandleData(const QByteArray &encodedData, QStringView fileName) const override
Fast check whether the given encoded data can possibly be processed by this instance.
ExtractorDocumentNode createNodeFromContent(const QVariant &decodedData) const override
Create a document node from an already decoded data type.
Abstract base class of a document type processor.
void expandNode(ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Create child nodes for node, as far as that's necessary for this document type.
void destroyNode(ExtractorDocumentNode &node) const override
Destroys type-specific data in node.
bool matches(const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override
Checks whether the given filter matches node.
Semantic data extraction engine.
ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override
Create a document node from raw data.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:08:25 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.