Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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

Port to new connect api

parent 8816fd59
......@@ -143,10 +143,10 @@ void LdapClient::startQuery(const QString &filter)
d->mActive = true;
d->mJob = KIO::get(url, KIO::NoReload, KIO::HideProgressInfo);
connect(d->mJob, SIGNAL(data(KIO::Job*,QByteArray)),
this, SLOT(slotData(KIO::Job*,QByteArray)));
connect(d->mJob, SIGNAL(infoMessage(KJob*,QString,QString)),
this, SLOT(slotInfoMessage(KJob*,QString,QString)));
connect(d->mJob.data(), &KJob::result,
this, SLOT(slotData(KIO::Job*,QByteArray)));
connect(d->mJob.data(), &KIO::TransferJob::infoMessage, this
, [this](KJob *job, const QString &str, const QString &val) { d->slotInfoMessage(job, str, val); });
connect(d->mJob.data(), &KIO::TransferJob::result,
this, [this]() { d->slotDone(); });
}
......
......@@ -189,8 +189,8 @@ void LdapClientSearch::Private::readConfig()
q->connect(ldapClient, SIGNAL(result(KLDAP::LdapClient,KLDAP::LdapObject)),
q, SLOT(slotLDAPResult(KLDAP::LdapClient,KLDAP::LdapObject)));
q->connect(ldapClient, SIGNAL(done()),
q, SLOT(slotLDAPDone()));
q->connect(ldapClient, &LdapClient::done,
q, [this]() { slotLDAPDone(); });
q->connect(ldapClient, SIGNAL(error(QString)),
q, SLOT(slotLDAPError(QString)));
......
......@@ -174,7 +174,6 @@ private:
Q_PRIVATE_SLOT(d, void slotLDAPResult(const KLDAP::LdapClient &, const KLDAP::LdapObject &))
Q_PRIVATE_SLOT(d, void slotLDAPError(const QString &))
Q_PRIVATE_SLOT(d, void slotLDAPDone())
//@endcond
};
}
......
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