\section{KABC::LDAPUrl Class Reference}
\label{classKABC_1_1LDAPUrl}\index{KABC::LDAPUrl@{KABC::LDAPUrl}}
{\bf LDAPUrl}{\rm (p.\,\pageref{classKABC_1_1LDAPUrl})}.  


{\tt \#include $<$ldapurl.h$>$}

Inheritance diagram for KABC::LDAPUrl:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=62pt]{classKABC_1_1LDAPUrl__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KABC::LDAPUrl:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=209pt]{classKABC_1_1LDAPUrl__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Scope} \{ {\bf Base}, 
{\bf One}, 
{\bf Sub}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf LDAPUrl} ()
\item 
{\bf LDAPUrl} (const {\bf KURL} \&{\bf url})
\item 
const {\bf QString} \& {\bf dn} () const 
\item 
void {\bf set\-Dn} (const {\bf QString} \&dn)
\item 
const {\bf QString\-List} \& {\bf attributes} ()
\item 
void {\bf set\-Attributes} (const {\bf QString\-List} \&attributes)
\item 
Scope {\bf scope} () const 
\item 
void {\bf set\-Scope} (Scope scope)
\item 
const {\bf QString} \& {\bf filter} () const 
\item 
void {\bf set\-Filter} ({\bf QString} filter)
\item 
bool {\bf has\-Extension} (const {\bf QString} \&key) const 
\item 
Extension {\bf extension} (const {\bf QString} \&key) const 
\item 
{\bf QString} {\bf extension} (const {\bf QString} \&key, bool \&critical) const 
\item 
void {\bf set\-Extension} (const {\bf QString} \&key, const Extension \&ext)
\item 
void {\bf set\-Extension} (const {\bf QString} \&key, const {\bf QString} \&value, bool critical=false)
\item 
void {\bf remove\-Extension} (const {\bf QString} \&key)
\item 
void {\bf update\-Query} ()
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf parse\-Query} ()\label{classKABC_1_1LDAPUrl_b0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf LDAPUrl}{\rm (p.\,\pageref{classKABC_1_1LDAPUrl})}. 

{\bf LDAPUrl}{\rm (p.\,\pageref{classKABC_1_1LDAPUrl})} 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][\char`\"{}/\char`\"{} [dn [\char`\"{}?\char`\"{} [attributes] [\char`\"{}?\char`\"{} [scope] [\char`\"{}?\char`\"{} [filter] [\char`\"{}?\char`\"{} extensions]]]]]] 



Definition at line 42 of file ldapurl.h.

\subsection{Constructor \& Destructor Documentation}
\index{KABC::LDAPUrl@{KABC::LDAPUrl}!LDAPUrl@{LDAPUrl}}
\index{LDAPUrl@{LDAPUrl}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LDAPUrl::LDAPUrl ()}\label{classKABC_1_1LDAPUrl_a0}


Constructs an empty KLDAPUrl. 



Definition at line 29 of file ldapurl.cpp.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!LDAPUrl@{LDAPUrl}}
\index{LDAPUrl@{LDAPUrl}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LDAPUrl::LDAPUrl (const {\bf KURL} \& {\em url})}\label{classKABC_1_1LDAPUrl_a1}


Constructs a KLDAPUrl from a {\bf KURL}. 



Definition at line 34 of file ldapurl.cpp.

References KURL::path(), and QString::remove().

\subsection{Member Function Documentation}
\index{KABC::LDAPUrl@{KABC::LDAPUrl}!dn@{dn}}
\index{dn@{dn}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KABC::LDAPUrl::dn () const\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a2}


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



Definition at line 62 of file ldapurl.h.

Referenced by set\-Dn().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setDn@{setDn}}
\index{setDn@{setDn}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LDAPUrl::set\-Dn (const {\bf QString} \& {\em dn})}\label{classKABC_1_1LDAPUrl_a3}


Sets the the dn part of the LDAP Url. 



Definition at line 47 of file ldapurl.cpp.

References dn(), QString::remove(), and KURL::set\-Path().

Referenced by KABC::Ldap\-Config\-Widget::url().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!attributes@{attributes}}
\index{attributes@{attributes}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString\-List}\& KABC::LDAPUrl::attributes ()\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a4}


Returns the attributes part of the LDAP Url. 



Definition at line 67 of file ldapurl.h.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setAttributes@{setAttributes}}
\index{setAttributes@{setAttributes}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KABC::LDAPUrl::set\-Attributes (const {\bf QString\-List} \& {\em attributes})\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a5}


Sets the attributes part of the LDAP Url. 



Definition at line 69 of file ldapurl.h.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!scope@{scope}}
\index{scope@{scope}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Scope KABC::LDAPUrl::scope () const\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a6}


Returns the scope part of the LDAP Url. 



Definition at line 73 of file ldapurl.h.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setScope@{setScope}}
\index{setScope@{setScope}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KABC::LDAPUrl::set\-Scope (Scope {\em scope})\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a7}


Sets the scope part of the LDAP Url. 



Definition at line 75 of file ldapurl.h.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!filter@{filter}}
\index{filter@{filter}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KABC::LDAPUrl::filter () const\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a8}


Returns the filter part of the LDAP Url. 



Definition at line 78 of file ldapurl.h.\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setFilter@{setFilter}}
\index{setFilter@{setFilter}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KABC::LDAPUrl::set\-Filter ({\bf QString} {\em filter})\hspace{0.3cm}{\tt  [inline]}}\label{classKABC_1_1LDAPUrl_a9}


Sets the filter part of the LDAP Url. 



Definition at line 80 of file ldapurl.h.

Referenced by KABC::Ldap\-Config\-Widget::url().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!hasExtension@{hasExtension}}
\index{hasExtension@{hasExtension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool LDAPUrl::has\-Extension (const {\bf QString} \& {\em key}) const}\label{classKABC_1_1LDAPUrl_a10}


Returns if the specified extension exists in the LDAP Url. 



Definition at line 59 of file ldapurl.cpp.

References QMap::contains().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!extension@{extension}}
\index{extension@{extension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LDAPUrl::Extension LDAPUrl::extension (const {\bf QString} \& {\em key}) const}\label{classKABC_1_1LDAPUrl_a11}


Returns the specified extension. 



Definition at line 64 of file ldapurl.cpp.

References QMap::const\-End(), and QMap::find().

Referenced by extension().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!extension@{extension}}
\index{extension@{extension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} LDAPUrl::extension (const {\bf QString} \& {\em key}, bool \& {\em critical}) const}\label{classKABC_1_1LDAPUrl_a12}


Returns the specified extension. 



Definition at line 79 of file ldapurl.cpp.

References extension().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setExtension@{setExtension}}
\index{setExtension@{setExtension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LDAPUrl::set\-Extension (const {\bf QString} \& {\em key}, const Extension \& {\em ext})}\label{classKABC_1_1LDAPUrl_a13}


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



Definition at line 88 of file ldapurl.cpp.

References update\-Query().

Referenced by set\-Extension(), and KABC::Ldap\-Config\-Widget::url().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!setExtension@{setExtension}}
\index{setExtension@{setExtension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LDAPUrl::set\-Extension (const {\bf QString} \& {\em key}, const {\bf QString} \& {\em value}, bool {\em critical} = {\tt false})}\label{classKABC_1_1LDAPUrl_a14}


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



Definition at line 94 of file ldapurl.cpp.

References set\-Extension().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!removeExtension@{removeExtension}}
\index{removeExtension@{removeExtension}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LDAPUrl::remove\-Extension (const {\bf QString} \& {\em key})}\label{classKABC_1_1LDAPUrl_a15}


Removes the specified extension. 



Definition at line 102 of file ldapurl.cpp.

References QMap::remove(), and update\-Query().\index{KABC::LDAPUrl@{KABC::LDAPUrl}!updateQuery@{updateQuery}}
\index{updateQuery@{updateQuery}!KABC::LDAPUrl@{KABC::LDAPUrl}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void LDAPUrl::update\-Query ()}\label{classKABC_1_1LDAPUrl_a16}


Updates the query component from the attributes, scope, filter and extensions. 



Definition at line 108 of file ldapurl.cpp.

References QMap::begin(), QMap::end(), endl(), QString::ends\-With(), QMap::is\-Empty(), QString::is\-Empty(), QString\-List::join(), kd\-Debug(), QString::length(), KURL::pretty\-URL(), QString::remove(), and KURL::set\-Query().

Referenced by remove\-Extension(), and set\-Extension().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
ldapurl.h\item 
ldapurl.cpp\end{CompactItemize}
