KItinerary

genericboardingpassextractor.h
1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H
8#define KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H
9
10#include <KItinerary/AbstractExtractor>
11#include <KItinerary/ExtractorFilter>
12
13namespace KItinerary {
14
15/** Generic PDF boarding pass extractor. */
17{
18public:
21
22 QString name() const override;
23 bool canHandle(const KItinerary::ExtractorDocumentNode & node) const override;
24 ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override;
25
26private:
27 ExtractorFilter m_filter;
28};
29
30}
31
32#endif // KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H
Abstract base class for data extractors.
A node in the extracted document object tree.
Semantic data extraction engine.
Determines whether an extractor is applicable to a given email.
Generic extraction result.
ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override
Extract data from node.
bool canHandle(const KItinerary::ExtractorDocumentNode &node) const override
Fast check whether this extractor is applicable for node.
QString name() const override
Identifier for this extractor.
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.