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