• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • TDEABC::LDAPUrl
Public Types | Public Member Functions | Protected Member Functions

TDEABC::LDAPUrl Class Reference

LDAPUrl. More...

#include <ldapurl.h>

Inheritance diagram for TDEABC::LDAPUrl:
KURL

List of all members.

Public Types

enum  Scope { Base, One, Sub }

Public Member Functions

 LDAPUrl ()
 LDAPUrl (const KURL &url)
const TQString & dn () const
void setDn (const TQString &dn)
const TQStringList & attributes ()
void setAttributes (const TQStringList &attributes)
Scope scope () const
void setScope (Scope scope)
const TQString & filter () const
void setFilter (TQString filter)
bool hasExtension (const TQString &key) const
Extension extension (const TQString &key) const
TQString extension (const TQString &key, bool &critical) const
void setExtension (const TQString &key, const Extension &ext)
void setExtension (const TQString &key, const TQString &value, bool critical=false)
void removeExtension (const TQString &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

LDAPUrl::LDAPUrl (  ) 

Constructs an empty KLDAPUrl.

Definition at line 29 of file ldapurl.cpp.

LDAPUrl::LDAPUrl ( const KURL &  url  ) 

Constructs a KLDAPUrl from a KURL.

Definition at line 34 of file ldapurl.cpp.


Member Function Documentation

const TQStringList& TDEABC::LDAPUrl::attributes (  )  [inline]

Returns the attributes part of the LDAP Url.

Definition at line 67 of file ldapurl.h.

const TQString& TDEABC::LDAPUrl::dn (  )  const [inline]

Returns the dn part of the LDAP Url (same as path(), but slash removed from the beginning).

Definition at line 62 of file ldapurl.h.

LDAPUrl::Extension LDAPUrl::extension ( const TQString &  key  )  const

Returns the specified extension.

Definition at line 64 of file ldapurl.cpp.

TQString LDAPUrl::extension ( const TQString &  key,
bool &  critical 
) const

Returns the specified extension.

Definition at line 79 of file ldapurl.cpp.

const TQString& TDEABC::LDAPUrl::filter (  )  const [inline]

Returns the filter part of the LDAP Url.

Definition at line 78 of file ldapurl.h.

bool LDAPUrl::hasExtension ( const TQString &  key  )  const

Returns if the specified extension exists in the LDAP Url.

Definition at line 59 of file ldapurl.cpp.

void LDAPUrl::removeExtension ( const TQString &  key  ) 

Removes the specified extension.

Definition at line 102 of file ldapurl.cpp.

Scope TDEABC::LDAPUrl::scope (  )  const [inline]

Returns the scope part of the LDAP Url.

Definition at line 73 of file ldapurl.h.

void TDEABC::LDAPUrl::setAttributes ( const TQStringList &  attributes  )  [inline]

Sets the attributes part of the LDAP Url.

Definition at line 69 of file ldapurl.h.

void LDAPUrl::setDn ( const TQString &  dn  ) 

Sets the the dn part of the LDAP Url.

Definition at line 47 of file ldapurl.cpp.

void LDAPUrl::setExtension ( const TQString &  key,
const TQString &  value,
bool  critical = false 
)

Sets the specified extension key with the value and criticality specified.

Definition at line 94 of file ldapurl.cpp.

void LDAPUrl::setExtension ( const TQString &  key,
const Extension &  ext 
)

Sets the specified extension key with the value and criticality in ext.

Definition at line 88 of file ldapurl.cpp.

void TDEABC::LDAPUrl::setFilter ( TQString  filter  )  [inline]

Sets the filter part of the LDAP Url.

Definition at line 80 of file ldapurl.h.

void TDEABC::LDAPUrl::setScope ( Scope  scope  )  [inline]

Sets the scope part of the LDAP Url.

Definition at line 75 of file ldapurl.h.

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:
  • ldapurl.h
  • ldapurl.cpp

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.7.1
This website is maintained by Timothy Pearson.