summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-25 05:16:28 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-25 05:16:28 (GMT)
commit807ed6de61a629a0d298725c693d002a23e6fb8d (patch)
tree1228cba15ea288f35772af71ca42cec165a42c7a
parent45b172617ba7544fb04ec81724aa66f783902ed7 (diff)
Add a job
-rw-r--r--kmail/editorplugins/autocorrection/CMakeLists.txt9
-rw-r--r--kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp36
-rw-r--r--kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h35
-rw-r--r--kmail/editorplugins/autocorrection/autotests/CMakeLists.txt2
-rw-r--r--kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp40
-rw-r--r--kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h35
6 files changed, 153 insertions, 4 deletions
diff --git a/kmail/editorplugins/autocorrection/CMakeLists.txt b/kmail/editorplugins/autocorrection/CMakeLists.txt
index 89f08eb..6b512f6 100644
--- a/kmail/editorplugins/autocorrection/CMakeLists.txt
+++ b/kmail/editorplugins/autocorrection/CMakeLists.txt
@@ -1,17 +1,18 @@
set(kmail_autocorrectioneditorplugin_SRCS
autocorrectionplugineditor.cpp
autocorrectionplugineditorinterface.cpp
-)
+ autocorrectionplugineditorjob.cpp
+ )
add_library(kmail_autocorrectioneditorplugin MODULE ${kmail_autocorrectioneditorplugin_SRCS})
target_link_libraries(kmail_autocorrectioneditorplugin
- KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
-)
+ KF5::IconThemes KF5::MessageComposer KF5::XmlGui KF5::I18n
+ )
install(TARGETS kmail_autocorrectioneditorplugin DESTINATION ${PLUGIN_INSTALL_DIR}/kmail)
if(BUILD_TESTING)
- add_subdirectory(autotests)
+ add_subdirectory(autotests)
endif()
diff --git a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp
new file mode 100644
index 0000000..7e832cd
--- /dev/null
+++ b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp
@@ -0,0 +1,36 @@
+/*
+ Copyright (C) 2016 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 "autocorrectionplugineditorjob.h"
+
+AutoCorrectionPluginEditorJob::AutoCorrectionPluginEditorJob(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+AutoCorrectionPluginEditorJob::~AutoCorrectionPluginEditorJob()
+{
+
+}
+
+void AutoCorrectionPluginEditorJob::start()
+{
+ //TODOO
+}
diff --git a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h
new file mode 100644
index 0000000..f99d54c
--- /dev/null
+++ b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2016 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 AUTOCORRECTIONPLUGINEDITORJOB_H
+#define AUTOCORRECTIONPLUGINEDITORJOB_H
+
+#include <QObject>
+
+class AutoCorrectionPluginEditorJob : public QObject
+{
+ Q_OBJECT
+public:
+ explicit AutoCorrectionPluginEditorJob(QObject *parent = Q_NULLPTR);
+ ~AutoCorrectionPluginEditorJob();
+
+ void start();
+};
+
+#endif // AUTOCORRECTIONPLUGINEDITORJOB_H
diff --git a/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt b/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
index 5eb089d..8ead0df 100644
--- a/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
+++ b/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
@@ -11,3 +11,5 @@ endmacro ()
add_kmail_editorplugin_unittest(autocorrectionplugineditortest.cpp "../autocorrectionplugineditor.cpp;../autocorrectionplugineditorinterface.cpp")
add_kmail_editorplugin_unittest(autocorrectionplugineditorinterfacetest.cpp "../autocorrectionplugineditorinterface.cpp")
+
+add_kmail_editorplugin_unittest(autocorrectionplugineditorjobtest.cpp "../autocorrectionplugineditorjob.cpp")
diff --git a/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp b/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp
new file mode 100644
index 0000000..76c7f8a
--- /dev/null
+++ b/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp
@@ -0,0 +1,40 @@
+/*
+ Copyright (C) 2016 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 "autocorrectionplugineditorjobtest.h"
+
+#include <QTest>
+
+AutoCorrectionPluginEditorJobTest::AutoCorrectionPluginEditorJobTest(QObject *parent)
+ : QObject(parent)
+{
+
+}
+
+AutoCorrectionPluginEditorJobTest::~AutoCorrectionPluginEditorJobTest()
+{
+
+}
+
+void AutoCorrectionPluginEditorJobTest::shouldHaveDefaultValue()
+{
+
+}
+
+QTEST_MAIN(AutoCorrectionPluginEditorJobTest)
diff --git a/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h b/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h
new file mode 100644
index 0000000..5c97787
--- /dev/null
+++ b/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h
@@ -0,0 +1,35 @@
+/*
+ Copyright (C) 2016 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 AUTOCORRECTIONPLUGINEDITORJOBTEST_H
+#define AUTOCORRECTIONPLUGINEDITORJOBTEST_H
+
+#include <QObject>
+
+class AutoCorrectionPluginEditorJobTest : public QObject
+{
+ Q_OBJECT
+public:
+ explicit AutoCorrectionPluginEditorJobTest(QObject *parent = Q_NULLPTR);
+ ~AutoCorrectionPluginEditorJobTest();
+private Q_SLOTS:
+ void shouldHaveDefaultValue();
+};
+
+#endif // AUTOCORRECTIONPLUGINEDITORJOBTEST_H