File indexing completed on 2024-12-22 05:01:00

0001 /*
0002   SPDX-FileCopyrightText: 2016-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include <PimCommon/ConfigurePluginsListWidget>
0010 #include <PimCommon/PluginUtil>
0011 #include <QList>
0012 class ConfigurePluginsListWidget : public PimCommon::ConfigurePluginsListWidget
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ConfigurePluginsListWidget(QWidget *parent = nullptr);
0017     ~ConfigurePluginsListWidget() override;
0018 
0019     void save() override;
0020     void doLoadFromGlobalSettings() override;
0021     void doResetToDefaultsOther() override;
0022     void initialize() override;
0023     void defaults() override;
0024 
0025 private:
0026     void slotConfigureClicked(const QString &configureGroupName, const QString &identifier);
0027     void initializeAgentPlugins();
0028     [[nodiscard]] PimCommon::PluginUtilData createAgentPluginData(const QString &agentIdentifier, const QString &path);
0029     [[nodiscard]] bool agentActivateState(const QString &agentIdentifier, const QString &pathName);
0030     void changeAgentActiveState(const QString &agentIdentifier, const QString &path, bool enable);
0031     void saveAkonadiAgent();
0032     QList<PluginItem *> mPluginEditorItems;
0033     QList<PluginItem *> mPluginMessageViewerItems;
0034     QList<PluginItem *> mPluginCheckBeforeSendItems;
0035     QList<PluginItem *> mPluginEditorInitItems;
0036     QList<PluginItem *> mPluginEditorGrammarItems;
0037     QList<PluginItem *> mPluginGenericItems;
0038     QList<PluginItem *> mPluginWebEngineItems;
0039     QList<PluginItem *> mPluginHeaderStyleItems;
0040     QList<PluginItem *> mAgentPluginsItems;
0041     QList<PluginItem *> mPluginConvertTextItems;
0042     QList<PluginItem *> mPluginConfigureItems;
0043     QList<PluginItem *> mPluginCheckBeforeDeletingItems;
0044     QList<PimCommon::PluginUtilData> mPluginUtilDataList;
0045 };