digiKam
batchtoolsfactory.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 : 2008-11-24
7  * Description : Batch Tools Factory.
8  *
9  * Copyright (C) 2008-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_BATCH_TOOLS_FACTORY_H
25 #define DIGIKAM_BQM_BATCH_TOOLS_FACTORY_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 
31 // Local includes
32 
33 #include "batchtool.h"
34 #include "batchtoolutils.h"
35 
36 namespace Digikam
37 {
38 
39 class DInfoInterface;
40 
41 class BatchToolsFactory : public QObject
42 {
43  Q_OBJECT
44 
45 public:
46 
47  static BatchToolsFactory* instance();
48 
49 public:
50 
51  void registerTool(BatchTool* const tool);
52  BatchTool* findTool(const QString& name, BatchTool::BatchToolGroup group) const;
53  BatchToolsList toolsList() const;
54  DInfoInterface* infoIface() const;
55 
56 private:
57 
58  // Disable
60  ~BatchToolsFactory() override;
61 
62  explicit BatchToolsFactory(QObject*) = delete;
63 
64 private:
65 
66  class Private;
67  Private* const d;
68 
70 };
71 
72 } // namespace Digikam
73 
74 #endif // DIGIKAM_BQM_BATCH_TOOLS_FACTORY_H
Definition: batchtool.h:56
BatchToolGroup
Definition: batchtool.h:62
Definition: batchtoolsfactory.h:42
BatchToolsList toolsList() const
Definition: batchtoolsfactory.cpp:100
BatchTool * findTool(const QString &name, BatchTool::BatchToolGroup group) const
Definition: batchtoolsfactory.cpp:120
DInfoInterface * infoIface() const
Definition: batchtoolsfactory.cpp:105
void registerTool(BatchTool *const tool)
Definition: batchtoolsfactory.cpp:110
friend class BatchToolsFactoryCreator
Definition: batchtoolsfactory.h:69
static BatchToolsFactory * instance()
Definition: batchtoolsfactory.cpp:65
Definition: dinfointerface.h:56
Definition: datefolderview.cpp:43