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

tdecore

  • KNetwork
  • KResolverResults
Public Member Functions | Protected Member Functions | List of all members
KNetwork::KResolverResults Class Reference

#include <kresolver.h>

Inherits TQValueList< T >.

Public Member Functions

 KResolverResults ()
 
 KResolverResults (const KResolverResults &other)
 
virtual ~KResolverResults ()
 
KResolverResults & operator= (const KResolverResults &other)
 
int error () const
 
int systemError () const
 
void setError (int errorcode, int systemerror=0)
 
TQString nodeName () const
 
TQString serviceName () const
 
void setAddress (const TQString &host, const TQString &service)
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

Name and service resolution results.

This object contains the results of a name and service resolution, as those performed by KResolver. It is also a descendant of TQValueList, so you may use all its member functions here to access the elements.

A KResolverResults 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 KResolverResults objects to indicate failure, so you should test for failure.

Author
Thiago Macieira thiag.nosp@m.o.ma.nosp@m.cieir.nosp@m.a@kd.nosp@m.email.nosp@m..net

Definition at line 197 of file kresolver.h.

Constructor & Destructor Documentation

◆ KResolverResults() [1/2]

KResolverResults::KResolverResults ( )

Default constructor.

Constructs an empty list.

Definition at line 212 of file kresolver.cpp.

◆ KResolverResults() [2/2]

KResolverResults::KResolverResults ( const KResolverResults &  other)

Copy constructor.

Creates a new object with the contents of the other one. Data will be shared by the two objects, like QValueList

Definition at line 218 of file kresolver.cpp.

◆ ~KResolverResults()

KResolverResults::~KResolverResults ( )
virtual

Destructor.

Destroys the object and frees associated resources.

Definition at line 225 of file kresolver.cpp.

Member Function Documentation

◆ error()

int KResolverResults::error ( ) const

Retrieves the error code associated with this resolution.

The values here are the same as in KResolver::ErrorCodes.

Definition at line 247 of file kresolver.cpp.

◆ nodeName()

TQString KResolverResults::nodeName ( ) const

The nodename to which the resolution was performed.

Definition at line 266 of file kresolver.cpp.

◆ operator=()

KResolverResults & KResolverResults::operator= ( const KResolverResults &  other)

Assignment operator.

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

Definition at line 232 of file kresolver.cpp.

◆ serviceName()

TQString KResolverResults::serviceName ( ) const

The service name to which the resolution was performed.

Definition at line 272 of file kresolver.cpp.

◆ setAddress()

void KResolverResults::setAddress ( const TQString &  host,
const TQString &  service 
)

Sets the new nodename and service name.

Definition at line 278 of file kresolver.cpp.

◆ setError()

void KResolverResults::setError ( int  errorcode,
int  systemerror = 0 
)

Sets the error codes.

Parameters
errorcodethe error code in KResolver::ErrorCodes
systemerrorthe system error code associated, if any

Definition at line 259 of file kresolver.cpp.

◆ systemError()

int KResolverResults::systemError ( ) const

Retrieves the system error code, if any.

See also
KResolver::systemError for more information

Definition at line 253 of file kresolver.cpp.

◆ virtual_hook()

void KResolverResults::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 285 of file kresolver.cpp.


The documentation for this class was generated from the following files:
  • kresolver.h
  • kresolver.cpp

tdecore

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

tdecore

Skip menu "tdecore"
  • 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 tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.