summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-06 20:58:04 +0200
committerMontel Laurent <[email protected]>2016-06-06 20:58:04 +0200
commit711f052147a29d05fe557f17bcaa2ba9d6bfe3b4 (patch)
treefc394423acf8fc0029c4a7904f90bb1d3082800f
parent6d7b0ebbb72a857873dd51d780f78ebfd115f931 (diff)
Add more plugin
-rw-r--r--kmail/editorsendcheckplugins/CMakeLists.txt1
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt1
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/autotests/CMakeLists.txt0
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.cpp49
-rw-r--r--kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.h37
5 files changed, 88 insertions, 0 deletions
diff --git a/kmail/editorsendcheckplugins/CMakeLists.txt b/kmail/editorsendcheckplugins/CMakeLists.txt
index 8cb6152..be3a6f7 100644
--- a/kmail/editorsendcheckplugins/CMakeLists.txt
+++ b/kmail/editorsendcheckplugins/CMakeLists.txt
@@ -1 +1,2 @@
add_subdirectory(confirm-address)
+add_subdirectory(checkbeforesend)
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt b/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt
new file mode 100644
index 0000000..2fd3f2a
--- /dev/null
+++ b/kmail/editorsendcheckplugins/checkbeforesend/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(autotests)
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/autotests/CMakeLists.txt b/kmail/editorsendcheckplugins/checkbeforesend/autotests/CMakeLists.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/kmail/editorsendcheckplugins/checkbeforesend/autotests/CMakeLists.txt
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.cpp b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.cpp
new file mode 100644
index 0000000..95eab6b
--- /dev/null
+++ b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.cpp
@@ -0,0 +1,49 @@
+/*
+ Copyright (C) 2016 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 "checkbeforesendplugin.h"
+
+CheckBeforeSendPlugin::CheckBeforeSendPlugin(QObject *parent, const QList<QVariant> &)
+ : MessageComposer::PluginEditorCheckBeforeSend(parent)
+{
+
+}
+
+CheckBeforeSendPlugin::~CheckBeforeSendPlugin()
+{
+
+}
+
+
+MessageComposer::PluginEditorCheckBeforeSendInterface *CheckBeforeSendPlugin::createInterface(QObject *parent)
+{
+ //TODO
+ return {};
+}
+
+bool CheckBeforeSendPlugin::hasConfigureSupport() const
+{
+ return true;
+}
+
+MessageComposer::PluginEditorCheckBeforeSendConfigureWidgetSetting CheckBeforeSendPlugin::createConfigureWidget(QWidget *parent) const
+{
+ //TODO
+ return {};
+}
diff --git a/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.h b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.h
new file mode 100644
index 0000000..3b1b6b7
--- /dev/null
+++ b/kmail/editorsendcheckplugins/checkbeforesend/checkbeforesendplugin.h
@@ -0,0 +1,37 @@
+/*
+ Copyright (C) 2016 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 CHECKBEFORESENDPLUGIN_H
+#define CHECKBEFORESENDPLUGIN_H
+
+#include <MessageComposer/PluginEditorCheckBeforeSend>
+
+class CheckBeforeSendPlugin : public MessageComposer::PluginEditorCheckBeforeSend
+{
+ Q_OBJECT
+public:
+ explicit CheckBeforeSendPlugin(QObject *parent = Q_NULLPTR, const QList<QVariant> & = {});
+ ~CheckBeforeSendPlugin();
+
+ MessageComposer::PluginEditorCheckBeforeSendInterface *createInterface(QObject *parent) Q_DECL_OVERRIDE;
+ bool hasConfigureSupport() const Q_DECL_OVERRIDE;
+ MessageComposer::PluginEditorCheckBeforeSendConfigureWidgetSetting createConfigureWidget(QWidget *parent) const Q_DECL_OVERRIDE;
+};
+
+#endif // CHECKBEFORESENDPLUGIN_H