Commit 5b2504db authored by Laurent Montel's avatar Laurent Montel 😁

improve api

parent 1d7b2536
......@@ -25,7 +25,7 @@
namespace MessageComposer {
class PluginEditorConverttextPrivate;
class PluginEditorConverttextInterface;
class PluginEditorConvertTextInterface;
class MESSAGECOMPOSER_EXPORT PluginEditorConvertText : public QObject
{
......@@ -34,7 +34,7 @@ public:
explicit PluginEditorConvertText(QObject *parent = nullptr);
~PluginEditorConvertText();
virtual PluginEditorConverttextInterface *createInterface(QObject *parent) = 0;
virtual PluginEditorConvertTextInterface *createInterface(QObject *parent) = 0;
virtual bool hasConfigureDialog() const;
......
......@@ -19,6 +19,8 @@
#include "plugineditorconverttextinterface.h"
#include <KActionCollection>
using namespace MessageComposer;
class MessageComposer::PluginEditorConvertTextInterfacePrivate
......@@ -71,6 +73,11 @@ PluginActionType PluginEditorConvertTextInterface::actionType() const
return d->mActionType;
}
void PluginEditorConvertTextInterface::createAction(KActionCollection *ac)
{
}
KPIMTextEdit::RichTextComposer *PluginEditorConvertTextInterface::richTextEditor() const
{
return d->mEditor;
......
......@@ -27,7 +27,7 @@
namespace KPIMTextEdit {
class RichTextComposer;
}
class KActionCollection;
namespace MessageComposer {
class TextPart;
class PluginEditorConvertTextInterfacePrivate;
......@@ -50,6 +50,8 @@ public:
void setActionType(PluginActionType type);
PluginActionType actionType() const;
virtual void createAction(KActionCollection *ac);
public Q_SLOTS:
virtual void reloadConfig();
......
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