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 a41c23fe authored by Laurent Montel's avatar Laurent Montel 😁

Allow to generate new message

parent 9545862c
......@@ -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()) {
......
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