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

Adapt to new api

parent 8c1ecba5
......@@ -76,7 +76,7 @@ set(CALENDAR_UTILS_VERSION "5.5.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.5.40")
set(KIMAP_LIB_VERSION "5.5.40")
set(LIBKSIEVE_LIB_VERSION_LIB "5.5.46")
set(KMAILTRANSPORT_LIB_VERSION "5.5.64")
set(KMAILTRANSPORT_LIB_VERSION "5.5.65")
set(AKONADICONTACT_LIB_VERSION "5.5.43")
set(IMPORTWIZARD_LIB_VERSION "5.5.42")
set(MAILIMPORTER_LIB_VERSION "5.5.40")
......
......@@ -70,7 +70,6 @@ SendMailConfigDialog::SendMailConfigDialog(Transport *transport, QWidget *parent
: QDialog(parent)
, d(new Private(this))
{
qDebug() << " SendMailConfigDialog::SendMailConfigDialog()" << this;
Q_ASSERT(transport);
d->transport = transport;
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......@@ -85,11 +84,11 @@ SendMailConfigDialog::SendMailConfigDialog(Transport *transport, QWidget *parent
connect(d->okButton, SIGNAL(clicked()), this, SLOT(okClicked()));
connect(buttonBox, &QDialogButtonBox::accepted, this, &SendMailConfigDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SendMailConfigDialog::reject);
connect(d->configWidget, SIGNAL(enableButtonOk(bool)), this, SLOT(slotEnabledOkButton(bool)));
}
SendMailConfigDialog::~SendMailConfigDialog()
{
qDebug() << " SendMailConfigDialog::~SendMailConfigDialog()" << this;
delete d;
}
......
......@@ -19,6 +19,7 @@
#include "sendmailtransportplugin.h"
#include "sendmailconfigdialog.h"
#include "sendmailjob.h"
#include <kpluginfactory.h>
#include <KLocalizedString>
#include <QPointer>
......@@ -41,6 +42,7 @@ QVector<MailTransport::TransportAbstractPluginInfo> SendMailTransportPlugin::nam
info.name = i18nc("@option sendmail transport", "Sendmail");
info.identifier = QStringLiteral("sendmail");
info.description = i18n("A local sendmail installation");
info.isAkonadi = false;
return QVector<MailTransport::TransportAbstractPluginInfo>() << info;
}
......@@ -58,7 +60,14 @@ bool SendMailTransportPlugin::configureTransport(const QString &identifier, Mail
void SendMailTransportPlugin::cleanUp(const QString &identifier)
{
Q_UNUSED(identifier);
//TODO FIXME
}
MailTransport::TransportJob *SendMailTransportPlugin::createTransportJob(MailTransport::Transport *t, const QString &identifier)
{
Q_UNUSED(identifier);
return new MailTransport::SendmailJob(t, this);
}
#include "sendmailtransportplugin.moc"
......@@ -35,6 +35,7 @@ public:
void cleanUp(const QString &identifier) override;
QVector<MailTransport::TransportAbstractPluginInfo> names() const override;
bool configureTransport(const QString &identifier, MailTransport::Transport *transport, QWidget *parent) override;
MailTransport::TransportJob *createTransportJob(MailTransport::Transport *t, const QString &identifier) override;
};
#endif // SendMAILTRANSPORTPLUGIN_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