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-18 0007 * Description : ART raw import plugin. 0008 * 0009 * SPDX-FileCopyrightText: 2019-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_ART_PLUGIN_H 0016 #define DIGIKAM_RAW_IMPORT_ART_PLUGIN_H 0017 0018 // Qt includes 0019 0020 #include <QProcess> 0021 0022 // Local includes 0023 0024 #include "dpluginrawimport.h" 0025 0026 #define DPLUGIN_IID "org.kde.digikam.plugin.rawimport.ART" 0027 0028 using namespace Digikam; 0029 0030 namespace DigikamRawImportARTPlugin 0031 { 0032 0033 // cppcheck-suppress noConstructor 0034 class ARTRawImportPlugin : public DPluginRawImport 0035 { 0036 Q_OBJECT 0037 Q_PLUGIN_METADATA(IID DPLUGIN_IID) 0038 Q_INTERFACES(Digikam::DPluginRawImport) 0039 0040 public: 0041 0042 explicit ARTRawImportPlugin(QObject* const parent = nullptr); 0043 ~ARTRawImportPlugin() override; 0044 0045 QString name() const override; 0046 QString iid() const override; 0047 QIcon icon() const override; 0048 QString details() const override; 0049 QString description() const override; 0050 QList<DPluginAuthor> authors() const override; 0051 QString handbookSection() const override; 0052 QString handbookChapter() const override; 0053 QString handbookReference() const override; 0054 QString getRawProgram() const override; 0055 0056 void setup(QObject* const) override; 0057 0058 bool run(const QString& filePath, const DRawDecoding& def) override; 0059 0060 private Q_SLOTS: 0061 0062 void slotErrorOccurred(QProcess::ProcessError); 0063 void slotProcessFinished(int, QProcess::ExitStatus); 0064 void slotProcessReadyRead(); 0065 0066 private: 0067 0068 class Private; 0069 Private* const d; 0070 }; 0071 0072 } // namespace DigikamRawImportARTPlugin 0073 0074 #endif // DIGIKAM_RAW_IMPORT_ART_PLUGIN_H