Commit f9a6ff1d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Install headers + use server directly

parent a1d05565
Pipeline #42102 passed with stage
in 8 minutes and 33 seconds
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.16.40")
set(PIM_VERSION "5.16.41")
project(KLdap VERSION ${PIM_VERSION})
......
......@@ -131,6 +131,8 @@ ecm_generate_headers(KLdapWidgets_CamelCase_HEADERS
AddHostDialog
LdapClient
LdapConfigureWidget
LdapClientSearchConfigWriteConfigJob
LdapClientSearchConfigReadConfigJob
RELATIVE widgets
PREFIX KLDAP
REQUIRED_HEADERS KLdapWidgets_HEADERS
......
......@@ -138,3 +138,13 @@ void LdapClientSearchConfigWriteConfigJob::writeConfig()
}
}
KLDAP::LdapServer LdapClientSearchConfigWriteConfigJob::server() const
{
return mServer;
}
void LdapClientSearchConfigWriteConfigJob::setServer(const KLDAP::LdapServer &server)
{
mServer = server;
}
......@@ -33,6 +33,9 @@ public:
Q_REQUIRED_RESULT KConfigGroup config() const;
void setConfig(const KConfigGroup &newConfig);
Q_REQUIRED_RESULT KLDAP::LdapServer server() const;
void setServer(const KLDAP::LdapServer &server);
Q_SIGNALS:
void configSaved();
......
......@@ -264,6 +264,7 @@ void LdapConfigureWidget::save()
job->setActive(true);
job->setConfig(group);
job->setServerIndex(selected);
job->setServer(server);
job->start();
selected++;
} else {
......@@ -271,6 +272,7 @@ void LdapConfigureWidget::save()
job->setActive(false);
job->setConfig(group);
job->setServerIndex(unselected);
job->setServer(server);
job->start();
unselected++;
}
......
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