Commit 5276ae61 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add QDebug operator <<

parent b6ef99f5
......@@ -417,3 +417,13 @@ int LdapServer::completionWeight() const
{
return d->mCompletionWeight;
}
QDebug operator <<(QDebug d, const KLDAP::LdapServer &t)
{
d << "completionWeight " << t.completionWeight();
d << "timeout " << t.timeout();
d << "timeLimit " << t.timeLimit();
d << "sizeLimit " << t.sizeLimit();
//TODO
return d;
}
......@@ -305,12 +305,13 @@ public:
Q_REQUIRED_RESULT LdapUrl url() const;
void setCompletionWeight(int value);
int completionWeight() const;
Q_REQUIRED_RESULT int completionWeight() const;
private:
class LdapServerPrivate;
LdapServerPrivate *const d;
};
}
KLDAP_EXPORT QDebug operator <<(QDebug d, const KLDAP::LdapServer &t);
#endif
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