\section{KABC::Agent Class Reference}
\label{classKABC_1_1Agent}\index{KABC::Agent@{KABC::Agent}}
Important!!!  


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

Collaboration diagram for KABC::Agent:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=168pt]{classKABC_1_1Agent__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Agent} ()
\item 
{\bf Agent} (const {\bf QString} \&url)
\item 
{\bf Agent} ({\bf Addressee} $\ast$addressee)
\item 
{\bf $\sim$Agent} ()
\item 
bool {\bf operator==} (const {\bf Agent} \&) const \label{classKABC_1_1Agent_a4}

\item 
bool {\bf operator!=} (const {\bf Agent} \&) const \label{classKABC_1_1Agent_a5}

\item 
{\bf Agent} \& {\bf operator=} (const {\bf Agent} \&)\label{classKABC_1_1Agent_a6}

\item 
void {\bf set\-Url} (const {\bf QString} \&url)
\item 
void {\bf set\-Addressee} ({\bf Addressee} $\ast$addressee)
\item 
bool {\bf is\-Intern} () const 
\item 
{\bf QString} {\bf url} () const 
\item 
{\bf Addressee} $\ast$ {\bf addressee} () const 
\item 
{\bf QString} {\bf as\-String} () const 
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
KABC\_\-EXPORT {\bf QData\-Stream} \& {\bf operator$<$$<$} ({\bf QData\-Stream} \&, const {\bf Agent} \&)\label{classKABC_1_1Agent_n0}

\item 
KABC\_\-EXPORT {\bf QData\-Stream} \& {\bf operator$>$$>$} ({\bf QData\-Stream} \&, {\bf Agent} \&)\label{classKABC_1_1Agent_n1}

\end{CompactItemize}


\subsection{Detailed Description}
Important!!! 

At the moment the vcard format does not support saving and loading this entity. 



Definition at line 40 of file agent.h.

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


Consturctor. 

Creates an empty object. 

Definition at line 27 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!Agent@{Agent}}
\index{Agent@{Agent}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Agent::Agent (const {\bf QString} \& {\em url})}\label{classKABC_1_1Agent_a1}


Consturctor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]A URL that describes the position of the agent file. \end{description}
\end{Desc}


Definition at line 32 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!Agent@{Agent}}
\index{Agent@{Agent}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Agent::Agent ({\bf Addressee} $\ast$ {\em addressee})}\label{classKABC_1_1Agent_a2}


Consturctor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addressee}]The addressee object of the agent. \end{description}
\end{Desc}


Definition at line 37 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!~Agent@{$\sim$Agent}}
\index{~Agent@{$\sim$Agent}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Agent::$\sim${\bf Agent} ()}\label{classKABC_1_1Agent_a3}


Destructor. 



Definition at line 42 of file agent.cpp.

\subsection{Member Function Documentation}
\index{KABC::Agent@{KABC::Agent}!setUrl@{setUrl}}
\index{setUrl@{setUrl}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Agent::set\-Url (const {\bf QString} \& {\em url})}\label{classKABC_1_1Agent_a7}


Sets a URL for the location of the agent file. 

When using this function, {\bf is\-Intern()}{\rm (p.\,\pageref{classKABC_1_1Agent_a9})} will return 'false' until you use {\bf set\-Addressee()}{\rm (p.\,\pageref{classKABC_1_1Agent_a8})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]The location URL of the agent file. \end{description}
\end{Desc}


Definition at line 90 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!setAddressee@{setAddressee}}
\index{setAddressee@{setAddressee}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Agent::set\-Addressee ({\bf Addressee} $\ast$ {\em addressee})}\label{classKABC_1_1Agent_a8}


Sets the addressee of the agent. 

When using this function, {\bf is\-Intern()}{\rm (p.\,\pageref{classKABC_1_1Agent_a9})} will return 'true' until you use {\bf set\-Url()}{\rm (p.\,\pageref{classKABC_1_1Agent_a7})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em addressee}]The addressee object of the agent. \end{description}
\end{Desc}


Definition at line 96 of file agent.cpp.

References addressee().\index{KABC::Agent@{KABC::Agent}!isIntern@{isIntern}}
\index{isIntern@{isIntern}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Agent::is\-Intern () const}\label{classKABC_1_1Agent_a9}


Returns whether the agent is described by a URL (extern) or by a addressee (intern). 

When this method returns 'true' you can use {\bf addressee()}{\rm (p.\,\pageref{classKABC_1_1Agent_a11})} to get a {\bf Addressee}{\rm (p.\,\pageref{classKABC_1_1Addressee})} object. Otherwise you can request the URL of this agent by {\bf url()}{\rm (p.\,\pageref{classKABC_1_1Agent_a10})} and load the data from that location. 

Definition at line 102 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!url@{url}}
\index{url@{url}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Agent::url () const}\label{classKABC_1_1Agent_a10}


Returns the location URL of this agent. 



Definition at line 107 of file agent.cpp.\index{KABC::Agent@{KABC::Agent}!addressee@{addressee}}
\index{addressee@{addressee}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Addressee} $\ast$ Agent::addressee () const}\label{classKABC_1_1Agent_a11}


Returns the addressee object of this agent. 



Definition at line 112 of file agent.cpp.

Referenced by set\-Addressee().\index{KABC::Agent@{KABC::Agent}!asString@{asString}}
\index{asString@{asString}!KABC::Agent@{KABC::Agent}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} Agent::as\-String () const}\label{classKABC_1_1Agent_a12}


Returns string representation of the agent. 



Definition at line 117 of file agent.cpp.

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