digiKam
expoblendingmanager.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 : 2009-11-13
7  * Description : a tool to blend bracketed images.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2012-2015 by Benjamin Girault <benjamin dot girault 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_EXPO_BLENDING_MANAGER_H
25 #define DIGIKAM_EXPO_BLENDING_MANAGER_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 #include <QPointer>
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "dplugingeneric.h"
36 #include "expoblendingactions.h"
37 
38 using namespace Digikam;
39 
41 {
42 
43 class ExpoBlendingThread;
44 class AlignBinary;
45 class EnfuseBinary;
46 
47 class ExpoBlendingManager : public QObject
48 {
49  Q_OBJECT
50 
51 public:
52 
53  explicit ExpoBlendingManager(QObject* const parent = nullptr);
54  ~ExpoBlendingManager() override;
55 
56  static QPointer<ExpoBlendingManager> internalPtr;
57  static ExpoBlendingManager* instance();
58  static bool isCreated();
59 
60  bool checkBinaries();
61 
62  void setItemsList(const QList<QUrl>& urls);
63  QList<QUrl>& itemsList() const;
64 
65  void setPlugin(DPlugin* const plugin);
66 
67  void setPreProcessedMap(const ExpoBlendingItemUrlsMap& urls);
68  ExpoBlendingItemUrlsMap& preProcessedMap() const;
69 
70  ExpoBlendingThread* thread() const;
71  AlignBinary& alignBinary() const;
72  EnfuseBinary& enfuseBinary() const;
73 
74  void run();
75 
79  void cleanUp();
80 
81 Q_SIGNALS:
82 
83  void updateHostApp(const QUrl& url);
84 
85 private Q_SLOTS:
86 
87  void slotStartDialog();
88  void slotSetEnfuseVersion(double version);
89 
90 private:
91 
92  void startWizard();
93 
94 private:
95 
96  class Private;
97  Private* const d;
98 };
99 
100 } // namespace DigikamGenericExpoBlendingPlugin
101 
102 #endif // DIGIKAM_EXPO_BLENDING_MANAGER_H
Definition: expoblendingmanager.h:48
static QPointer< ExpoBlendingManager > internalPtr
Definition: expoblendingmanager.h:56
Definition: expoblendingthread.h:48
Definition: dplugin.h:61
Definition: bracketstack.cpp:43
QMap< QUrl, ExpoBlendingItemPreprocessedUrls > ExpoBlendingItemUrlsMap
Map between original Url and processed temp Urls.
Definition: expoblendingactions.h:69
Definition: datefolderview.cpp:43