File indexing completed on 2025-03-16 12:49:36
0001 /* 0002 SPDX-FileCopyrightText: 2012 Vishesh Handa <me@vhanda.in> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 0008 #ifndef POPPLEREXTRACTOR_H 0009 #define POPPLEREXTRACTOR_H 0010 0011 #include "extractorplugin.h" 0012 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) 0013 #include <poppler-qt5.h> 0014 #else 0015 #include <poppler-qt6.h> 0016 #endif 0017 0018 namespace KFileMetaData 0019 { 0020 0021 class PopplerExtractor : public ExtractorPlugin 0022 { 0023 Q_OBJECT 0024 Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin" 0025 FILE "popplerextractor.json") 0026 Q_INTERFACES(KFileMetaData::ExtractorPlugin) 0027 0028 public: 0029 explicit PopplerExtractor(QObject* parent = nullptr); 0030 0031 QStringList mimetypes() const override; 0032 void extract(ExtractionResult* result) override; 0033 }; 0034 } 0035 0036 #endif // POPPLEREXTRACTOR_H