7#include "plugineditorinterface.h"
8#include "plugincomposerinterface.h"
12class MessageComposer::PluginEditorInterfacePrivate
15 PluginEditorInterfacePrivate() =
default;
17 ~PluginEditorInterfacePrivate()
19 delete mComposerInterface;
22 PluginEditorInterface::ApplyOnFieldTypes mApplyOnFieldTypes = {PluginEditorInterface::ApplyOnFieldType::All};
23 PluginActionType mActionType;
24 QWidget *mParentWidget =
nullptr;
25 TextCustomEditor::RichTextEditor *mRichTextEditor =
nullptr;
26 MessageComposer::PluginComposerInterface *mComposerInterface =
nullptr;
27 PluginEditor *plugin =
nullptr;
28 QWidget *statusBarWidget =
nullptr;
29 bool mSelectedText =
false;
32PluginEditorInterface::PluginEditorInterface(
QObject *parent)
33 :
PimCommon::AbstractGenericPluginInterface(parent)
38PluginEditorInterface::~PluginEditorInterface() =
default;
42 d->mActionType = type;
47 return d->mActionType;
50TextCustomEditor::RichTextEditor *PluginEditorInterface::richTextEditor()
const
52 return d->mRichTextEditor;
55void PluginEditorInterface::setRichTextEditor(TextCustomEditor::RichTextEditor *richTextEditor)
57 d->mRichTextEditor = richTextEditor;
60void PluginEditorInterface::setNeedSelectedText(
bool b)
65bool PluginEditorInterface::needSelectedText()
const
67 return d->mSelectedText;
70void PluginEditorInterface::setStatusBarWidget(QWidget *w)
72 d->statusBarWidget = w;
75QWidget *PluginEditorInterface::statusBarWidget()
const
77 return d->statusBarWidget;
82 return d->mComposerInterface;
87 d->mComposerInterface = w;
90bool PluginEditorInterface::processProcessKeyEvent(QKeyEvent *event)
96PluginEditorInterface::ApplyOnFieldTypes PluginEditorInterface::applyOnFieldTypes()
const
98 return d->mApplyOnFieldTypes;
101void PluginEditorInterface::setApplyOnFieldTypes(PluginEditorInterface::ApplyOnFieldTypes types)
103 d->mApplyOnFieldTypes = types;
106#include "moc_plugineditorinterface.cpp"
The PluginActionType class.
The PluginComposerInterface class.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...