digiKam
converttodng.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2015-07-18
7  * Description : DNG Raw Converter batch tool.
8  *
9  * Copyright (C) 2015-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_BQM_CONVERT_TO_DNG_H
25 #define DIGIKAM_BQM_CONVERT_TO_DNG_H
26 
27 // Local includes
28 
29 #include "dngsettings.h"
30 #include "dngwriter.h"
31 #include "batchtool.h"
32 
33 using namespace Digikam;
34 
36 {
37 
38 class ConvertToDNG : public BatchTool
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit ConvertToDNG(QObject* const parent = nullptr);
45  ~ConvertToDNG() override;
46 
47  void cancel() override;
48  QString outputSuffix() const override;
49  BatchToolSettings defaultSettings() override;
50 
51  BatchTool* clone(QObject* const parent = nullptr) const override;
52 
53  void registerSettingsWidget() override;
54 
55 private Q_SLOTS:
56 
57  void slotSettingsChanged() override;
58  void slotAssignSettings2Widget() override;
59  void slotSetupExifTool();
60 
61 private:
62 
63  bool toolOperations() override;
64 
65 private:
66 
67  DNGWriter m_dngProcessor;
68  bool m_changeSettings;
69 };
70 
71 } // namespace DigikamBqmConvertToDngPlugin
72 
73 #endif // DIGIKAM_BQM_CONVERT_TO_DNG_H
Definition: converttodng.h:39
Definition: batchtool.h:56
Definition: dngwriter.h:40
Definition: converttodng.cpp:41
Definition: datefolderview.cpp:43
QMap< QString, QVariant > BatchToolSettings
Definition: batchtool.h:48