File indexing completed on 2024-05-19 03:56:45
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 #include <poppler-qt6.h> 0013 0014 namespace KFileMetaData 0015 { 0016 0017 class PopplerExtractor : public ExtractorPlugin 0018 { 0019 Q_OBJECT 0020 Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin" 0021 FILE "popplerextractor.json") 0022 Q_INTERFACES(KFileMetaData::ExtractorPlugin) 0023 0024 public: 0025 explicit PopplerExtractor(QObject* parent = nullptr); 0026 0027 QStringList mimetypes() const override; 0028 void extract(ExtractionResult* result) override; 0029 }; 0030 } 0031 0032 #endif // POPPLEREXTRACTOR_H