\section{KNetwork::KResolver\-Results Class Reference}
\label{classKNetwork_1_1KResolverResults}\index{KNetwork::KResolverResults@{KNetwork::KResolverResults}}
Name and service resolution results.  


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

Inheritance diagram for KNetwork::KResolver\-Results:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKNetwork_1_1KResolverResults__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNetwork::KResolver\-Results:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKNetwork_1_1KResolverResults__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KResolver\-Results} ()
\item 
{\bf KResolver\-Results} (const {\bf KResolver\-Results} \&other)
\item 
virtual {\bf $\sim$KResolver\-Results} ()
\item 
{\bf KResolver\-Results} \& {\bf operator=} (const {\bf KResolver\-Results} \&other)
\item 
int {\bf error} () const 
\item 
int {\bf system\-Error} () const 
\item 
void {\bf set\-Error} (int errorcode, int systemerror=0)
\item 
{\bf QString} {\bf node\-Name} () const 
\item 
{\bf QString} {\bf service\-Name} () const 
\item 
void {\bf set\-Address} (const {\bf QString} \&host, const {\bf QString} \&service)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKNetwork_1_1KResolverResults_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Name and service resolution results. 

This object contains the results of a name and service resolution, as those performed by {\bf KResolver}{\rm (p.\,\pageref{classKNetwork_1_1KResolver})}. It is also a descendant of {\bf QValue\-List}, so you may use all its member functions here to access the elements.

A {\bf KResolver\-Results}{\rm (p.\,\pageref{classKNetwork_1_1KResolverResults})} object is associated with a resolution, so, in addition to the resolved elements, you can also retrieve information about the resolution process itself, like the nodename that was resolved or an error code.

Note Resolver also uses {\bf KResolver\-Results}{\rm (p.\,\pageref{classKNetwork_1_1KResolverResults})} objects to indicate failure, so you should test for failure.

\begin{Desc}
\item[Author:]Thiago Macieira $<${\tt thiago.macieira@kdemail.net}$>$ \end{Desc}




Definition at line 197 of file kresolver.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!KResolverResults@{KResolverResults}}
\index{KResolverResults@{KResolverResults}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KResolver\-Results::KResolver\-Results ()}\label{classKNetwork_1_1KResolverResults_a0}


Default constructor. 

Constructs an empty list. 

Definition at line 206 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!KResolverResults@{KResolverResults}}
\index{KResolverResults@{KResolverResults}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KResolver\-Results::KResolver\-Results (const {\bf KResolver\-Results} \& {\em other})}\label{classKNetwork_1_1KResolverResults_a1}


Copy constructor. 

Creates a new object with the contents of the other one. Data will be shared by the two objects, like {\bf QValue\-List} 

Definition at line 212 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!~KResolverResults@{$\sim$KResolverResults}}
\index{~KResolverResults@{$\sim$KResolverResults}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KResolver\-Results::$\sim${\bf KResolver\-Results} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKNetwork_1_1KResolverResults_a2}


Destructor. 

Destroys the object and frees associated resources. 

Definition at line 219 of file kresolver.cpp.

\subsection{Member Function Documentation}
\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!operator=@{operator=}}
\index{operator=@{operator=}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KResolver\-Results} \& KResolver\-Results::operator= (const {\bf KResolver\-Results} \& {\em other})}\label{classKNetwork_1_1KResolverResults_a3}


Assignment operator. 

Copies the contents of the other container into this one, discarding our current values. 

Definition at line 226 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!error@{error}}
\index{error@{error}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KResolver\-Results::error () const}\label{classKNetwork_1_1KResolverResults_a4}


Retrieves the error code associated with this resolution. 

The values here are the same as in {\bf KResolver::Error\-Codes}{\rm (p.\,\pageref{classKNetwork_1_1KResolver_w35})}. 

Definition at line 241 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!systemError@{systemError}}
\index{systemError@{systemError}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KResolver\-Results::system\-Error () const}\label{classKNetwork_1_1KResolverResults_a5}


Retrieves the system error code, if any. 

\begin{Desc}
\item[See also:]{\bf KResolver::system\-Error}{\rm (p.\,\pageref{classKNetwork_1_1KResolver_a5})} for more information \end{Desc}


Definition at line 247 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!setError@{setError}}
\index{setError@{setError}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KResolver\-Results::set\-Error (int {\em errorcode}, int {\em systemerror} = {\tt 0})}\label{classKNetwork_1_1KResolverResults_a6}


Sets the error codes. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em errorcode}]the error code in {\bf KResolver::Error\-Codes}{\rm (p.\,\pageref{classKNetwork_1_1KResolver_w35})} \item[{\em systemerror}]the system error code associated, if any \end{description}
\end{Desc}


Definition at line 253 of file kresolver.cpp.

Referenced by KNetwork::KResolver::results().\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!nodeName@{nodeName}}
\index{nodeName@{nodeName}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KResolver\-Results::node\-Name () const}\label{classKNetwork_1_1KResolverResults_a7}


The nodename to which the resolution was performed. 



Definition at line 260 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!serviceName@{serviceName}}
\index{serviceName@{serviceName}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KResolver\-Results::service\-Name () const}\label{classKNetwork_1_1KResolverResults_a8}


The service name to which the resolution was performed. 



Definition at line 266 of file kresolver.cpp.\index{KNetwork::KResolverResults@{KNetwork::KResolver\-Results}!setAddress@{setAddress}}
\index{setAddress@{setAddress}!KNetwork::KResolverResults@{KNetwork::KResolver\-Results}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KResolver\-Results::set\-Address (const {\bf QString} \& {\em host}, const {\bf QString} \& {\em service})}\label{classKNetwork_1_1KResolverResults_a9}


Sets the new nodename and service name. 



Definition at line 272 of file kresolver.cpp.

Referenced by KNetwork::KResolver::results().

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