Commit 832cd4d9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Store ldap weight completion.

Fix bug found by david
parent 83c7b761
......@@ -44,6 +44,7 @@ public:
Security mSecurity;
Auth mAuth;
LdapUrl::Scope mScope;
int mCompletionWeight = -1;
};
LdapServer::LdapServer()
......@@ -95,6 +96,7 @@ void LdapServer::clear()
d->mVersion = 3;
d->mTimeout = 0;
d->mSizeLimit = d->mTimeLimit = d->mPageSize = 0;
d->mCompletionWeight = -1;
}
QString LdapServer::host() const
......@@ -394,3 +396,13 @@ LdapUrl LdapServer::url() const
}
return url;
}
void LdapServer::setCompletionWeight(int value)
{
d->mCompletionWeight = value;
}
int LdapServer::completionWeight() const
{
return d->mCompletionWeight;
}
......@@ -284,6 +284,11 @@ public:
*/
LdapUrl url() const;
void setCompletionWeight(int value);
int completionWeight() const;
private:
class LdapServerPrivate;
LdapServerPrivate *const d;
......
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