Commit 807ed6de authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add a job

parent 45b17261
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()
/*
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
}
/*
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
......@@ -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")
/*
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)
/*
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
Supports Markdown
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