digiKam
dimgpgfplugin.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2019-09-22
7  * Description : PGF DImg plugin.
8  *
9  * Copyright (C) 2020-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_DIMG_PGF_PLUGIN_H
24 #define DIGIKAM_DIMG_PGF_PLUGIN_H
25 
26 // Qt includes
27 
28 #include <QByteArray>
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "dplugindimg.h"
34 #include "dimg.h"
35 #include "dimgloader.h"
36 
37 #define DPLUGIN_IID "org.kde.digikam.plugin.dimg.PGF"
38 
39 using namespace Digikam;
40 
41 namespace DigikamPGFDImgPlugin
42 {
43 
44 class DImgPGFPlugin : public DPluginDImg
45 {
46  Q_OBJECT
47  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
48  Q_INTERFACES(Digikam::DPluginDImg)
49 
50 public:
51 
52  explicit DImgPGFPlugin(QObject* const parent = nullptr);
53  ~DImgPGFPlugin() override;
54 
55  QString name() const override;
56  QString iid() const override;
57  QIcon icon() const override;
58  QString details() const override;
59  QString description() const override;
60  QList<DPluginAuthor> authors() const override;
61 
62  void setup(QObject* const) override;
63  QMap<QString, QString> extraAboutData() const override;
64 
65  QString loaderName() const override;
66  QString typeMimes() const override;
67  int canRead(const QFileInfo& fileInfo, bool magic) const override;
68  int canWrite(const QString& format) const override;
69  DImgLoader* loader(DImg* const image, const DRawDecoding& rawSettings = DRawDecoding()) const override;
70 };
71 
72 } // namespace DigikamPGFDImgPlugin
73 
74 #endif // DIGIKAM_DIMG_PGF_PLUGIN_H
Definition: dimgpgfplugin.h:45
Definition: dimgloader.h:51
Definition: dimg.h:62
Definition: dplugindimg.h:43
Definition: drawdecoding.h:48
Definition: piwigotalker.h:48
#define DPLUGIN_IID
Definition: dimgpgfplugin.h:37
Definition: dimgpgfplugin.cpp:45
Definition: datefolderview.cpp:43