File indexing completed on 2024-12-29 04:50:00
0001 /* 0002 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H 0008 #define KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H 0009 0010 #include <KItinerary/AbstractExtractor> 0011 #include <KItinerary/ExtractorFilter> 0012 0013 namespace KItinerary { 0014 0015 /** Generic PDF boarding pass extractor. */ 0016 class GenericBoardingPassExtractor : public AbstractExtractor 0017 { 0018 public: 0019 GenericBoardingPassExtractor(); 0020 ~GenericBoardingPassExtractor(); 0021 0022 QString name() const override; 0023 bool canHandle(const KItinerary::ExtractorDocumentNode & node) const override; 0024 ExtractorResult extract(const ExtractorDocumentNode &node, const ExtractorEngine *engine) const override; 0025 0026 private: 0027 ExtractorFilter m_filter; 0028 }; 0029 0030 } 0031 0032 #endif // KITINERARY_GENERICBOARDINGPASSEXTRACTOR_H