Pimcommon

pluginutil.h
1 /*
2  SPDX-FileCopyrightText: 2016-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "pimcommon_export.h"
10 
11 #include <KPluginMetaData>
12 #include <QPair>
13 #include <QString>
14 #include <QStringList>
15 
16 namespace PimCommon
17 {
18 /**
19  * @brief The PluginUtilData class
20  * @author Laurent Montel <[email protected]>
21  */
22 class PIMCOMMON_EXPORT PluginUtilData
23 {
24 public:
25  PluginUtilData() = default;
26 
27  QStringList mExtraInfo;
28  QString mDescription;
29  QString mIdentifier;
30  QString mName;
31  bool mEnableByDefault = false;
32  bool mHasConfigureDialog = false;
33 };
34 
35 namespace PluginUtil
36 {
37 Q_REQUIRED_RESULT PIMCOMMON_EXPORT bool
38 isPluginActivated(const QStringList &enabledPluginsList, const QStringList &disabledPluginsList, bool isEnabledByDefault, const QString &pluginId);
39 Q_REQUIRED_RESULT PIMCOMMON_EXPORT QPair<QStringList, QStringList> loadPluginSetting(const QString &groupName, const QString &prefixSettingKey);
40 PIMCOMMON_EXPORT void
41 savePluginSettings(const QString &groupName, const QString &prefixSettingKey, const QStringList &enabledPluginsList, const QStringList &disabledPluginsList);
42 Q_REQUIRED_RESULT PIMCOMMON_EXPORT PimCommon::PluginUtilData createPluginMetaData(const KPluginMetaData &metaData);
43 }
44 }
folderdialogacltab.h
The PluginUtilData class.
Definition: pluginutil.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed Sep 28 2022 04:03:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.