File indexing completed on 2024-06-02 04:17:22
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2011-12-28 0007 * Description : a class to manage Raw to Png conversion using threads 0008 * 0009 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2014 by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_RAW_TO_PNG_CONVERTER_THREAD_H 0017 #define DIGIKAM_RAW_TO_PNG_CONVERTER_THREAD_H 0018 0019 // Qt includes 0020 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "drawdecodersettings.h" 0026 #include "actionthreadbase.h" 0027 0028 using namespace Digikam; 0029 0030 class RAWToPNGConverterThread : public ActionThreadBase 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit RAWToPNGConverterThread(QObject* const parent); 0037 ~RAWToPNGConverterThread() override; 0038 0039 void convertRAWtoPNG(const QList<QUrl>& list, 0040 const DRawDecoderSettings& settings, 0041 int priority = 0); 0042 0043 Q_SIGNALS: 0044 0045 void starting(const QUrl& url); 0046 void finished(const QUrl& url); 0047 void failed(const QUrl& url, const QString& err); 0048 void progress(const QUrl& url, int percent); 0049 0050 private Q_SLOTS: 0051 0052 void slotJobDone(); 0053 void slotJobProgress(int); 0054 void slotJobStarted(); 0055 }; 0056 0057 #endif // DIGIKAM_RAW_TO_PNG_CONVERTER_THREAD_H