Commit 364096ba authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent 4a6c7536
......@@ -203,8 +203,8 @@ MailDispatcherAgent::MailDispatcherAgent(const QString &id)
d->queue = new OutboxQueue(this);
connect(d->queue, &OutboxQueue::newItems,
this, [this]() { d->dispatch(); });
connect(d->queue, SIGNAL(itemReady(Akonadi::Item)),
this, SLOT(itemFetched(Akonadi::Item)));
connect(d->queue, &OutboxQueue::itemReady,
this, [this](const Akonadi::Item &item) { d->itemFetched(item);});
connect(d->queue, SIGNAL(error(QString)),
this, SLOT(queueError(QString)));
connect(this, SIGNAL(itemProcessed(Akonadi::Item,bool)),
......
......@@ -399,8 +399,7 @@ OutboxQueue::OutboxQueue(QObject *parent)
this, SLOT(itemChanged(Akonadi::Item)));
connect(d->monitor, SIGNAL(itemMoved(Akonadi::Item,Akonadi::Collection,Akonadi::Collection)),
this, SLOT(itemMoved(Akonadi::Item,Akonadi::Collection,Akonadi::Collection)));
connect(d->monitor, SIGNAL(itemRemoved(Akonadi::Item)),
this, SLOT(itemRemoved(Akonadi::Item)));
connect(d->monitor, &Monitor::itemRemoved, this, [this](const Akonadi::Item &item) { d->itemRemoved(item); });
connect(SpecialMailCollections::self(), &SpecialMailCollections::defaultCollectionsChanged, this, [this]() { d->localFoldersChanged(); });
d->localFoldersChanged();
......
......@@ -95,7 +95,7 @@ KAlarmDirResource::KAlarmDirResource(const QString &id)
job->fetchScope().setResource(identifier());
connect(job, &CollectionFetchJob::result, this, &KAlarmDirResource::collectionFetchResult);
QTimer::singleShot(0, this, SLOT(loadFiles()));
QTimer::singleShot(0, this, [this] {loadFiles();});
}
KAlarmDirResource::~KAlarmDirResource()
......
......@@ -149,7 +149,7 @@ void RetrieveItemsJob::Private::akonadiFetchResult(KJob *job)
FileStore::ItemFetchJob *storeFetch = mStore->fetchItems(mCollection);
// just basic items, no data
connect(storeFetch, SIGNAL(result(KJob*)), q, SLOT(storeListResult(KJob*)));
connect(storeFetch, &FileStore::ItemFetchJob::result, q, [this](KJob*job) { storeListResult(job);});
}
void RetrieveItemsJob::Private::storeListResult(KJob *job)
......@@ -229,7 +229,7 @@ void RetrieveItemsJob::Private::processNewItem()
FileStore::ItemFetchJob *storeFetch = mStore->fetchItem(item);
storeFetch->fetchScope().fetchPayloadPart(MessagePart::Envelope);
connect(storeFetch, SIGNAL(result(KJob*)), q, SLOT(fetchNewResult(KJob*)));
connect(storeFetch, &FileStore::ItemFetchJob::result, q, [this](KJob *job) { fetchNewResult(job);});
}
void RetrieveItemsJob::Private::fetchNewResult(KJob *job)
......
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