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>
15 PluginComposerInterface::PluginComposerInterface() =
default;
17 PluginComposerInterface::~PluginComposerInterface()
19 delete mComposerViewInterface;
22 void PluginComposerInterface::setComposerViewBase(
ComposerViewBase *composerViewBase)
24 delete mComposerViewInterface;
28 QString PluginComposerInterface::subject()
const
30 return mComposerViewInterface->subject();
33 QString PluginComposerInterface::replyTo()
const
35 return mComposerViewInterface->replyTo();
38 QString PluginComposerInterface::to()
const
40 return mComposerViewInterface->to();
43 QString PluginComposerInterface::cc()
const
45 return mComposerViewInterface->cc();
48 QString PluginComposerInterface::from()
const
50 return mComposerViewInterface->from();
55 return mComposerViewInterface->attachments();
58 QString PluginComposerInterface::shortDate()
const
60 return mComposerViewInterface->shortDate();
63 QString PluginComposerInterface::longDate()
const
65 return mComposerViewInterface->longDate();
68 QString PluginComposerInterface::shortTime()
const
70 return mComposerViewInterface->shortTime();
73 QString PluginComposerInterface::longTime()
const
75 return mComposerViewInterface->longTime();
78 QString PluginComposerInterface::insertDayOfWeek()
const
80 return mComposerViewInterface->insertDayOfWeek();
83 QString PluginComposerInterface::variableFromEnum(MessageComposer::ConvertSnippetVariablesUtil::VariableType type)
const
85 return MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(type);
88 QString PluginComposerInterface::convertVariable(MessageComposer::ConvertSnippetVariablesUtil::VariableType type)
const
90 return MessageComposer::ConvertSnippetVariablesJob::convertVariables(mComposerViewInterface,
91 MessageComposer::ConvertSnippetVariablesUtil::snippetVariableFromEnum(type));
94 QString PluginComposerInterface::convertText(
const QString &str)
const
96 return MessageComposer::ConvertSnippetVariablesJob::convertVariables(mComposerViewInterface, str);