KFileMetaData

pngextractor.h
1 /*
2  SPDX-FileCopyrightText: 2022 Kai Uwe Broulik <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef PNGEXTRACTOR_H
8 #define PNGEXTRACTOR_H
9 
10 #include "extractorplugin.h"
11 
12 namespace KFileMetaData
13 {
14 
15 class PngExtractor : public ExtractorPlugin
16 {
17  Q_OBJECT
18  Q_PLUGIN_METADATA(IID "org.kde.kf5.kfilemetadata.ExtractorPlugin"
19  FILE "pngextractor.json")
21 
22 public:
23  explicit PngExtractor(QObject *parent = nullptr);
24 
25  void extract(ExtractionResult *result) override;
26  QStringList mimetypes() const override;
27 };
28 
29 } // namespace KFileMetaData
30 
31 #endif // PNGEXTRACTOR_H
Q_OBJECTQ_OBJECT
virtual void extract(ExtractionResult *result)=0
The main function of the plugin that is responsible for extracting the data and filling up the Extrac...
Q_INTERFACES(...)
The ExtractorPlugin is the base class for all file metadata extractors. It is responsible for extract...
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 03:48:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.