File indexing completed on 2024-06-23 05:18:35
0001 /* 0002 SPDX-FileCopyrightText: 2016-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 PluginEditorCheckBeforeSendManagerPrivate; 0015 class PluginEditorCheckBeforeSend; 0016 /** 0017 * @brief The PluginEditorCheckBeforeSendManager class 0018 * @author Laurent Montel <montel@kde.org> 0019 */ 0020 class MESSAGECOMPOSER_EXPORT PluginEditorCheckBeforeSendManager : public QObject 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit PluginEditorCheckBeforeSendManager(QObject *parent = nullptr); 0025 ~PluginEditorCheckBeforeSendManager() override; 0026 0027 static PluginEditorCheckBeforeSendManager *self(); 0028 0029 [[nodiscard]] QList<PluginEditorCheckBeforeSend *> pluginsList() const; 0030 0031 [[nodiscard]] QString configGroupName() const; 0032 [[nodiscard]] QString configPrefixSettingKey() const; 0033 [[nodiscard]] QList<PimCommon::PluginUtilData> pluginsDataList() const; 0034 [[nodiscard]] PluginEditorCheckBeforeSend *pluginFromIdentifier(const QString &id); 0035 0036 private: 0037 std::unique_ptr<PluginEditorCheckBeforeSendManagerPrivate> const d; 0038 }; 0039 }