KLDAP Library
KLDAP::LdapUrl Class Reference
#include <ldapurl.h>
Inherits KUrl.
Detailed Description
LdapUrl.LdapUrl implements an RFC 2255 compliant LDAP Url parser, with minimal differences. LDAP Urls implemented by this class has the following format: ldap[s]://[user[:password]@]hostname[:port]["/" [dn ["?" [attributes] ["?" [scope] ["?" [filter] ["?" extensions]]]]]]
Definition at line 43 of file ldapurl.h.
Public Types | |
enum | Scope { Base, One, Sub } |
Public Member Functions | |
QStringList | attributes () const |
LdapDN | dn () const |
QString | extension (const QString &key, bool &critical) const |
Extension | extension (const QString &key) const |
QString | filter () const |
bool | hasExtension (const QString &key) const |
LdapUrl (const LdapUrl &that) | |
LdapUrl (const KUrl &url) | |
LdapUrl () | |
LdapUrl & | operator= (const LdapUrl &that) |
void | parseQuery () |
void | removeExtension (const QString &key) |
Scope | scope () const |
void | setAttributes (const QStringList &attributes) |
void | setDn (const LdapDN &dn) |
void | setExtension (const QString &key, int value, bool critical=false) |
void | setExtension (const QString &key, const QString &value, bool critical=false) |
void | setExtension (const QString &key, const Extension &ext) |
void | setFilter (const QString &filter) |
void | setScope (Scope scope) |
void | updateQuery () |
Constructor & Destructor Documentation
LdapUrl::LdapUrl | ( | ) |
LdapUrl::LdapUrl | ( | const KUrl & | url | ) | [explicit] |
LdapUrl::LdapUrl | ( | const LdapUrl & | that | ) |
Member Function Documentation
QStringList LdapUrl::attributes | ( | ) | const |
LdapDN LdapUrl::dn | ( | ) | const |
Returns the dn part of the LDAP Url (same as path(), but slash removed from the beginning).
Definition at line 91 of file ldapurl.cpp.
QString LdapUrl::extension | ( | const QString & | key, | |
bool & | critical | |||
) | const |
LdapUrl::Extension LdapUrl::extension | ( | const QString & | key | ) | const |
QString LdapUrl::filter | ( | ) | const |
bool LdapUrl::hasExtension | ( | const QString & | key | ) | const |
Returns if the specified extension exists in the LDAP Url.
Definition at line 134 of file ldapurl.cpp.
void LdapUrl::parseQuery | ( | ) |
Parses the query argument of the URL and makes it available via the attributes(), extension(), filter() and scope() methods.
Definition at line 242 of file ldapurl.cpp.
void LdapUrl::removeExtension | ( | const QString & | key | ) |
LdapUrl::Scope LdapUrl::scope | ( | ) | const |
void LdapUrl::setAttributes | ( | const QStringList & | attributes | ) |
void LdapUrl::setDn | ( | const LdapDN & | dn | ) |
void LdapUrl::setExtension | ( | const QString & | key, | |
int | value, | |||
bool | critical = false | |||
) |
Sets the specified extension key with the value and criticality specified.
Definition at line 177 of file ldapurl.cpp.
void LdapUrl::setExtension | ( | const QString & | key, | |
const QString & | value, | |||
bool | critical = false | |||
) |
Sets the specified extension key with the value and criticality specified.
Definition at line 169 of file ldapurl.cpp.
void LdapUrl::setExtension | ( | const QString & | key, | |
const Extension & | ext | |||
) |
Sets the specified extension key with the value and criticality in ext.
Definition at line 163 of file ldapurl.cpp.
void LdapUrl::setFilter | ( | const QString & | filter | ) |
void LdapUrl::setScope | ( | Scope | scope | ) |
void LdapUrl::updateQuery | ( | ) |
Updates the query component from the attributes, scope, filter and extensions.
Definition at line 191 of file ldapurl.cpp.
The documentation for this class was generated from the following files: