Commit aa1c25e2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Set identitymanager for plugins

parent e816af4d
......@@ -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")
......
......@@ -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;
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment