Commit 4f396cdb authored by Laurent Montel's avatar Laurent Montel 😁

Start to create plugin support

parent 16d040b6
...@@ -28,6 +28,10 @@ set(mailtransport_widgets_srcs ...@@ -28,6 +28,10 @@ set(mailtransport_widgets_srcs
widgets/smtpconfigwidget.cpp widgets/smtpconfigwidget.cpp
) )
set(mailtransport_plugins_srcs
plugins/transportabstractplugin.cpp
)
ecm_qt_declare_logging_category(mailtransport_lib_srcs HEADER mailtransport_debug.h IDENTIFIER MAILTRANSPORT_LOG CATEGORY_NAME org.kde.pim.mailtransport) ecm_qt_declare_logging_category(mailtransport_lib_srcs HEADER mailtransport_debug.h IDENTIFIER MAILTRANSPORT_LOG CATEGORY_NAME org.kde.pim.mailtransport)
ki18n_wrap_ui(mailtransport_lib_srcs ki18n_wrap_ui(mailtransport_lib_srcs
...@@ -42,6 +46,7 @@ add_library(KF5MailTransport ...@@ -42,6 +46,7 @@ add_library(KF5MailTransport
${mailtransport_lib_srcs} ${mailtransport_lib_srcs}
${mailtransport_widgets_srcs} ${mailtransport_widgets_srcs}
${mailtransport_lib_smtp_srcs} ${mailtransport_lib_smtp_srcs}
${mailtransport_plugins_srcs}
) )
generate_export_header(KF5MailTransport BASE_NAME mailtransport) generate_export_header(KF5MailTransport BASE_NAME mailtransport)
......
/*
Copyright (c) 2017 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.
*/
#include "transportabstractplugin.h"
using namespace MailTransport;
TransportAbstractPlugin::TransportAbstractPlugin(QObject *parent)
: QObject(parent)
{
}
MailTransport::TransportAbstractPlugin::~TransportAbstractPlugin()
{
}
TransportJob *TransportAbstractPlugin::createTransportJob()
{
return nullptr;
}
/*
Copyright (c) 2017 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 TRANSPORTABSTRACTPLUGIN_H
#define TRANSPORTABSTRACTPLUGIN_H
#include <QObject>
#include "mailtransport_export.h"
namespace MailTransport {
class TransportJob;
class MAILTRANSPORT_EXPORT TransportAbstractPlugin : public QObject
{
Q_OBJECT
public:
explicit TransportAbstractPlugin(QObject *parent = nullptr);
~TransportAbstractPlugin();
virtual TransportJob *createTransportJob();
};
}
#endif // TRANSPORTABSTRACTPLUGIN_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