summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-08 11:22:56 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-08 11:22:56 (GMT)
commit5c39a26fb0449d243d9707682b9778321ab91ec0 (patch)
tree0967493aef74ae33470d7c469859036364d98000
parent4914065b84de1cccdc44736a01e46327b01d74ee (diff)
Create a PluginUtilData => avoid to duplicate code
-rw-r--r--src/genericplugins/pluginutil.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/genericplugins/pluginutil.h b/src/genericplugins/pluginutil.h
index c15227d..b0b0bf3 100644
--- a/src/genericplugins/pluginutil.h
+++ b/src/genericplugins/pluginutil.h
@@ -27,6 +27,21 @@
namespace PimCommon
{
+
+class PIMCOMMON_EXPORT PluginUtilData
+{
+public:
+ PluginUtilData()
+ : mEnableByDefault(false)
+ {
+
+ }
+ QString mDescription;
+ QString mIdentifier;
+ QString mName;
+ bool mEnableByDefault;
+};
+
namespace PluginUtil
{
PIMCOMMON_EXPORT bool isPluginActivated(const QStringList &enabledPluginsList, const QStringList &disabledPluginsList, bool isEnabledByDefault, const QString &pluginId);