.TH "KNetwork::KResolverResults" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KNetwork::KResolverResults \- Name and service resolution results.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kresolver.h>\fP
.PP
Inherits \fBQValueList< KResolverEntry >\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKResolverResults\fP ()"
.br
.ti -1c
.RI "\fBKResolverResults\fP (const \fBKResolverResults\fP &other)"
.br
.ti -1c
.RI "virtual \fB~KResolverResults\fP ()"
.br
.ti -1c
.RI "\fBKResolverResults\fP & \fBoperator=\fP (const \fBKResolverResults\fP &other)"
.br
.ti -1c
.RI "int \fBerror\fP () const "
.br
.ti -1c
.RI "int \fBsystemError\fP () const "
.br
.ti -1c
.RI "void \fBsetError\fP (int errorcode, int systemerror=0)"
.br
.ti -1c
.RI "\fBQString\fP \fBnodeName\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBserviceName\fP () const "
.br
.ti -1c
.RI "void \fBsetAddress\fP (const \fBQString\fP &host, const \fBQString\fP &service)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Name and service resolution results. 

This object contains the results of a name and service resolution, as those performed by \fBKResolver\fP. It is also a descendant of \fBQValueList\fP, so you may use all its member functions here to access the elements.
.PP
A \fBKResolverResults\fP 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.
.PP
Note Resolver also uses \fBKResolverResults\fP objects to indicate failure, so you should test for failure.
.PP
\fBAuthor:\fP
.RS 4
Thiago Macieira <thiago.macieira@kdemail.net> 
.RE
.PP

.PP
Definition at line 197 of file kresolver.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KResolverResults::KResolverResults ()"
.PP
Default constructor. 
.PP
Constructs an empty list. 
.PP
Definition at line 206 of file kresolver.cpp.
.SS "KResolverResults::KResolverResults (const \fBKResolverResults\fP & other)"
.PP
Copy constructor. 
.PP
Creates a new object with the contents of the other one. Data will be shared by the two objects, like \fBQValueList\fP 
.PP
Definition at line 212 of file kresolver.cpp.
.SS "KResolverResults::~\fBKResolverResults\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Destroys the object and frees associated resources. 
.PP
Definition at line 219 of file kresolver.cpp.
.SH "Member Function Documentation"
.PP 
.SS "\fBKResolverResults\fP & KResolverResults::operator= (const \fBKResolverResults\fP & other)"
.PP
Assignment operator. 
.PP
Copies the contents of the other container into this one, discarding our current values. 
.PP
Definition at line 226 of file kresolver.cpp.
.SS "int KResolverResults::error () const"
.PP
Retrieves the error code associated with this resolution. 
.PP
The values here are the same as in \fBKResolver::ErrorCodes\fP. 
.PP
Definition at line 241 of file kresolver.cpp.
.SS "int KResolverResults::systemError () const"
.PP
Retrieves the system error code, if any. 
.PP
\fBSee also:\fP
.RS 4
\fBKResolver::systemError\fP for more information 
.RE
.PP

.PP
Definition at line 247 of file kresolver.cpp.
.SS "void KResolverResults::setError (int errorcode, int systemerror = \fC0\fP)"
.PP
Sets the error codes. 
.PP
\fBParameters:\fP
.RS 4
\fIerrorcode\fP the error code in \fBKResolver::ErrorCodes\fP 
.br
\fIsystemerror\fP the system error code associated, if any 
.RE
.PP

.PP
Definition at line 253 of file kresolver.cpp.
.PP
Referenced by KNetwork::KResolver::results().
.SS "\fBQString\fP KResolverResults::nodeName () const"
.PP
The nodename to which the resolution was performed. 
.PP
Definition at line 260 of file kresolver.cpp.
.SS "\fBQString\fP KResolverResults::serviceName () const"
.PP
The service name to which the resolution was performed. 
.PP
Definition at line 266 of file kresolver.cpp.
.SS "void KResolverResults::setAddress (const \fBQString\fP & host, const \fBQString\fP & service)"
.PP
Sets the new nodename and service name. 
.PP
Definition at line 272 of file kresolver.cpp.
.PP
Referenced by KNetwork::KResolver::results().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
