Commit 5929f485 authored by Laurent Montel's avatar Laurent Montel 😁

Add plugin interface

parent 42ad9088
......@@ -159,6 +159,7 @@ set(kmailprivate_plugininterface_LIB_SRCS
set(kmailprivate_editor_plugininterface_LIB_SRCS
editor/plugininterface/kmailplugineditormanagerinterface.cpp
editor/plugininterface/kmailplugineditorcheckbeforesendmanagerinterface.cpp
editor/plugininterface/kmailplugineditorinitmanagerinterface.cpp
)
set(kmailprivate_checkindexing_LIB_SRCS
......
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "kmailplugineditorinitmanagerinterface.h"
KMailPluginEditorInitManagerInterface::KMailPluginEditorInitManagerInterface(QObject *parent)
: QObject(parent),
mRichTextEditor(nullptr),
mParentWidget(nullptr)
{
}
KPIMTextEdit::RichTextEditor *KMailPluginEditorInitManagerInterface::richTextEditor() const
{
return mRichTextEditor;
}
void KMailPluginEditorInitManagerInterface::setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor)
{
mRichTextEditor = richTextEditor;
}
QWidget *KMailPluginEditorInitManagerInterface::parentWidget() const
{
return mParentWidget;
}
void KMailPluginEditorInitManagerInterface::setParentWidget(QWidget *parentWidget)
{
mParentWidget = parentWidget;
}
void KMailPluginEditorInitManagerInterface::initializePlugins()
{
//TODO
}
/*
Copyright (C) 2017 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KMAILPLUGINEDITORINITMANAGERINTERFACE_H
#define KMAILPLUGINEDITORINITMANAGERINTERFACE_H
#include <QObject>
namespace KPIMTextEdit
{
class RichTextEditor;
}
class KMailPluginEditorInitManagerInterface : public QObject
{
Q_OBJECT
public:
explicit KMailPluginEditorInitManagerInterface(QObject *parent = nullptr);
~KMailPluginEditorInitManagerInterface() = default;
KPIMTextEdit::RichTextEditor *richTextEditor() const;
void setRichTextEditor(KPIMTextEdit::RichTextEditor *richTextEditor);
QWidget *parentWidget() const;
void setParentWidget(QWidget *parentWidget);
void initializePlugins();
private:
KPIMTextEdit::RichTextEditor *mRichTextEditor;
QWidget *mParentWidget;
//QList<MessageComposer::PluginEditorInterface *> mListPluginInterface;
};
#endif // KMAILPLUGINEDITORINITMANAGERINTERFACE_H
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