summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-10-27 21:53:49 +0100
committerMontel Laurent <[email protected]>2015-10-27 21:53:49 +0100
commit27d324b98b4eb815d1a1447f716c618dad8424c5 (patch)
tree5bc4d5e24914351a379dc387ca7d0a33b4353945
parenta1b4f02a22592ed068dcb077f37a4d8477e5d4c1 (diff)
Use new connect api
-rw-r--r--resources/imap/autotests/dummypasswordrequester.cpp2
-rw-r--r--resources/kolab/kolabaddtagtask.cpp10
-rw-r--r--resources/kolab/kolabchangeitemsrelationstask.cpp10
-rw-r--r--resources/kolab/kolabchangeitemstagstask.cpp12
-rw-r--r--resources/kolab/kolabchangetagtask.cpp10
-rw-r--r--resources/kolab/kolabrelationresourcetask.cpp12
-rw-r--r--resources/kolab/kolabremovetagtask.cpp6
-rw-r--r--resources/kolab/kolabretrievecollectionstask.cpp18
-rw-r--r--resources/kolab/kolabretrievetagstask.cpp8
-rw-r--r--resources/kolab/tagchangehelper.cpp4
-rw-r--r--resources/kolab/updatemessagejob.cpp16
11 files changed, 54 insertions, 54 deletions
diff --git a/resources/imap/autotests/dummypasswordrequester.cpp b/resources/imap/autotests/dummypasswordrequester.cpp
index 21eac87..718a835 100644
--- a/resources/imap/autotests/dummypasswordrequester.cpp
+++ b/resources/imap/autotests/dummypasswordrequester.cpp
@@ -67,7 +67,7 @@ void DummyPasswordRequester::requestPassword(RequestType request,
delay = m_delays.takeFirst();
}
- QTimer::singleShot(delay, this, SLOT(emitResult()));
+ QTimer::singleShot(delay, this, &DummyPasswordRequester::emitResult);
}
void DummyPasswordRequester::emitResult()
diff --git a/resources/kolab/kolabaddtagtask.cpp b/resources/kolab/kolabaddtagtask.cpp
index cb1ce5a..6a8140f 100644
--- a/resources/kolab/kolabaddtagtask.cpp
+++ b/resources/kolab/kolabaddtagtask.cpp
@@ -52,7 +52,7 @@ void KolabAddTagTask::startRelationTask(KIMAP::Session *session)
job->setMailBox(mailBoxForCollection(relationCollection()));
job->setContent(message->encodedContent(true));
job->setInternalDate(message->date()->dateTime());
- connect(job, SIGNAL(result(KJob*)), SLOT(onAppendMessageDone(KJob*)));
+ connect(job, &KJob::result, this, &KolabAddTagTask::onAppendMessageDone);
job->start();
}
@@ -120,8 +120,8 @@ void KolabAddTagTask::triggerSearchJob(KIMAP::Session *session)
search->addSearchCriteria(KIMAP::SearchJob::Uid, interval.toImapSequence());
}
- connect(search, SIGNAL(result(KJob*)),
- this, SLOT(onSearchDone(KJob*)));
+ connect(search, &KJob::result,
+ this, &KolabAddTagTask::onSearchDone);
search->start();
}
@@ -153,8 +153,8 @@ void KolabAddTagTask::onAppendMessageDone(KJob *job)
KIMAP::SelectJob *select = new KIMAP::SelectJob(session);
select->setMailBox(mailBox);
- connect(select, SIGNAL(result(KJob*)),
- this, SLOT(onPreSearchSelectDone(KJob*)));
+ connect(select, &KJob::result,
+ this, &KolabAddTagTask::onPreSearchSelectDone);
select->start();
diff --git a/resources/kolab/kolabchangeitemsrelationstask.cpp b/resources/kolab/kolabchangeitemsrelationstask.cpp
index bfbf74b..6811c50 100644
--- a/resources/kolab/kolabchangeitemsrelationstask.cpp
+++ b/resources/kolab/kolabchangeitemsrelationstask.cpp
@@ -72,7 +72,7 @@ void KolabChangeItemsRelationsTask::processNextRelation()
//We have to fetch it again in case it changed since the notification was emitted (which is likely)
//Otherwise we get an empty remoteid for new tags that were immediately applied on an item
Akonadi::RelationFetchJob *fetch = new Akonadi::RelationFetchJob(relation);
- connect(fetch, SIGNAL(result(KJob*)), this, SLOT(onRelationFetchDone(KJob*)));
+ connect(fetch, &KJob::result, this, &KolabChangeItemsRelationsTask::onRelationFetchDone);
}
void KolabChangeItemsRelationsTask::onRelationFetchDone(KJob *job)
@@ -107,7 +107,7 @@ void KolabChangeItemsRelationsTask::addRelation(const Akonadi::Relation &relatio
fetchJob->fetchScope().setFetchGid(true);
fetchJob->fetchScope().fetchFullPayload(true);
fetchJob->setProperty("relation", QVariant::fromValue(relation));
- connect(fetchJob, SIGNAL(result(KJob*)), this, SLOT(onItemsFetched(KJob*)));
+ connect(fetchJob, &KJob::result, this, &KolabChangeItemsRelationsTask::onItemsFetched);
}
void KolabChangeItemsRelationsTask::onItemsFetched(KJob *job)
@@ -146,7 +146,7 @@ void KolabChangeItemsRelationsTask::onItemsFetched(KJob *job)
appendJob->setMailBox(mailBoxForCollection(relationCollection()));
appendJob->setContent(message->encodedContent(true));
appendJob->setInternalDate(message->date()->dateTime());
- connect(appendJob, SIGNAL(result(KJob*)), SLOT(onChangeCommitted(KJob*)));
+ connect(appendJob, &KJob::result, this, &KolabChangeItemsRelationsTask::onChangeCommitted);
appendJob->start();
}
@@ -160,7 +160,7 @@ void KolabChangeItemsRelationsTask::removeRelation(const Akonadi::Relation &rela
KIMAP::SelectJob *select = new KIMAP::SelectJob(mSession);
select->setMailBox(mailBox);
- connect(select, SIGNAL(result(KJob*)), this, SLOT(onSelectDone(KJob*)));
+ connect(select, &KJob::result, this, &KolabChangeItemsRelationsTask::onSelectDone);
select->start();
} else {
@@ -190,7 +190,7 @@ void KolabChangeItemsRelationsTask::triggerStoreJob()
store->setSequenceSet(set);
store->setFlags(QList<QByteArray>() << ImapFlags::Deleted);
store->setMode(KIMAP::StoreJob::AppendFlags);
- connect(store, SIGNAL(result(KJob*)), SLOT(onChangeCommitted(KJob*)));
+ connect(store, &KJob::result, this, &KolabChangeItemsRelationsTask::onChangeCommitted);
store->start();
}
diff --git a/resources/kolab/kolabchangeitemstagstask.cpp b/resources/kolab/kolabchangeitemstagstask.cpp
index dee7482..037a3fb 100644
--- a/resources/kolab/kolabchangeitemstagstask.cpp
+++ b/resources/kolab/kolabchangeitemstagstask.cpp
@@ -64,7 +64,7 @@ void KolabChangeItemsTagsTask::processNextTag()
//We have to fetch it again in case it changed since the notification was emitted (which is likely)
//Otherwise we get an empty remoteid for new tags that were immediately applied on an item
Akonadi::TagFetchJob *fetch = new Akonadi::TagFetchJob(tag);
- connect(fetch, SIGNAL(result(KJob*)), this, SLOT(onTagFetchDone(KJob*)));
+ connect(fetch, &KJob::result, this, &KolabChangeItemsTagsTask::onTagFetchDone);
}
void KolabChangeItemsTagsTask::onTagFetchDone(KJob *job)
@@ -90,7 +90,7 @@ void KolabChangeItemsTagsTask::onTagFetchDone(KJob *job)
fetch->fetchScope().setFetchGid(true);
fetch->fetchScope().fetchFullPayload(true);
fetch->setProperty("tag", QVariant::fromValue(tags.first()));
- connect(fetch, SIGNAL(result(KJob*)), this, SLOT(onItemsFetchDone(KJob*)));
+ connect(fetch, &KJob::result, this, &KolabChangeItemsTagsTask::onItemsFetchDone);
}
void KolabChangeItemsTagsTask::onItemsFetchDone(KJob *job)
@@ -107,10 +107,10 @@ void KolabChangeItemsTagsTask::onItemsFetchDone(KJob *job)
TagChangeHelper *changeHelper = new TagChangeHelper(this);
- connect(changeHelper, SIGNAL(applyCollectionChanges(Akonadi::Collection)),
- this, SLOT(onApplyCollectionChanged(Akonadi::Collection)));
- connect(changeHelper, SIGNAL(cancelTask(QString)), this, SLOT(onCancelTask(QString)));
- connect(changeHelper, SIGNAL(changeCommitted()), this, SLOT(onChangeCommitted()));
+ connect(changeHelper, &TagChangeHelper::applyCollectionChanges,
+ this, &KolabChangeItemsTagsTask::onApplyCollectionChanged);
+ connect(changeHelper, &TagChangeHelper::cancelTask, this, &KolabChangeItemsTagsTask::onCancelTask);
+ connect(changeHelper, &TagChangeHelper::changeCommitted, this, &KolabChangeItemsTagsTask::onChangeCommitted);
const Akonadi::Tag tag = job->property("tag").value<Akonadi::Tag>();
{
diff --git a/resources/kolab/kolabchangetagtask.cpp b/resources/kolab/kolabchangetagtask.cpp
index 37625b2..dfc9c57 100644
--- a/resources/kolab/kolabchangetagtask.cpp
+++ b/resources/kolab/kolabchangetagtask.cpp
@@ -42,7 +42,7 @@ void KolabChangeTagTask::startRelationTask(KIMAP::Session *session)
fetch->fetchScope().setFetchGid(true);
fetch->fetchScope().setAncestorRetrieval(Akonadi::ItemFetchScope::All);
fetch->fetchScope().fetchFullPayload(true);
- connect(fetch, SIGNAL(result(KJob*)), this, SLOT(onItemsFetchDone(KJob*)));
+ connect(fetch, &KJob::result, this, &KolabChangeTagTask::onItemsFetchDone);
}
void KolabChangeTagTask::onItemsFetchDone(KJob *job)
@@ -57,10 +57,10 @@ void KolabChangeTagTask::onItemsFetchDone(KJob *job)
TagChangeHelper *changeHelper = new TagChangeHelper(this);
- connect(changeHelper, SIGNAL(applyCollectionChanges(Akonadi::Collection)),
- this, SLOT(onApplyCollectionChanged(Akonadi::Collection)));
- connect(changeHelper, SIGNAL(cancelTask(QString)), this, SLOT(onCancelTask(QString)));
- connect(changeHelper, SIGNAL(changeCommitted()), this, SLOT(onChangeCommitted()));
+ connect(changeHelper, &TagChangeHelper::applyCollectionChanges,
+ this, &KolabChangeTagTask::onApplyCollectionChanged);
+ connect(changeHelper, &TagChangeHelper::cancelTask, this, &KolabChangeTagTask::onCancelTask);
+ connect(changeHelper, &TagChangeHelper::changeCommitted, this, &KolabChangeTagTask::onChangeCommitted);
changeHelper->start(resourceState()->tag(), mTagConverter->createMessage(resourceState()->tag(), items, resourceState()->userName()), mSession);
}
diff --git a/resources/kolab/kolabrelationresourcetask.cpp b/resources/kolab/kolabrelationresourcetask.cpp
index bd165cd..8d631ac 100644
--- a/resources/kolab/kolabrelationresourcetask.cpp
+++ b/resources/kolab/kolabrelationresourcetask.cpp
@@ -57,7 +57,7 @@ void KolabRelationResourceTask::doStart(KIMAP::Session *session)
fetchJob->fetchScope().setContentMimeTypes(QStringList() << KolabHelpers::getMimeType(Kolab::ConfigurationType));
fetchJob->fetchScope().setAncestorRetrieval(Akonadi::CollectionFetchScope::All);
fetchJob->fetchScope().setListFilter(Akonadi::CollectionFetchScope::NoFilter);
- connect(fetchJob, SIGNAL(result(KJob*)), this, SLOT(onCollectionFetchResult(KJob*)));
+ connect(fetchJob, &KJob::result, this, &KolabRelationResourceTask::onCollectionFetchResult);
}
void KolabRelationResourceTask::onCollectionFetchResult(KJob *job)
@@ -86,8 +86,8 @@ void KolabRelationResourceTask::onCollectionFetchResult(KJob *job)
const QString newMailBox = QStringLiteral("Configuration");
KIMAP::CreateJob *imapCreateJob = new KIMAP::CreateJob(mImapSession);
imapCreateJob->setMailBox(newMailBox);
- connect(imapCreateJob, SIGNAL(result(KJob*)),
- this, SLOT(onCreateDone(KJob*)));
+ connect(imapCreateJob, &KJob::result,
+ this, &KolabRelationResourceTask::onCreateDone);
imapCreateJob->start();
}
@@ -107,8 +107,8 @@ void KolabRelationResourceTask::onCreateDone(KJob *job)
}
setMetadataJob->setMailBox(QStringLiteral("Configuration"));
setMetadataJob->addMetaData("/shared/vendor/kolab/folder-type", "configuration.default");
- connect(setMetadataJob, SIGNAL(result(KJob*)),
- this, SLOT(onSetMetaDataDone(KJob*)));
+ connect(setMetadataJob, &KJob::result,
+ this, &KolabRelationResourceTask::onSetMetaDataDone);
setMetadataJob->start();
}
@@ -122,7 +122,7 @@ void KolabRelationResourceTask::onSetMetaDataDone(KJob *job)
}
Akonadi::CollectionCreateJob *createJob = new Akonadi::CollectionCreateJob(mRelationCollection, this);
- connect(createJob, SIGNAL(result(KJob*)), this, SLOT(onLocalCreateDone(KJob*)));
+ connect(createJob, &KJob::result, this, &KolabRelationResourceTask::onLocalCreateDone);
}
void KolabRelationResourceTask::onLocalCreateDone(KJob *job)
diff --git a/resources/kolab/kolabremovetagtask.cpp b/resources/kolab/kolabremovetagtask.cpp
index c303e44..e4acc35 100644
--- a/resources/kolab/kolabremovetagtask.cpp
+++ b/resources/kolab/kolabremovetagtask.cpp
@@ -48,8 +48,8 @@ void KolabRemoveTagTask::startRelationTask(KIMAP::Session *session)
KIMAP::SelectJob *select = new KIMAP::SelectJob(session);
select->setMailBox(mailBox);
- connect(select, SIGNAL(result(KJob*)),
- this, SLOT(onSelectDone(KJob*)));
+ connect(select, &KJob::result,
+ this, &KolabRemoveTagTask::onSelectDone);
select->start();
@@ -69,7 +69,7 @@ void KolabRemoveTagTask::triggerStoreJob(KIMAP::Session *session)
store->setSequenceSet(set);
store->setFlags(QList<QByteArray>() << ImapFlags::Deleted);
store->setMode(KIMAP::StoreJob::AppendFlags);
- connect(store, SIGNAL(result(KJob*)), SLOT(onStoreFlagsDone(KJob*)));
+ connect(store, &KJob::result, this, &KolabRemoveTagTask::onStoreFlagsDone);
store->start();
}
diff --git a/resources/kolab/kolabretrievecollectionstask.cpp b/resources/kolab/kolabretrievecollectionstask.cpp
index 00c035e..8a84f79 100644
--- a/resources/kolab/kolabretrievecollectionstask.cpp
+++ b/resources/kolab/kolabretrievecollectionstask.cpp
@@ -107,7 +107,7 @@ void RetrieveMetadataJob::start()
Q_FOREACH (const QByteArray &requestedEntry, mRequestedMetadata) {
meta->addRequestedEntry(requestedEntry);
}
- connect(meta, SIGNAL(result(KJob*)), SLOT(onGetMetaDataDone(KJob*)));
+ connect(meta, &KJob::result, this, &RetrieveMetadataJob::onGetMetaDataDone);
mJobs++;
meta->start();
}
@@ -124,7 +124,7 @@ void RetrieveMetadataJob::start()
}
KIMAP::MyRightsJob *rights = new KIMAP::MyRightsJob(mSession);
rights->setMailBox(mailbox);
- connect(rights, SIGNAL(result(KJob*)), SLOT(onRightsReceived(KJob*)));
+ connect(rights, &KJob::result, this, &RetrieveMetadataJob::onRightsReceived);
mJobs++;
rights->start();
}
@@ -247,9 +247,9 @@ void KolabRetrieveCollectionsTask::doStart(KIMAP::Session *session)
KIMAP::ListJob *fullListJob = new KIMAP::ListJob(session);
fullListJob->setOption(KIMAP::ListJob::NoOption);
fullListJob->setQueriedNamespaces(serverNamespaces());
- connect(fullListJob, SIGNAL(mailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)),
- this, SLOT(onFullMailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)));
- connect(fullListJob, SIGNAL(result(KJob*)), SLOT(onFullMailBoxesReceiveDone(KJob*)));
+ connect(fullListJob, &KIMAP::ListJob::mailBoxesReceived,
+ this, &KolabRetrieveCollectionsTask::onFullMailBoxesReceived);
+ connect(fullListJob, &KJob::result, this, &KolabRetrieveCollectionsTask::onFullMailBoxesReceiveDone);
mJobs++;
fullListJob->start();
}
@@ -257,9 +257,9 @@ void KolabRetrieveCollectionsTask::doStart(KIMAP::Session *session)
KIMAP::ListJob *listJob = new KIMAP::ListJob(session);
listJob->setOption(KIMAP::ListJob::IncludeUnsubscribed);
listJob->setQueriedNamespaces(serverNamespaces());
- connect(listJob, SIGNAL(mailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)),
- this, SLOT(onMailBoxesReceived(QList<KIMAP::MailBoxDescriptor>,QList<QList<QByteArray> >)));
- connect(listJob, SIGNAL(result(KJob*)), SLOT(onMailBoxesReceiveDone(KJob*)));
+ connect(listJob, &KIMAP::ListJob::mailBoxesReceived,
+ this, &KolabRetrieveCollectionsTask::onMailBoxesReceived);
+ connect(listJob, &KJob::result, this, &KolabRetrieveCollectionsTask::onMailBoxesReceiveDone);
mJobs++;
listJob->start();
}
@@ -429,7 +429,7 @@ void KolabRetrieveCollectionsTask::onMailBoxesReceiveDone(KJob *job)
const QStringList metadataMailboxes = mailboxes.unite(mSubscribedMailboxes.toList().toSet()).toList();
RetrieveMetadataJob *metadata = new RetrieveMetadataJob(mSession, metadataMailboxes, serverCapabilities(), mRequestedMetadata, separatorCharacter(), resourceState()->sharedNamespaces(), resourceState()->userNamespaces(), this);
- connect(metadata, SIGNAL(result(KJob*)), this, SLOT(onMetadataRetrieved(KJob*)));
+ connect(metadata, &KJob::result, this, &KolabRetrieveCollectionsTask::onMetadataRetrieved);
mJobs++;
metadata->start();
}
diff --git a/resources/kolab/kolabretrievetagstask.cpp b/resources/kolab/kolabretrievetagstask.cpp
index e9348ef..ddc46c8 100644
--- a/resources/kolab/kolabretrievetagstask.cpp
+++ b/resources/kolab/kolabretrievetagstask.cpp
@@ -41,8 +41,8 @@ void KolabRetrieveTagTask::startRelationTask(KIMAP::Session *session)
KIMAP::SelectJob *select = new KIMAP::SelectJob(session);
select->setMailBox(mailBox);
- connect(select, SIGNAL(result(KJob*)),
- this, SLOT(onFinalSelectDone(KJob*)));
+ connect(select, &KJob::result,
+ this, &KolabRetrieveTagTask::onFinalSelectDone);
select->start();
}
@@ -84,8 +84,8 @@ void KolabRetrieveTagTask::onFinalSelectDone(KJob *job)
QMap<qint64, KIMAP::MessageAttribute>,
QMap<qint64, KIMAP::MessageFlags>,
QMap<qint64, KIMAP::MessagePtr>)));
- connect(fetch, SIGNAL(result(KJob*)),
- this, SLOT(onHeadersFetchDone(KJob*)));
+ connect(fetch, &KJob::result,
+ this, &KolabRetrieveTagTask::onHeadersFetchDone);
fetch->start();
}
diff --git a/resources/kolab/tagchangehelper.cpp b/resources/kolab/tagchangehelper.cpp
index 5ba08ed..a0120ae 100644
--- a/resources/kolab/tagchangehelper.cpp
+++ b/resources/kolab/tagchangehelper.cpp
@@ -82,7 +82,7 @@ void TagChangeHelper::start(const Akonadi::Tag &tag, const KMime::Message::Ptr &
const qint64 uidNext = -1;
UpdateMessageJob *append = new UpdateMessageJob(message, session, tag.gid(), QSharedPointer<TagMerger>(new TagMerger), mailBox, uidNext, oldUid, this);
- connect(append, SIGNAL(result(KJob*)), this, SLOT(onReplaceDone(KJob*)));
+ connect(append, &KJob::result, this, &TagChangeHelper::onReplaceDone);
append->setProperty("tag", QVariant::fromValue(tag));
append->start();
}
@@ -99,7 +99,7 @@ void TagChangeHelper::recordNewUid(qint64 newUid, Akonadi::Tag tag)
updateTag.setId(tag.id());
updateTag.setRemoteId(remoteId);
Akonadi::TagModifyJob *modJob = new Akonadi::TagModifyJob(updateTag);
- connect(modJob, SIGNAL(result(KJob*)), this, SLOT(onModifyDone(KJob*)));
+ connect(modJob, &KJob::result, this, &TagChangeHelper::onModifyDone);
}
void TagChangeHelper::onReplaceDone(KJob *job)
diff --git a/resources/kolab/updatemessagejob.cpp b/resources/kolab/updatemessagejob.cpp
index 78d0af2..e7bc2d6 100644
--- a/resources/kolab/updatemessagejob.cpp
+++ b/resources/kolab/updatemessagejob.cpp
@@ -73,8 +73,8 @@ void UpdateMessageJob::start()
QMap<qint64, KIMAP::MessageAttribute>,
QMap<qint64, KIMAP::MessageFlags>,
QMap<qint64, KIMAP::MessagePtr>)));
- connect(fetchJob, SIGNAL(result(KJob*)),
- this, SLOT(onHeadersFetchDone(KJob*)));
+ connect(fetchJob, &KJob::result,
+ this, &UpdateMessageJob::onHeadersFetchDone);
fetchJob->start();
}
@@ -107,7 +107,7 @@ void UpdateMessageJob::onHeadersFetchDone(KJob *job)
if (mSession->selectedMailBox() != mMailbox) {
KIMAP::SelectJob *select = new KIMAP::SelectJob(mSession);
select->setMailBox(mMailbox);
- connect(select, SIGNAL(result(KJob*)), this, SLOT(onSelectDone(KJob*)));
+ connect(select, &KJob::result, this, &UpdateMessageJob::onSelectDone);
select->start();
} else {
searchForLatestVersion();
@@ -132,8 +132,8 @@ void UpdateMessageJob::searchForLatestVersion()
search->setUidBased(true);
search->setSearchLogic(KIMAP::SearchJob::And);
search->addSearchCriteria(KIMAP::SearchJob::Header, "Subject " + mKolabUid);
- connect(search, SIGNAL(result(KJob*)),
- this, SLOT(onSearchDone(KJob*)));
+ connect(search, &KJob::result,
+ this, &UpdateMessageJob::onSearchDone);
search->start();
}
@@ -175,8 +175,8 @@ void UpdateMessageJob::onSearchDone(KJob *job)
QMap<qint64, KIMAP::MessageAttribute>,
QMap<qint64, KIMAP::MessageFlags>,
QMap<qint64, KIMAP::MessagePtr>)));
- connect(fetchJob, SIGNAL(result(KJob*)),
- this, SLOT(onConflictingMessageFetchDone(KJob*)));
+ connect(fetchJob, &KJob::result,
+ this, &UpdateMessageJob::onConflictingMessageFetchDone);
fetchJob->start();
} else {
qCWarning(KOLABRESOURCE_LOG) << "failed to find latest version of object";
@@ -211,7 +211,7 @@ void UpdateMessageJob::appendMessage()
{
const qint64 uidNext = -1;
ReplaceMessageJob *replace = new ReplaceMessageJob(mMessage, mSession, mMailbox, uidNext, mOldUids, this);
- connect(replace, SIGNAL(result(KJob*)), this, SLOT(onReplaceDone(KJob*)));
+ connect(replace, &KJob::result, this, &UpdateMessageJob::onReplaceDone);
replace->start();
}