digiKam
dngconverterdialog.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * https://www.digikam.org
5  *
6  * Date : 2008-09-24
7  * Description : DNG converter batch dialog
8  *
9  * Copyright (C) 2012 by Smit Mehta <smit dot meh at gmail dot com>
10  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) 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_DNG_CONVERTER_DIALOG_H
25 #define DIGIKAM_DNG_CONVERTER_DIALOG_H
26 
27 // Qt includes
28 
29 #include <QUrl>
30 
31 // Local includes
32 
33 #include "dplugindialog.h"
34 #include "dinfointerface.h"
35 
36 using namespace Digikam;
37 
39 {
40 
41 class DNGConverterActionData;
42 
44 {
45 
46  Q_OBJECT
47 
48 public:
49 
50  explicit DNGConverterDialog(QWidget* const parent, DInfoInterface* const iface);
51  ~DNGConverterDialog() override;
52 
53  void addItems(const QList<QUrl>& itemList);
54 
55 protected:
56 
57  void closeEvent(QCloseEvent* e);
58 
59 private:
60 
61  void readSettings();
62  void saveSettings();
63 
64  void busy(bool busy);
65 
66  void processAll();
67  void processed(const QUrl& url, const QString& tmpFile);
68  void processingFailed(const QUrl& url, int result);
69 
70 private Q_SLOTS:
71 
72  void slotDefault();
73  void slotClose();
74  void slotStartStop();
75  void slotAborted();
76  void slotThreadFinished();
77 
81  void slotIdentify();
82 
83  void slotDNGConverterAction(const DigikamGenericDNGConverterPlugin::DNGConverterActionData&);
84 
85  void slotSetupExifTool();
86 
87 private:
88 
89  class Private;
90  Private* const d;
91 };
92 
93 } // namespace DigikamGenericDNGConverterPlugin
94 
95 #endif // DIGIKAM_DNG_CONVERTER_DIALOG_H
Definition: dngconverterdialog.h:44
Definition: dinfointerface.h:56
Definition: dplugindialog.h:42
Definition: dngconverteractions.h:40
Definition: datefolderview.cpp:43