KItinerary

binarydocumentprocessor.h
1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <KItinerary/ExtractorDocumentProcessor>
10
11namespace KItinerary {
12
13/** Processor for generic binary content. */
15{
16public:
17 ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override;
18 bool matches(const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override;
19 QJSValue contentToScriptValue(const ExtractorDocumentNode &node, QJSEngine *engine) const override;
20};
21
22}
23
Processor for generic binary content.
bool matches(const ExtractorFilter &filter, const ExtractorDocumentNode &node) const override
Checks whether the given filter matches node.
ExtractorDocumentNode createNodeFromData(const QByteArray &encodedData) const override
Create a document node from raw data.
QJSValue contentToScriptValue(const ExtractorDocumentNode &node, QJSEngine *engine) const override
Create a QJSValue for the node content.
A node in the extracted document object tree.
Abstract base class of a document type processor.
Determines whether an extractor is applicable to a given email.
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:49 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.