Commit 98bece68 authored by Laurent Montel's avatar Laurent Montel 😁

Use async api now

parent 5aa37454
Pipeline #42948 failed with stage
in 10 minutes and 56 seconds
......@@ -34,7 +34,7 @@ set(KMIME_LIB_VERSION "5.16.40")
set(KIMAP_LIB_VERSION "5.16.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.16.40")
set(AKONADI_VERSION "5.16.40")
set(KLDAP_LIB_VERSION "5.16.40")
set(KLDAP_LIB_VERSION "5.16.42")
set(GRANTLEETHEME_LIB_VERSION "5.16.40")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets DBus Network Test Xml PrintSupport)
......
......@@ -12,6 +12,7 @@
#include <KLDAP/LdapClient>
#include <KLDAP/LdapClientSearchConfig>
#include <KLDAP/LdapSearchClientReadConfigServerJob>
#include <Libkdepim/ProgressIndicatorLabel>
#include <Libkdepim/LineEditCatchReturnKey>
......@@ -670,10 +671,13 @@ void LdapSearchDialog::Private::restoreSettings()
mIsConfigured = true;
auto *clientSearchConfig = new KLDAP::LdapClientSearchConfig;
for (int j = 0; j < mNumHosts; ++j) {
KLDAP::LdapServer ldapServer;
auto *ldapClient = new KLDAP::LdapClient(0, q);
clientSearchConfig->readConfig(ldapServer, group, j, true);
ldapClient->setServer(ldapServer);
auto *job = new KLDAP::LdapSearchClientReadConfigServerJob(q);
job->setCurrentIndex(j);
job->setActive(true);
job->setConfig(group);
job->setLdapClient(ldapClient);
job->start();
QStringList attrs;
QMap<QString, QString>::ConstIterator end(adrbookattr2ldap().constEnd());
......
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