• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

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

#include <k3resolver.h>

Inheritance diagram for KNetwork::KResolverResults:
Inheritance graph
[legend]

Public Member Functions

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

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 QValueList, 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@kd.nosp@m.e.org
Deprecated:
Use KSocketFactory or KLocalSocket instead

Definition at line 212 of file k3resolver.h.

Constructor & Destructor Documentation

KResolverResults::KResolverResults ( )

Default constructor.

Constructs an empty list.

Definition at line 198 of file k3resolver.cpp.

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 204 of file k3resolver.cpp.

KResolverResults::~KResolverResults ( )
virtual

Destructor.

Destroys the object and frees associated resources.

Definition at line 211 of file k3resolver.cpp.

Member Function Documentation

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 229 of file k3resolver.cpp.

QString KResolverResults::nodeName ( ) const

The nodename to which the resolution was performed.

Definition at line 248 of file k3resolver.cpp.

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 217 of file k3resolver.cpp.

QString KResolverResults::serviceName ( ) const

The service name to which the resolution was performed.

Definition at line 254 of file k3resolver.cpp.

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

Sets the new nodename and service name.

Definition at line 260 of file k3resolver.cpp.

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 241 of file k3resolver.cpp.

int KResolverResults::systemError ( ) const

Retrieves the system error code, if any.

See also
KResolver::systemError for more information

Definition at line 235 of file k3resolver.cpp.

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

Standard hack to add virtuals later.

Definition at line 267 of file k3resolver.cpp.


The documentation for this class was generated from the following files:
  • k3resolver.h
  • k3resolver.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal