digiKam
enfusebinary.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-12-23
7  * Description : Autodetect enfuse binary program and version
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_ENFUSE_BINARY_H
25 #define DIGIKAM_ENFUSE_BINARY_H
26 
27 // Local includes
28 
29 #include "dbinaryiface.h"
30 
31 using namespace Digikam;
32 
34 {
35 
36 class EnfuseBinary : public DBinaryIface
37 {
38  Q_OBJECT
39 
40 public:
41 
42  explicit EnfuseBinary()
43  : DBinaryIface(QLatin1String("enfuse"),
44  QLatin1String("3.2"),
45  QLatin1String("enfuse "),
46  0,
47  QLatin1String("Enblend"),
48  QLatin1String("https://sourceforge.net/projects/enblend/files/latest/download"),
49  QLatin1String("ExpoBlending"),
50  QStringList(QLatin1String("-V"))),
51  versionDouble(0)
52  {
53  setup();
54  }
55 
56  ~EnfuseBinary() override
57  {
58  }
59 
60  double getVersion() const;
61 
62 Q_SIGNALS:
63 
64  void signalEnfuseVersion(double version);
65 
66 protected:
67 
68  bool parseHeader(const QString& output) override;
69 
70 private:
71 
72  double versionDouble;
73 
74 private:
75 
76  // Disable
77  explicit EnfuseBinary(QObject*) = delete;
78 };
79 
80 } // namespace DigikamGenericExpoBlendingPlugin
81 
82 #endif // DIGIKAM_ENFUSE_BINARY_H
EnfuseBinary()
Definition: enfusebinary.h:42
~EnfuseBinary() override
Definition: enfusebinary.h:56
Definition: dbinaryiface.h:46
Definition: bracketstack.cpp:43
Definition: datefolderview.cpp:43