File indexing completed on 2025-01-19 03:53:16

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2019-09-08
0007  * Description : a Raw Import plugin based on LibRaw.
0008  *
0009  * SPDX-FileCopyrightText: 2020-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_RAW_IMPORT_NATIVE_PLUGIN_H
0016 #define DIGIKAM_RAW_IMPORT_NATIVE_PLUGIN_H
0017 
0018 // Local includes
0019 
0020 #include "dpluginrawimport.h"
0021 
0022 #define DPLUGIN_IID "org.kde.digikam.plugin.rawimport.Native"
0023 
0024 using namespace Digikam;
0025 
0026 namespace DigikamRawImportNativePlugin
0027 {
0028 
0029 class RawImportNativePlugin : public DPluginRawImport
0030 {
0031     Q_OBJECT
0032     Q_PLUGIN_METADATA(IID DPLUGIN_IID)
0033     Q_INTERFACES(Digikam::DPluginRawImport)
0034 
0035 public:
0036 
0037     explicit RawImportNativePlugin(QObject* const parent = nullptr);
0038     ~RawImportNativePlugin()                                   override;
0039 
0040     QString name()                                       const override;
0041     QString iid()                                        const override;
0042     QIcon   icon()                                       const override;
0043     QString details()                                    const override;
0044     QString description()                                const override;
0045     QList<DPluginAuthor> authors()                       const override;
0046     QString handbookSection()                            const override;
0047     QString handbookChapter()                            const override;
0048     QString handbookReference()                          const override;
0049 
0050     void setup(QObject* const)                                 override;
0051 
0052     bool run(const QString& filePath, const DRawDecoding& def) override;
0053 
0054 private Q_SLOTS:
0055 
0056     void slotLoadRawFromTool();
0057     void slotLoadRaw();
0058 
0059 private:
0060 
0061     QString      m_filePath;
0062     DRawDecoding m_defaultSettings;
0063 };
0064 
0065 } // namespace DigikamRawImportNativePlugin
0066 
0067 #endif // DIGIKAM_RAW_IMPORT_NATIVE_PLUGIN_H