digiKam
dimgqimageplugin.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-20
7  * Description : QImage 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_QIMAGE_PLUGIN_H
24 #define DIGIKAM_DIMG_QIMAGE_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 
36 #define DPLUGIN_IID "org.kde.digikam.plugin.dimg.QImage"
37 
38 using namespace Digikam;
39 
41 {
42 
44 {
45  Q_OBJECT
46  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
47  Q_INTERFACES(Digikam::DPluginDImg)
48 
49 public:
50 
51  explicit DImgQImagePlugin(QObject* const parent = nullptr);
52  ~DImgQImagePlugin() override;
53 
54  QString name() const override;
55  QString iid() const override;
56  QIcon icon() const override;
57  QString details() const override;
58  QString description() const override;
59  QList<DPluginAuthor> authors() const override;
60 
61  void setup(QObject* const) override;
62 
63  QString loaderName() const override;
64  QString typeMimes() const override;
65  int canRead(const QFileInfo& fileInfo, bool magic) const override;
66  int canWrite(const QString& format) const override;
67  DImgLoader* loader(DImg* const image, const DRawDecoding& rawSettings = DRawDecoding()) const override;
68 };
69 
70 } // namespace DigikamQImageDImgPlugin
71 
72 #endif // DIGIKAM_DIMG_QIMAGE_PLUGIN_H
Definition: dimgqimageplugin.h:44
Definition: dimgloader.h:51
Definition: dimg.h:62
Definition: dplugindimg.h:43
Definition: drawdecoding.h:48
Definition: piwigotalker.h:48
#define DPLUGIN_IID
Definition: dimgqimageplugin.h:36
Definition: dimgqimageloader.cpp:40
Definition: datefolderview.cpp:43