File indexing completed on 2025-01-05 03:51:26

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2015-07-18
0007  * Description : DNG Raw Converter batch tool.
0008  *
0009  * SPDX-FileCopyrightText: 2015-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_BQM_CONVERT_TO_DNG_H
0016 #define DIGIKAM_BQM_CONVERT_TO_DNG_H
0017 
0018 // Local includes
0019 
0020 #include "dngsettings.h"
0021 #include "dngwriter.h"
0022 #include "batchtool.h"
0023 
0024 using namespace Digikam;
0025 
0026 namespace DigikamBqmConvertToDngPlugin
0027 {
0028 
0029 class ConvertToDNG : public BatchTool
0030 {
0031     Q_OBJECT
0032 
0033 public:
0034 
0035     explicit ConvertToDNG(QObject* const parent = nullptr);
0036     ~ConvertToDNG() override;
0037 
0038     void cancel()                                           override;
0039     QString outputSuffix()                            const override;
0040     BatchToolSettings defaultSettings()                     override;
0041 
0042     BatchTool* clone(QObject* const parent = nullptr) const override;
0043 
0044     void registerSettingsWidget()                           override;
0045 
0046 private Q_SLOTS:
0047 
0048     void slotSettingsChanged()                              override;
0049     void slotAssignSettings2Widget()                        override;
0050     void slotSetupExifTool();
0051 
0052 private:
0053 
0054     bool toolOperations()                                   override;
0055 
0056 private:
0057 
0058     DNGWriter m_dngProcessor;
0059     bool      m_changeSettings;
0060 };
0061 
0062 } // namespace DigikamBqmConvertToDngPlugin
0063 
0064 #endif // DIGIKAM_BQM_CONVERT_TO_DNG_H