summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-03-01 13:18:36 +0100
committerLaurent Montel <[email protected]>2018-03-01 13:18:36 +0100
commit64e30735f08e7b501541792fae7e88ef172c3a57 (patch)
tree1c839a02213b6235350dff5cc9c1a0440bb93c62
parent45ea70d7d637b52e36be66ff2ca1d87e0487b7ec (diff)
Start to create first plugins
-rw-r--r--kmail/editorconvertertextplugins/CMakeLists.txt1
-rw-r--r--kmail/editorconvertertextplugins/Messages.sh2
-rw-r--r--kmail/editorconvertertextplugins/markdown/CMakeLists.txt0
-rw-r--r--kmail/editorconvertertextplugins/markdown/markdownplugin.cpp39
-rw-r--r--kmail/editorconvertertextplugins/markdown/markdownplugin.h35
5 files changed, 77 insertions, 0 deletions
diff --git a/kmail/editorconvertertextplugins/CMakeLists.txt b/kmail/editorconvertertextplugins/CMakeLists.txt
index e69de29..2da7ac4 100644
--- a/kmail/editorconvertertextplugins/CMakeLists.txt
+++ b/kmail/editorconvertertextplugins/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(markdown)
diff --git a/kmail/editorconvertertextplugins/Messages.sh b/kmail/editorconvertertextplugins/Messages.sh
new file mode 100644
index 0000000..f7a0503
--- /dev/null
+++ b/kmail/editorconvertertextplugins/Messages.sh
@@ -0,0 +1,2 @@
+#! /bin/sh
+$XGETTEXT `find . -name '*.cpp' -o -name '*.h' | grep -v '/tests/' | grep -v '/autotests/'` -o $podir/kmail_editorconvertertext_plugins.pot
diff --git a/kmail/editorconvertertextplugins/markdown/CMakeLists.txt b/kmail/editorconvertertextplugins/markdown/CMakeLists.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kmail/editorconvertertextplugins/markdown/CMakeLists.txt
diff --git a/kmail/editorconvertertextplugins/markdown/markdownplugin.cpp b/kmail/editorconvertertextplugins/markdown/markdownplugin.cpp
new file mode 100644
index 0000000..179a858
--- /dev/null
+++ b/kmail/editorconvertertextplugins/markdown/markdownplugin.cpp
@@ -0,0 +1,39 @@
+/*
+ Copyright (C) 2018 Montel Laurent <[email protected]>
+
+ 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 "markdownplugin.h"
+
+MarkdownPlugin::MarkdownPlugin(QObject *parent)
+ : MessageComposer::PluginEditorConvertText(parent)
+{
+
+}
+
+MarkdownPlugin::~MarkdownPlugin()
+{
+
+}
+
+
+MessageComposer::PluginEditorConverttextInterface *MarkdownPlugin::createInterface(QObject *parent)
+{
+ //TODO
+ return nullptr;
+}
diff --git a/kmail/editorconvertertextplugins/markdown/markdownplugin.h b/kmail/editorconvertertextplugins/markdown/markdownplugin.h
new file mode 100644
index 0000000..1e51737
--- /dev/null
+++ b/kmail/editorconvertertextplugins/markdown/markdownplugin.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2018 Montel Laurent <[email protected]>
+
+ 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 MARKDOWNPLUGIN_H
+#define MARKDOWNPLUGIN_H
+
+#include <MessageComposer/PluginEditorConvertText>
+
+class MarkdownPlugin : public MessageComposer::PluginEditorConvertText
+{
+ Q_OBJECT
+public:
+ explicit MarkdownPlugin(QObject *parent = nullptr);
+ ~MarkdownPlugin() override;
+
+ MessageComposer::PluginEditorConverttextInterface *createInterface(QObject *parent) override;
+};
+
+#endif // MARKDOWNPLUGIN_H