Commit 78e0b054 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Create lib for autotest

parent ac7328b2
Pipeline #28630 canceled with stage
set(expireaccounttrashfolderconfig_SRCS
expireaccounttrashfolderconfigdialog.cpp
expireaccounttrashfolderconfigwidget.cpp
)
ecm_qt_declare_logging_category(expireaccounttrashfolderconfig_SRCS HEADER libexpireaccounttrashfolderconfig_debug.h IDENTIFIER LIBEXPIREACCOUNTTRASHFOLDERCONFIG_PLUGIN_LOG CATEGORY_NAME org.kde.pim.libexpireaccounttrashfolderconfig
DESCRIPTION "kdepim-addons (expire account trash folder config)"
EXPORT KDEPIMADDONS
)
add_library(expireaccounttrashfolderconfig ${expireaccounttrashfolderconfig_SRCS})
generate_export_header(expireaccounttrashfolderconfig BASE_NAME libexpireaccounttrashfolderconfig)
target_link_libraries(expireaccounttrashfolderconfig
KF5::MessageViewer
KF5::I18n
KF5::MailCommon
)
set_target_properties(expireaccounttrashfolderconfig
PROPERTIES OUTPUT_NAME expireaccounttrashfolderconfig VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
)
install(TARGETS expireaccounttrashfolderconfig ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
set(messageviewer_expireaccounttrashfolderconfigplugin_SRCS
expireaccounttrashfolderconfigplugin.cpp
expireaccounttrashfolderconfigdialog.cpp
expireaccounttrashfolderconfigwidget.cpp
)
kcoreaddons_add_plugin(messageviewer_expireaccounttrashfolderconfigplugin JSON messageviewer_expireaccounttrashfolderconfigplugin.json SOURCES
......@@ -11,6 +35,7 @@ target_link_libraries(messageviewer_expireaccounttrashfolderconfigplugin
KF5::MessageViewer
KF5::I18n
KF5::MailCommon
expireaccounttrashfolderconfig
)
......
/* This file is part of the KDE project
Copyright (C) 2020 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 FOLDERCONFIGURESETTINGSPRIVATE_EXPORT_H
#define FOLDERCONFIGURESETTINGSPRIVATE_EXPORT_H
#include "libexpireaccounttrashfolderconfig_export.h"
/* Classes which are exported only for unit tests */
#ifdef BUILD_TESTING
# ifndef LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT
# define LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT LIBEXPIREACCOUNTTRASHFOLDERCONFIG_EXPORT
# endif
#else /* not compiling tests */
# define LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT
#endif
#endif
......@@ -21,8 +21,9 @@
#define EXPIREACCOUNTTRASHFOLDERCONFIGDIALOG_H
#include <QDialog>
#include "expireaccounttrashfolderconfig_private_export.h"
class ExpireAccountTrashFolderConfigWidget;
class ExpireAccountTrashFolderConfigDialog : public QDialog
class LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT ExpireAccountTrashFolderConfigDialog : public QDialog
{
Q_OBJECT
public:
......
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