File indexing completed on 2025-01-19 03:51:29

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2012-12-24
0007  * Description : DNG Converter thread
0008  *
0009  * SPDX-FileCopyrightText: 2012 by Smit Mehta <smit dot meh at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DNG_CONVERTER_TASK_H
0016 #define DIGIKAM_DNG_CONVERTER_TASK_H
0017 
0018 // Qt includes
0019 
0020 #include <QUrl>
0021 
0022 // Local includes
0023 
0024 #include "actionthreadbase.h"
0025 #include "dngconverteractions.h"
0026 
0027 using namespace Digikam;
0028 
0029 namespace DigikamGenericDNGConverterPlugin
0030 {
0031 
0032 class DNGConverterTask : public ActionJob
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037 
0038     explicit DNGConverterTask(QObject* const parent,
0039                               const QUrl& url,
0040                               const DNGConverterAction& action);
0041     ~DNGConverterTask();
0042 
0043     void setBackupOriginalRawFile(bool b);
0044     void setCompressLossLess(bool b);
0045     void setUpdateFileDate(bool b);
0046     void setPreviewMode(int mode);
0047 
0048 Q_SIGNALS:
0049 
0050     void signalStarting(const DigikamGenericDNGConverterPlugin::DNGConverterActionData& ad);
0051     void signalFinished(const DigikamGenericDNGConverterPlugin::DNGConverterActionData& ad);
0052 
0053 public Q_SLOTS:
0054 
0055     void slotCancel();
0056 
0057 protected:
0058 
0059     void run();
0060 
0061 private:
0062 
0063     class Private;
0064     Private* const d;
0065 };
0066 
0067 } // namespace DigikamGenericDNGConverterPlugin
0068 
0069 #endif // DIGIKAM_DNG_CONVERTER_TASK_H
0070