summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-26 05:02:15 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-26 05:02:15 (GMT)
commitbd58337c7f3f4a1020df8cfbe7901d6c3d673a7d (patch)
tree657e64c305b0db060cacea1f822fefc0b7d1fa9a
parentf927c5c37a016090849a525e742f73986333a41a (diff)
Remove job we will use a method directly in composer
-rw-r--r--kmail/editorplugins/autocorrection/CMakeLists.txt1
-rw-r--r--kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp46
-rw-r--r--kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h46
-rw-r--r--kmail/editorplugins/autocorrection/autotests/CMakeLists.txt1
-rw-r--r--kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp40
-rw-r--r--kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h35
6 files changed, 0 insertions, 169 deletions
diff --git a/kmail/editorplugins/autocorrection/CMakeLists.txt b/kmail/editorplugins/autocorrection/CMakeLists.txt
index f94815a..b3af11f 100644
--- a/kmail/editorplugins/autocorrection/CMakeLists.txt
+++ b/kmail/editorplugins/autocorrection/CMakeLists.txt
@@ -1,7 +1,6 @@
set(kmail_autocorrectioneditorplugin_SRCS
autocorrectionplugineditor.cpp
autocorrectionplugineditorinterface.cpp
- autocorrectionplugineditorjob.cpp
)
add_library(kmail_autocorrectioneditorplugin MODULE ${kmail_autocorrectioneditorplugin_SRCS})
diff --git a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp
deleted file mode 100644
index de626d4..0000000
--- a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- 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),
- mAutoCorrection(Q_NULLPTR)
-{
-
-}
-
-AutoCorrectionPluginEditorJob::~AutoCorrectionPluginEditorJob()
-{
-
-}
-
-bool AutoCorrectionPluginEditorJob::start()
-{
- if (!mAutoCorrection) {
- return false;
- }
- //TODO
- return true;
-}
-
-void AutoCorrectionPluginEditorJob::setAutoCorrection(PimCommon::AutoCorrection *autoCorrection)
-{
- mAutoCorrection = autoCorrection;
-}
diff --git a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h b/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h
deleted file mode 100644
index e287195..0000000
--- a/kmail/editorplugins/autocorrection/autocorrectionplugineditorjob.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- 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>
-#include <QTextDocument>
-namespace PimCommon
-{
-class AutoCorrection;
-}
-
-class AutoCorrectionPluginEditorJob : public QObject
-{
- Q_OBJECT
-public:
- explicit AutoCorrectionPluginEditorJob(QObject *parent = Q_NULLPTR);
- ~AutoCorrectionPluginEditorJob();
-
- bool start();
-
- void setAutoCorrection(PimCommon::AutoCorrection *autoCorrection);
-
-private:
- QTextDocument mTextDocument;
- PimCommon::AutoCorrection *mAutoCorrection;
-};
-
-#endif // AUTOCORRECTIONPLUGINEDITORJOB_H
diff --git a/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt b/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
index 0b24f92..ff1729d 100644
--- a/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
+++ b/kmail/editorplugins/autocorrection/autotests/CMakeLists.txt
@@ -12,4 +12,3 @@ add_kmail_editorplugin_unittest(autocorrectionplugineditortest.cpp "../autocorre
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
deleted file mode 100644
index 76c7f8a..0000000
--- a/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- 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
deleted file mode 100644
index 5c97787..0000000
--- a/kmail/editorplugins/autocorrection/autotests/autocorrectionplugineditorjobtest.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- 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