digiKam
dimgtiffplugin.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 : TIFF 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_TIFF_PLUGIN_H
24 #define DIGIKAM_DIMG_TIFF_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.TIFF"
38 
39 using namespace Digikam;
40 
41 namespace DigikamTIFFDImgPlugin
42 {
43 
45 {
46  Q_OBJECT
47  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
48  Q_INTERFACES(Digikam::DPluginDImg)
49 
50 public:
51 
52  explicit DImgTIFFPlugin(QObject* const parent = nullptr);
53  ~DImgTIFFPlugin() 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 
64  QString loaderName() const override;
65  QString typeMimes() const override;
66  int canRead(const QFileInfo& fileInfo, bool magic) const override;
67  int canWrite(const QString& format) const override;
68  DImgLoader* loader(DImg* const image, const DRawDecoding& rawSettings = DRawDecoding()) const override;
69 };
70 
71 } // namespace DigikamTIFFDImgPlugin
72 
73 #endif // DIGIKAM_DIMG_TIFF_PLUGIN_H
Definition: dimgtiffplugin.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: dimgtiffplugin.h:37
Definition: dimgtiffloader.cpp:48
Definition: datefolderview.cpp:43