KFileMetaData

popplerextractor.h
1 /*
2  SPDX-FileCopyrightText: 2012 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 
8 #ifndef POPPLEREXTRACTOR_H
9 #define POPPLEREXTRACTOR_H
10 
11 #include "extractorplugin.h"
12 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
13 #include <poppler-qt5.h>
14 #else
15 #include <poppler-qt6.h>
16 #endif
17 
18 namespace KFileMetaData
19 {
20 
21 class PopplerExtractor : public ExtractorPlugin
22 {
23  Q_OBJECT
24  Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin"
25  FILE "popplerextractor.json")
27 
28 public:
29  explicit PopplerExtractor(QObject* parent = nullptr);
30 
31  QStringList mimetypes() const override;
32  void extract(ExtractionResult* result) override;
33 };
34 }
35 
36 #endif // POPPLEREXTRACTOR_H
Q_OBJECTQ_OBJECT
Q_INTERFACES(...)
The ExtractorPlugin is the base class for all file metadata extractors. It is responsible for extract...
virtual QStringList mimetypes() const =0
Provide a list of mimetypes which are supported by this plugin.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri May 27 2022 03:47:54 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.