summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-07-30 12:25:57 (GMT)
committerMontel Laurent <montel@kde.org>2016-07-30 12:27:44 (GMT)
commitaa1c25e29c2b3383206fbcfc4ae3aa40028e248c (patch)
tree96c38b218c5213c8f72981bb1540123883e28789
parente816af4dd0c45194efbe7dece1e79b874eb3ad1b (diff)
Set identitymanager for plugins
-rw-r--r--CMakeLists.txt2
-rw-r--r--messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp14
-rw-r--r--messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.h9
3 files changed, 23 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9d5327d..fe4df81 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
-set(PIM_VERSION "5.3.42")
+set(PIM_VERSION "5.3.43")
set(MESSAGELIB_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.2.90")
diff --git a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp
index a4b1237..bb72abd 100644
--- a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp
+++ b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.cpp
@@ -25,12 +25,14 @@ class MessageComposer::PluginEditorCheckBeforeSendInterfacePrivate
{
public:
PluginEditorCheckBeforeSendInterfacePrivate()
- : mParentWidget(Q_NULLPTR)
+ : mParentWidget(Q_NULLPTR),
+ mIdentityManagement(Q_NULLPTR)
{
}
MessageComposer::PluginEditorCheckBeforeSendParams parameters;
QWidget *mParentWidget;
+ KIdentityManagement::IdentityManager *mIdentityManagement;
};
PluginEditorCheckBeforeSendInterface::PluginEditorCheckBeforeSendInterface(QObject *parent)
@@ -55,6 +57,16 @@ QWidget *PluginEditorCheckBeforeSendInterface::parentWidget() const
return d->mParentWidget;
}
+void PluginEditorCheckBeforeSendInterface::setIdentityManagement(KIdentityManagement::IdentityManager *identityManagement)
+{
+ d->mIdentityManagement = identityManagement;
+}
+
+KIdentityManagement::IdentityManager *PluginEditorCheckBeforeSendInterface::identityManagement() const
+{
+ return d->mIdentityManagement;
+}
+
void PluginEditorCheckBeforeSendInterface::setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params)
{
d->parameters = params;
diff --git a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.h b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.h
index 22c4132..c6fd481 100644
--- a/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.h
+++ b/messagecomposer/src/plugineditorcheckbeforesend/plugineditorcheckbeforesendinterface.h
@@ -24,6 +24,11 @@
#include "messagecomposer_export.h"
#include "plugineditorcheckbeforesendparams.h"
+namespace KIdentityManagement
+{
+class IdentityManager;
+}
+
namespace MessageComposer
{
class PluginEditorCheckBeforeSendInterfacePrivate;
@@ -41,6 +46,10 @@ public:
void setParentWidget(QWidget *parent);
QWidget *parentWidget() const;
+ void setIdentityManagement(KIdentityManagement::IdentityManager *identityManagement);
+ KIdentityManagement::IdentityManager *identityManagement() const;
+
+
void setParameters(const MessageComposer::PluginEditorCheckBeforeSendParams &params);
MessageComposer::PluginEditorCheckBeforeSendParams parameters() const;