File indexing completed on 2025-03-09 03:58:50
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-11-24 0007 * Description : Batch Tools Factory. 0008 * 0009 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_BQM_BATCH_TOOLS_FACTORY_H 0016 #define DIGIKAM_BQM_BATCH_TOOLS_FACTORY_H 0017 0018 // Qt includes 0019 0020 #include <QObject> 0021 0022 // Local includes 0023 0024 #include "batchtool.h" 0025 #include "batchtoolutils.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class DInfoInterface; 0031 0032 class BatchToolsFactory : public QObject 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 0038 static BatchToolsFactory* instance(); 0039 0040 public: 0041 0042 void registerTool(BatchTool* const tool); 0043 BatchTool* findTool(const QString& name, BatchTool::BatchToolGroup group) const; 0044 BatchToolsList toolsList() const; 0045 DInfoInterface* infoIface() const; 0046 0047 private: 0048 0049 // Disable 0050 BatchToolsFactory(); 0051 ~BatchToolsFactory() override; 0052 0053 explicit BatchToolsFactory(QObject*) = delete; 0054 0055 private: 0056 0057 class Private; 0058 Private* const d; 0059 0060 friend class BatchToolsFactoryCreator; 0061 }; 0062 0063 } // namespace Digikam 0064 0065 #endif // DIGIKAM_BQM_BATCH_TOOLS_FACTORY_H