summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-09 06:11:03 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-09 06:11:03 (GMT)
commitc7113b28c370a0a235a9fa414916b1f9d81e5a40 (patch)
treecce6f353deebf12b9259c1f0819925671a7a9063
parentfea2b196d2cdbd4737cdce36640426526f6dfc2b (diff)
Add api to get plugin info
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/genericplugins/plugininterface.cpp15
-rw-r--r--src/genericplugins/plugininterface.h6
3 files changed, 22 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6e8e8e6..1d0fd65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,7 +21,7 @@ include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
include(ECMInstallIcons)
-set(PIM_VERSION "5.3.47")
+set(PIM_VERSION "5.3.48")
set(PIMCOMMON_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.3.40")
diff --git a/src/genericplugins/plugininterface.cpp b/src/genericplugins/plugininterface.cpp
index 7910acb..d0cf994 100644
--- a/src/genericplugins/plugininterface.cpp
+++ b/src/genericplugins/plugininterface.cpp
@@ -194,3 +194,18 @@ QHash<PimCommon::ActionType::Type, QList<QAction *> > PluginInterface::actionsTy
return listType;
}
+
+QVector<PimCommon::PluginUtilData> PluginInterface::pluginsDataList() const
+{
+ return GenericPluginManager::self()->pluginsDataList();
+}
+
+QString PluginInterface::configGroupName() const
+{
+ return GenericPluginManager::self()->configGroupName();
+}
+
+QString PluginInterface::configPrefixSettingKey() const
+{
+ return GenericPluginManager::self()->configPrefixSettingKey();
+}
diff --git a/src/genericplugins/plugininterface.h b/src/genericplugins/plugininterface.h
index efa7863..0b86832 100644
--- a/src/genericplugins/plugininterface.h
+++ b/src/genericplugins/plugininterface.h
@@ -20,6 +20,7 @@
#include <QObject>
#include <pimcommon/genericplugininterface.h>
+#include <pimcommon/pluginutil.h>
#include "pimcommon_export.h"
class KActionCollection;
class QAction;
@@ -48,6 +49,11 @@ public:
void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections);
void setActionCollection(KActionCollection *ac);
+
+ QVector<PimCommon::PluginUtilData> pluginsDataList() const;
+ QString configGroupName() const;
+ QString configPrefixSettingKey() const;
+
private Q_SLOTS:
void slotPluginActivated(PimCommon::GenericPluginInterface *interface);