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

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.
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 () |
Classes | |
struct | Extension |
Constructor & Destructor Documentation
LDAPUrl::LDAPUrl | ( | ) |
LDAPUrl::LDAPUrl | ( | const KURL & | url | ) |
Member Function Documentation
const QString& KABC::LDAPUrl::dn | ( | ) | const [inline] |
void LDAPUrl::setDn | ( | const QString & | dn | ) |
const QStringList& KABC::LDAPUrl::attributes | ( | ) | [inline] |
void KABC::LDAPUrl::setAttributes | ( | const QStringList & | attributes | ) | [inline] |
Scope KABC::LDAPUrl::scope | ( | ) | const [inline] |
void KABC::LDAPUrl::setScope | ( | Scope | scope | ) | [inline] |
const QString& KABC::LDAPUrl::filter | ( | ) | const [inline] |
void KABC::LDAPUrl::setFilter | ( | QString | filter | ) | [inline] |
bool LDAPUrl::hasExtension | ( | const QString & | key | ) | const |
Returns if the specified extension exists in the LDAP Url.
Definition at line 59 of file ldapurl.cpp.
LDAPUrl::Extension LDAPUrl::extension | ( | const QString & | key | ) | const |
Sets the specified extension key with the value and criticality in ext.
Definition at line 88 of file ldapurl.cpp.
Sets the specified extension key with the value and criticality specified.
Definition at line 94 of file ldapurl.cpp.
void LDAPUrl::removeExtension | ( | const QString & | key | ) |
void LDAPUrl::updateQuery | ( | ) |
Updates the query component from the attributes, scope, filter and extensions.
Definition at line 108 of file ldapurl.cpp.
The documentation for this class was generated from the following files: