File indexing completed on 2024-06-23 05:18:35
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "messagecomposer_export.h" 0010 #include <PimCommon/PluginUtil> 0011 #include <QObject> 0012 namespace MessageComposer 0013 { 0014 class PluginEditorManagerPrivate; 0015 class PluginEditor; 0016 /** 0017 * @brief The PluginEditorManager class 0018 * @author Laurent Montel <montel@kde.org> 0019 */ 0020 class MESSAGECOMPOSER_EXPORT PluginEditorManager : public QObject 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit PluginEditorManager(QObject *parent = nullptr); 0025 ~PluginEditorManager() override; 0026 0027 static PluginEditorManager *self(); 0028 0029 [[nodiscard]] QList<PluginEditor *> pluginsList() const; 0030 0031 [[nodiscard]] QList<PimCommon::PluginUtilData> pluginsDataList() const; 0032 0033 [[nodiscard]] QString configGroupName() const; 0034 [[nodiscard]] QString configPrefixSettingKey() const; 0035 [[nodiscard]] PluginEditor *pluginFromIdentifier(const QString &id); 0036 0037 private: 0038 std::unique_ptr<PluginEditorManagerPrivate> const d; 0039 }; 0040 }