summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-03-15 14:00:20 +0100
committerLaurent Montel <[email protected]>2018-03-15 14:00:20 +0100
commita41c23fe1829519053d26136a7b44ff53f123777 (patch)
treed2d8cb20524a15d1341b85749408ad72c602d3f0
parent9545862c80ed897b861e3f742908bbbf160a8941 (diff)
Allow to generate new message
-rw-r--r--src/editor/kmcomposerwin.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/editor/kmcomposerwin.cpp b/src/editor/kmcomposerwin.cpp
index ac0c51f..a643b6f 100644
--- a/src/editor/kmcomposerwin.cpp
+++ b/src/editor/kmcomposerwin.cpp
@@ -198,6 +198,7 @@
#include <QTextDocumentWriter>
#include <QMenuBar>
#include <MessageComposer/PluginEditorConverterInitialData>
+#include <MessageComposer/PluginEditorConverterBeforeConvertingData>
// GPGME
#include <gpgme++/keylistresult.h>
@@ -2460,6 +2461,14 @@ void KMComposerWin::printComposeResult(KJob *job, bool preview)
void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method, MessageComposer::MessageSender::SaveIn saveIn, bool willSendItWithoutReediting)
{
+ //TODO generate new message from plugins.
+ MessageComposer::PluginEditorConverterBeforeConvertingData data;
+ data.setNewMessage(mContext == TemplateContext::New);
+ mPluginEditorConvertTextManagerInterface->setDataBeforeConvertingText(data);
+
+ //TODO converttext if necessary
+
+
// TODO integrate with MDA online status
if (method == MessageComposer::MessageSender::SendImmediate) {
if (!MessageComposer::Util::sendMailDispatcherIsOnline()) {