7#include "plugincomposerinterface.h"
8#include "composer/composerattachmentinterface.h"
9#include "composer/composerviewbase.h"
10#include "composer/composerviewinterface.h"
11#include <MessageComposer/AttachmentModel>
12#include <MessageComposer/ConvertSnippetVariablesJob>
15PluginComposerInterface::PluginComposerInterface() =
default;
17PluginComposerInterface::~PluginComposerInterface()
19 delete mComposerViewInterface;
22void PluginComposerInterface::setComposerViewBase(
ComposerViewBase *composerViewBase)
24 delete mComposerViewInterface;
28QString PluginComposerInterface::subject()
const
30 return mComposerViewInterface->subject();
33QString PluginComposerInterface::replyTo()
const
35 return mComposerViewInterface->replyTo();
38QString PluginComposerInterface::to()
const
40 return mComposerViewInterface->to();
43QString PluginComposerInterface::cc()
const
45 return mComposerViewInterface->cc();
48QString PluginComposerInterface::from()
const
50 return mComposerViewInterface->from();
55 return mComposerViewInterface->attachments();
58QString PluginComposerInterface::shortDate()
const
60 return mComposerViewInterface->shortDate();
63QString PluginComposerInterface::longDate()
const
65 return mComposerViewInterface->longDate();
68QString PluginComposerInterface::shortTime()
const
70 return mComposerViewInterface->shortTime();
73QString PluginComposerInterface::longTime()
const
75 return mComposerViewInterface->longTime();
78QString PluginComposerInterface::insertDayOfWeek()
const
80 return mComposerViewInterface->insertDayOfWeek();
83QString PluginComposerInterface::variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type)
const
85 return MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(type);
88QString PluginComposerInterface::convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type)
const
90 return MessageComposer::ConvertSnippetVariablesJob::convertVariables(mComposerViewInterface,
91 MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(type));
94QString PluginComposerInterface::convertText(
const QString &str)
const
96 return MessageComposer::ConvertSnippetVariablesJob::convertVariables(mComposerViewInterface, str);
The ComposerAttachmentInterface class.
The ComposerViewBase class.
The ComposerViewInterface class.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...