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

Start to create plugin

parent 98072b8d
{
"KPlugin": {
"Id": "smtpmailtransport",
"Name": "SMTP Mail Transport",
"ServiceTypes": [
"MailTransport/Plugin"
],
"Version": "1.0"
}
}
/*
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 "smtpmailtransportplugin.h"
SMTPMailTransportPlugin::SMTPMailTransportPlugin(QObject *parent)
: MailTransport::TransportAbstractPlugin(parent)
{
}
SMTPMailTransportPlugin::~SMTPMailTransportPlugin()
{
}
QString SMTPMailTransportPlugin::name() const
{
//TODO FIXME
return {};
}
bool SMTPMailTransportPlugin::configureTransport(MailTransport::Transport *transport, QWidget *parent)
{
//TODO FIXME
return false;
}
void SMTPMailTransportPlugin::cleanUp(const QString &identifier)
{
//TODO FIXME
}
/*
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 SMTPMAILTRANSPORTPLUGIN_H
#define SMTPMAILTRANSPORTPLUGIN_H
#include <MailTransport/TransportAbstractPlugin>
class SMTPMailTransportPlugin : public MailTransport::TransportAbstractPlugin
{
Q_OBJECT
public:
explicit SMTPMailTransportPlugin(QObject *parent = nullptr);
~SMTPMailTransportPlugin();
QString name() const override;
bool configureTransport(MailTransport::Transport *transport, QWidget *parent) override;
void cleanUp(const QString &identifier) override;
};
#endif // SMTPMAILTRANSPORTPLUGIN_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