digiKam
dpluginrawimport.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-08
7  * Description : RAW Import digiKam plugin definition.
8  *
9  * Copyright (C) 2019-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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DPLUGIN_RAW_IMPORT_H
25 #define DIGIKAM_DPLUGIN_RAW_IMPORT_H
26 
27 // Local includes
28 
29 #include "dplugin.h"
30 #include "dimg.h"
31 #include "loadingdescription.h"
32 #include "dpluginloader.h"
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class DIGIKAM_EXPORT DPluginRawImport : public DPlugin
39 {
40  Q_OBJECT
41 
42 public:
43 
47  explicit DPluginRawImport(QObject* const parent = nullptr);
48 
52  ~DPluginRawImport() override;
53 
54 public:
55 
59  int count() const override { return 1; };
60 
64  QStringList categories() const override { return QStringList(); };
65 
69  void setVisible(bool) override {};
70 
74  QString ifaceIid() const override { return QLatin1String(DIGIKAM_DPLUGIN_RAWIMPORT_IID); };
75 
76 public:
77 
82  virtual bool run(const QString& path, const DRawDecoding& def) = 0;
83 
84 Q_SIGNALS:
85 
90 
95 };
96 
97 } // namespace Digikam
98 
100 
101 #endif // DIGIKAM_DPLUGIN_RAW_IMPORT_H
Definition: dimg.h:62
Definition: dpluginrawimport.h:39
int count() const override
Definition: dpluginrawimport.h:59
void signalDecodedImage(const Digikam::LoadingDescription &, const Digikam::DImg &)
QString ifaceIid() const override
Definition: dpluginrawimport.h:74
void setVisible(bool) override
Definition: dpluginrawimport.h:69
QStringList categories() const override
Definition: dpluginrawimport.h:64
virtual bool run(const QString &path, const DRawDecoding &def)=0
void signalLoadRaw(const Digikam::LoadingDescription &)
Definition: dplugin.h:61
Definition: drawdecoding.h:48
Definition: loadingdescription.h:45
#define DIGIKAM_DPLUGIN_RAWIMPORT_IID
Definition: dplugin.h:51
Definition: datefolderview.cpp:43