diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/CMakeLists.txt b/plugins/messageviewerconfigureplugins/dkim-verify/CMakeLists.txt index fc44da80..90324091 100644 --- a/plugins/messageviewerconfigureplugins/dkim-verify/CMakeLists.txt +++ b/plugins/messageviewerconfigureplugins/dkim-verify/CMakeLists.txt @@ -1,45 +1,47 @@ set(messageviewer_dkimconfigplugin_SRCS dkimconfiguresettingsplugin.cpp ) kcoreaddons_add_plugin(messageviewer_dkimconfigplugin JSON messageviewer_dkimconfigplugin.json SOURCES ${messageviewer_dkimconfigplugin_SRCS} INSTALL_NAMESPACE messageviewer) target_link_libraries(messageviewer_dkimconfigplugin KF5::MessageViewer KF5::I18n dkimverifyconfigure ) set(dkimverifyconfigure_SRCS dkimconfiguredialog.cpp dkimconfiguretab.cpp dkimconfigurewidget.cpp dkimgeneralwidget.cpp dkimkeyrecordwidget.cpp dkimadvancedwidget.cpp dkimpolicywidget.cpp dkimruledialog.cpp dkimrulewidget.cpp + dkimmanageruleswidget.cpp + dkimmanagerulesdialog.cpp ) ecm_qt_declare_logging_category(dkimverifyconfigure_SRCS HEADER libdkimverifyconfigure_debug.h IDENTIFIER LIBDKIMVERIFYCONFIGURE_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libdkimconfigureplugin) add_library(dkimverifyconfigure ${dkimverifyconfigure_SRCS}) generate_export_header(dkimverifyconfigure BASE_NAME libdkimverifyconfigure) target_link_libraries(dkimverifyconfigure KF5::I18n KF5::ConfigCore KF5::WidgetsAddons KF5::MessageViewer ) set_target_properties(dkimverifyconfigure PROPERTIES OUTPUT_NAME dkimverifyconfigure VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION} ) install(TARGETS dkimverifyconfigure ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP) if(BUILD_TESTING) add_subdirectory(autotests) endif() diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/CMakeLists.txt b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/CMakeLists.txt index 1d6dcf71..f526c9d7 100644 --- a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/CMakeLists.txt +++ b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/CMakeLists.txt @@ -1,18 +1,20 @@ macro(add_messageviewer_dkim_verify_unittest _source) get_filename_component(_name ${_source} NAME_WE) ecm_add_test(${_source} TEST_NAME ${_name} NAME_PREFIX "messageviewer-" LINK_LIBRARIES KF5::MessageViewer dkimverifyconfigure Qt5::Test ) endmacro () add_messageviewer_dkim_verify_unittest(dkimconfiguredialogtest.cpp) add_messageviewer_dkim_verify_unittest(dkimconfiguretabtest.cpp) add_messageviewer_dkim_verify_unittest(dkimconfigurewidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimgeneralwidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimkeyrecordwidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimadvancedwidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimpolicywidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimruledialogtest.cpp) add_messageviewer_dkim_verify_unittest(dkimrulewidgettest.cpp) +add_messageviewer_dkim_verify_unittest(dkimmanagerulesdialogtest.cpp) +add_messageviewer_dkim_verify_unittest(dkimmanageruleswidgettest.cpp) diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.cpp b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.cpp new file mode 100644 index 00000000..7599c4c7 --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.cpp @@ -0,0 +1,34 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "dkimmanagerulesdialogtest.h" +#include "dkimmanagerulesdialog.h" +#include +QTEST_MAIN(DKIMManageRulesDialogTest) + +DKIMManageRulesDialogTest::DKIMManageRulesDialogTest(QObject *parent) + : QObject(parent) +{ + +} + +void DKIMManageRulesDialogTest::shouldHaveDefaultValues() +{ + DKIMManageRulesDialog w; +} diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.h b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.h new file mode 100644 index 00000000..b100eb58 --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanagerulesdialogtest.h @@ -0,0 +1,35 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef DKIMMANAGERULESDIALOGTEST_H +#define DKIMMANAGERULESDIALOGTEST_H + +#include + +class DKIMManageRulesDialogTest : public QObject +{ + Q_OBJECT +public: + explicit DKIMManageRulesDialogTest(QObject *parent = nullptr); + ~DKIMManageRulesDialogTest() = default; +private Q_SLOTS: + void shouldHaveDefaultValues(); +}; + +#endif // DKIMMANAGERULESDIALOGTEST_H diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.cpp b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.cpp new file mode 100644 index 00000000..a6652b6d --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.cpp @@ -0,0 +1,35 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + + +#include "dkimmanageruleswidgettest.h" +#include "dkimmanageruleswidget.h" +#include +QTEST_MAIN(DKIMManageRulesWidgetTest) + +DKIMManageRulesWidgetTest::DKIMManageRulesWidgetTest(QObject *parent) + : QObject(parent) +{ + +} + +void DKIMManageRulesWidgetTest::shouldHaveDefaultValues() +{ + +} diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.h b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.h new file mode 100644 index 00000000..38eb7160 --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/autotests/dkimmanageruleswidgettest.h @@ -0,0 +1,36 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + + +#ifndef DKIMMANAGERULESWIDGETTEST_H +#define DKIMMANAGERULESWIDGETTEST_H + +#include + +class DKIMManageRulesWidgetTest : public QObject +{ + Q_OBJECT +public: + explicit DKIMManageRulesWidgetTest(QObject *parent = nullptr); + ~DKIMManageRulesWidgetTest() = default; +private Q_SLOTS: + void shouldHaveDefaultValues(); +}; + +#endif // DKIMMANAGERULESWIDGETTEST_H diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.cpp b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.cpp new file mode 100644 index 00000000..d03dd549 --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.cpp @@ -0,0 +1,31 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "dkimmanagerulesdialog.h" + +DKIMManageRulesDialog::DKIMManageRulesDialog(QWidget *parent) + : QDialog(parent) +{ + +} + +DKIMManageRulesDialog::~DKIMManageRulesDialog() +{ + +} diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.h b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.h new file mode 100644 index 00000000..4bc74ee3 --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanagerulesdialog.h @@ -0,0 +1,32 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef DKIMMANAGERULESDIALOG_H +#define DKIMMANAGERULESDIALOG_H + +#include +#include "dkimconfigure_private_export.h" +class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMManageRulesDialog : public QDialog +{ + Q_OBJECT +public: + explicit DKIMManageRulesDialog(QWidget *parent = nullptr); + ~DKIMManageRulesDialog(); +}; + +#endif // DKIMMANAGERULESDIALOG_H diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.cpp b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.cpp new file mode 100644 index 00000000..cda5e2fb --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.cpp @@ -0,0 +1,33 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "dkimmanageruleswidget.h" +#include +#include + +DKIMManageRulesWidget::DKIMManageRulesWidget(QWidget *parent) + : QWidget(parent) +{ + +} + +DKIMManageRulesWidget::~DKIMManageRulesWidget() +{ + +} diff --git a/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.h b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.h new file mode 100644 index 00000000..a8292ced --- /dev/null +++ b/plugins/messageviewerconfigureplugins/dkim-verify/dkimmanageruleswidget.h @@ -0,0 +1,33 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef DKIMMANAGERULESWIDGET_H +#define DKIMMANAGERULESWIDGET_H +#include "dkimconfigure_private_export.h" +#include + +class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMManageRulesWidget : public QWidget +{ + Q_OBJECT +public: + explicit DKIMManageRulesWidget(QWidget *parent = nullptr); + ~DKIMManageRulesWidget(); +}; + +#endif // DKIMMANAGERULESWIDGET_H