digiKam
dpluginbqm.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 : 2018-07-30
7  * Description : Batch Queue Manager digiKam plugin definition.
8  *
9  * Copyright (C) 2018-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_DPLUGIN_BQM_H
25 #define DIGIKAM_DPLUGIN_BQM_H
26 
27 // Qt includes
28 
29 #include <QWidget>
30 
31 // Local includes
32 
33 #include "dplugin.h"
34 #include "dpluginloader.h"
35 #include "batchtool.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_GUI_EXPORT DPluginBqm : public DPlugin
42 {
43  Q_OBJECT
44 
45 public:
46 
50  explicit DPluginBqm(QObject* const parent = nullptr);
51 
55  ~DPluginBqm() override;
56 
57 public:
58 
59  bool hasVisibilityProperty() const override;
60 
64  void setVisible(bool b) override;
65 
69  QList<BatchTool*> tools(QObject* const parent) const;
70 
74  int count() const override;
75 
79  BatchTool* findToolByName(const QString& name,
80  QObject* const parent) const;
81 
85  QStringList categories() const override;
86 
90  QString ifaceIid() const override
91  {
92  return QLatin1String(DIGIKAM_DPLUGIN_BQM_IID);
93  };
94 
95 Q_SIGNALS:
96 
97  void signalVisible(bool);
98 
99 protected:
100 
101  void addTool(BatchTool* const t);
102 
103 public:
104 
108  DInfoInterface* infoIface() const;
109 
110 private:
111 
112  class Private;
113  Private* const d;
114 };
115 
116 } // namespace Digikam
117 
118 Q_DECLARE_INTERFACE(Digikam::DPluginBqm, DIGIKAM_DPLUGIN_BQM_IID)
119 
120 #endif // DIGIKAM_DPLUGIN_BQM_H
Definition: batchtool.h:56
Definition: dinfointerface.h:56
Definition: dpluginbqm.h:42
QString ifaceIid() const override
Definition: dpluginbqm.h:90
void signalVisible(bool)
Definition: dplugin.h:61
#define DIGIKAM_DPLUGIN_BQM_IID
Definition: dplugin.h:50
Definition: datefolderview.cpp:43