KABC::LDAPUrl Class Reference
LDAPUrl. More...
#include <ldapurl.h>
Inheritance diagram for KABC::LDAPUrl:

Public Types | |
enum | Scope { Base, One, Sub } |
Public Member Functions | |
LDAPUrl () | |
LDAPUrl (const KURL &url) | |
const QString & | dn () const |
void | setDn (const QString &dn) |
const QStringList & | attributes () |
void | setAttributes (const QStringList &attributes) |
Scope | scope () const |
void | setScope (Scope scope) |
const QString & | filter () const |
void | setFilter (QString filter) |
bool | hasExtension (const QString &key) const |
Extension | extension (const QString &key) const |
QString | extension (const QString &key, bool &critical) const |
void | setExtension (const QString &key, const Extension &ext) |
void | setExtension (const QString &key, const QString &value, bool critical=false) |
void | removeExtension (const QString &key) |
void | updateQuery () |
Protected Member Functions | |
void | parseQuery () |
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 42 of file ldapurl.h.
Constructor & Destructor Documentation
|
Constructs an empty KLDAPUrl. Definition at line 28 of file ldapurl.cpp. |
|
Constructs a KLDAPUrl from a KURL. Definition at line 33 of file ldapurl.cpp. References KURL::path(). |
Member Function Documentation
|
Returns the dn part of the LDAP Url (same as path(), but slash removed from the beginning). |
|
Sets the the dn part of the LDAP Url. Definition at line 42 of file ldapurl.cpp. References KURL::setPath(). Referenced by KABC::LdapConfigWidget::url(). |
|
Returns the attributes part of the LDAP Url. |
|
Sets the attributes part of the LDAP Url. Definition at line 69 of file ldapurl.h. References updateQuery(). |
|
Returns the scope part of the LDAP Url. |
|
Sets the scope part of the LDAP Url. Definition at line 75 of file ldapurl.h. References updateQuery(). |
|
Returns the filter part of the LDAP Url. |
|
Sets the filter part of the LDAP Url. Definition at line 80 of file ldapurl.h. References updateQuery(). Referenced by KABC::LdapConfigWidget::url(). |
|
Returns if the specified extension exists in the LDAP Url. Definition at line 50 of file ldapurl.cpp. |
|
Returns the specified extension. Definition at line 55 of file ldapurl.cpp. Referenced by extension(). |
|
Returns the specified extension. Definition at line 70 of file ldapurl.cpp. References extension(). |
|
Sets the specified extension key with the value and criticality in ext. Definition at line 79 of file ldapurl.cpp. References updateQuery(). Referenced by setExtension(), and KABC::LdapConfigWidget::url(). |
|
Sets the specified extension key with the value and criticality specified. Definition at line 85 of file ldapurl.cpp. References setExtension(). |
|
Removes the specified extension. Definition at line 93 of file ldapurl.cpp. References updateQuery(). |
|
Updates the query component from the attributes, scope, filter and extensions. Definition at line 99 of file ldapurl.cpp. References endl(), kdDebug(), KURL::prettyURL(), and KURL::setQuery(). Referenced by removeExtension(), setAttributes(), setExtension(), setFilter(), and setScope(). |
The documentation for this class was generated from the following files: