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

Port to new connect api

parent 84b0482e
......@@ -141,8 +141,7 @@ TransportManager::TransportManager()
QDBusServiceWatcher *watcher
= new QDBusServiceWatcher(DBUS_SERVICE_NAME, QDBusConnection::sessionBus(),
QDBusServiceWatcher::WatchForUnregistration, this);
connect(watcher, SIGNAL(serviceUnregistered(QString)),
SLOT(dbusServiceUnregistered()));
connect(watcher, &QDBusServiceWatcher::serviceUnregistered, this, [this]() { d->dbusServiceUnregistered(); });
QDBusConnection::sessionBus().connect(QString(), QString(),
DBUS_INTERFACE_NAME, DBUS_CHANGE_SIGNAL,
......@@ -228,7 +227,7 @@ void TransportManager::addTransport(Transport *transport)
void TransportManager::schedule(TransportJob *job)
{
connect(job, SIGNAL(result(KJob*)), SLOT(jobResult(KJob*)));
connect(job, &TransportJob::result, this, [this](KJob*job) {d->jobResult(job);});
// check if the job is waiting for the wallet
if (!job->transport()->isComplete()) {
......
......@@ -291,8 +291,6 @@ private:
Q_PRIVATE_SLOT(d, void slotTransportsChanged())
Q_PRIVATE_SLOT(d, void slotWalletOpened(bool success))
Q_PRIVATE_SLOT(d, void dbusServiceUnregistered())
Q_PRIVATE_SLOT(d, void jobResult(KJob *job))
};
} // namespace MailTransport
......
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