Commit df60872e authored by Laurent Montel's avatar Laurent Montel 😁

MAke it compile

parent 33bdc706
set(dkimverifyconfigure_SRCS
dkimconfiguredialog.cpp
dkimconfiguretab.cpp
dkimconfiguretabwidget.cpp
dkimconfigurewidget.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::IconThemes
KF5::ConfigCore
KF5::WidgetsAddons
)
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()
/* This file is part of the KDE project
Copyright (C) 2019 Laurent Montel <montel@kde.org>
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 DKIMCONFIGUREPRIVATE_EXPORT_H
#define DKIMCONFIGUREPRIVATE_EXPORT_H
#include "libdkimverifyconfigure_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
#ifndef MESSAGEVIEWER_TESTS_EXPORT
#define LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT LIBDKIMVERIFYCONFIGURE_EXPORT
# endif
#else /* not compiling tests */
#define LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT
#endif
#endif
......@@ -26,7 +26,6 @@
#include <KConfigGroup>
#include <KSharedConfig>
using namespace MessageViewer;
DKIMConfigureDialog::DKIMConfigureDialog(QWidget *parent)
: QDialog(parent)
{
......
......@@ -21,11 +21,11 @@
#define DKIMCONFIGUREDIALOG_H
#include <QDialog>
#include "messageviewer_private_export.h"
#include "dkimconfigure_private_export.h"
namespace MessageViewer {
class DKIMConfigureWidget;
class MESSAGEVIEWER_TESTS_EXPORT DKIMConfigureDialog : public QDialog
class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMConfigureDialog : public QDialog
{
Q_OBJECT
public:
......@@ -39,5 +39,4 @@ private:
void writeConfig();
DKIMConfigureWidget *mConfigureWidget = nullptr;
};
}
#endif // DKIMCONFIGUREDIALOG_H
......@@ -25,7 +25,6 @@
#include <QRegularExpression>
#include <QTabWidget>
using namespace MessageViewer;
DKIMConfigureTab::DKIMConfigureTab(QWidget *parent)
: QWidget(parent)
{
......
......@@ -21,11 +21,11 @@
#define DKIMCONFIGURETAB_H
#include <QWidget>
#include "messageviewer_private_export.h"
#include "dkimconfigure_private_export.h"
class QTabWidget;
namespace MessageViewer {
class DKIMConfigureTabWidget;
class MESSAGEVIEWER_TESTS_EXPORT DKIMConfigureTab : public QWidget
class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMConfigureTab : public QWidget
{
Q_OBJECT
public:
......@@ -40,6 +40,5 @@ private:
QList<DKIMConfigureTabWidget *> mListTabWidget;
QTabWidget *mTabWidget = nullptr;
};
}
#endif // DKIMCONFIGURETAB_H
......@@ -23,7 +23,6 @@
#include <KLocalizedString>
#include <QVBoxLayout>
using namespace MessageViewer;
DKIMConfigureTabWidget::DKIMConfigureTabWidget(QWidget *parent)
: QWidget(parent)
{
......
......@@ -20,11 +20,10 @@
#ifndef DKIMCONFIGURETABWIDGET_H
#define DKIMCONFIGURETABWIDGET_H
#include "messageviewer_private_export.h"
#include "dkimconfigure_private_export.h"
#include <QWidget>
namespace MessageViewer {
class MESSAGEVIEWER_TESTS_EXPORT DKIMConfigureTabWidget : public QWidget
class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMConfigureTabWidget : public QWidget
{
Q_OBJECT
public:
......@@ -37,6 +36,5 @@ public:
private:
void init();
};
}
#endif // DKIMCONFIGURETABWIDGET_H
......@@ -24,7 +24,6 @@
#include <KLocalizedString>
using namespace MessageViewer;
DKIMConfigureWidget::DKIMConfigureWidget(QWidget *parent)
: QWidget(parent)
{
......
......@@ -21,11 +21,10 @@
#define DKIMCONFIGUREWIDGET_H
#include <QWidget>
#include "messageviewer_private_export.h"
#include "dkimconfigure_private_export.h"
namespace MessageViewer {
class DKIMConfigureTab;
class MESSAGEVIEWER_TESTS_EXPORT DKIMConfigureWidget : public QWidget
class LIBDKIMVERIFYCONFIGURE_TESTS_EXPORT DKIMConfigureWidget : public QWidget
{
Q_OBJECT
public:
......@@ -38,6 +37,5 @@ public:
private:
DKIMConfigureTab *mTabWidget = nullptr;
};
}
#endif // DKIMCONFIGUREWIDGET_H
Markdown is supported
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