Commit e2ecf147 authored by Laurent Montel's avatar Laurent Montel 😁

Add more files

parent 64e30735
/*
Copyright (C) 2018 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 "markdowninterface.h"
MarkdownInterface::MarkdownInterface(QObject *parent)
: MessageComposer::PluginEditorConvertTextInterface(parent)
{
}
MarkdownInterface::~MarkdownInterface()
{
}
/*
Copyright (C) 2018 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 MARKDOWNINTERFACE_H
#define MARKDOWNINTERFACE_H
#include <QObject>
#include <MessageComposer/PluginEditorConvertTextInterface>
class MarkdownInterface : public MessageComposer::PluginEditorConvertTextInterface
{
Q_OBJECT
public:
explicit MarkdownInterface(QObject *parent = nullptr);
~MarkdownInterface();
};
#endif // MARKDOWNINTERFACE_H
......@@ -19,8 +19,9 @@
#include "markdownplugin.h"
#include <KLocalizedString>
MarkdownPlugin::MarkdownPlugin(QObject *parent)
MarkdownPlugin::MarkdownPlugin(QObject *parent, const QList<QVariant> &)
: MessageComposer::PluginEditorConvertText(parent)
{
......@@ -37,3 +38,20 @@ MessageComposer::PluginEditorConverttextInterface *MarkdownPlugin::createInterfa
//TODO
return nullptr;
}
bool MarkdownPlugin::hasConfigureDialog() const
{
return false;
}
void MarkdownPlugin::showConfigureDialog(QWidget *parent)
{
//TODO
}
QString MarkdownPlugin::description() const
{
//TODO
return {};
}
......@@ -26,10 +26,14 @@ class MarkdownPlugin : public MessageComposer::PluginEditorConvertText
{
Q_OBJECT
public:
explicit MarkdownPlugin(QObject *parent = nullptr);
explicit MarkdownPlugin(QObject *parent = nullptr, const QList<QVariant> & = {});
~MarkdownPlugin() override;
MessageComposer::PluginEditorConverttextInterface *createInterface(QObject *parent) override;
bool hasConfigureDialog() const override;
void showConfigureDialog(QWidget *parent) override;
QString description() const override;
};
#endif // MARKDOWNPLUGIN_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