Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 15851a81 authored by Laurent Montel's avatar Laurent Montel 😁

Store message

parent 1fdbf807
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.7.83")
set(PIM_VERSION "5.7.84")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -35,6 +35,7 @@ public:
QWidget *mParentWidget = nullptr;
KPIMTextEdit::RichTextComposer *mEditor = nullptr;
KMime::Message::Ptr mMewMsg;
};
PluginEditorConvertTextInterface::PluginEditorConvertTextInterface(QObject *parent)
......@@ -78,6 +79,16 @@ void PluginEditorConvertTextInterface::createAction(KActionCollection *ac)
Q_UNUSED(ac);
}
void PluginEditorConvertTextInterface::setMessage(const KMime::Message::Ptr &msg)
{
d->mMewMsg = msg;
}
KMime::Message::Ptr PluginEditorConvertTextInterface::message() const
{
return d->mMewMsg;
}
KPIMTextEdit::RichTextComposer *PluginEditorConvertTextInterface::richTextEditor() const
{
return d->mEditor;
......
......@@ -23,6 +23,7 @@
#include <QObject>
#include "messagecomposer_export.h"
#include <MessageComposer/PluginActionType>
#include <KMime/Message>
namespace KPIMTextEdit {
class RichTextComposer;
......@@ -52,6 +53,10 @@ public:
PluginActionType actionType() const;
virtual void createAction(KActionCollection *ac);
void setMessage(const KMime::Message::Ptr &);
KMime::Message::Ptr message() const;
public Q_SLOTS:
virtual void reloadConfig();
......
Markdown is supported
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