KDECore
#include <k3resolver.h>
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 |
Public Member Functions inherited from QList< KResolverEntry > | |
QList () | |
QList (const QList< KResolverEntry > &other) | |
QList (std::initializer_list< KResolverEntry > args) | |
~QList () | |
void | append (const KResolverEntry &value) |
void | append (const QList< KResolverEntry > &value) |
const KResolverEntry & | at (int i) const |
KResolverEntry & | back () |
const KResolverEntry & | back () const |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
bool | contains (const KResolverEntry &value) const |
int | count (const KResolverEntry &value) const |
int | count () const |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
bool | endsWith (const KResolverEntry &value) const |
iterator | erase (iterator pos) |
iterator | erase (iterator begin, iterator end) |
iterator | find (iterator from, const KResolverEntry &t) |
iterator | find (const KResolverEntry &t) |
const_iterator | find (const KResolverEntry &t) const |
const_iterator | find (const_iterator from, const KResolverEntry &t) const |
int | findIndex (const KResolverEntry &t) const |
KResolverEntry & | first () |
const KResolverEntry & | first () const |
KResolverEntry & | front () |
const KResolverEntry & | front () const |
int | indexOf (const KResolverEntry &value, int from) const |
void | insert (int i, const KResolverEntry &value) |
iterator | insert (iterator before, const KResolverEntry &value) |
bool | isEmpty () const |
KResolverEntry & | last () |
const KResolverEntry & | last () const |
int | lastIndexOf (const KResolverEntry &value, int from) const |
int | length () const |
QList< KResolverEntry > | mid (int pos, int length) const |
void | move (int from, int to) |
bool | operator!= (const QList< KResolverEntry > &other) const |
QList< KResolverEntry > | operator+ (const QList< KResolverEntry > &other) const |
QList< KResolverEntry > & | operator+= (const QList< KResolverEntry > &other) |
QList< KResolverEntry > & | operator+= (const KResolverEntry &value) |
QList< KResolverEntry > & | operator<< (const KResolverEntry &value) |
QList< KResolverEntry > & | operator<< (const QList< KResolverEntry > &other) |
QList< KResolverEntry > & | operator= (const QList< KResolverEntry > &other) |
bool | operator== (const QList< KResolverEntry > &other) const |
KResolverEntry & | operator[] (int i) |
const KResolverEntry & | operator[] (int i) const |
void | pop_back () |
void | pop_front () |
void | prepend (const KResolverEntry &value) |
void | push_back (const KResolverEntry &value) |
void | push_front (const KResolverEntry &value) |
iterator | remove (iterator pos) |
int | remove (const KResolverEntry &t) |
int | removeAll (const KResolverEntry &value) |
void | removeAt (int i) |
void | removeFirst () |
void | removeLast () |
bool | removeOne (const KResolverEntry &value) |
void | replace (int i, const KResolverEntry &value) |
void | reserve (int alloc) |
int | size () const |
bool | startsWith (const KResolverEntry &value) const |
void | swap (int i, int j) |
void | swap (QList< KResolverEntry > &other) |
KResolverEntry | takeAt (int i) |
KResolverEntry | takeFirst () |
KResolverEntry | takeLast () |
QSet< KResolverEntry > | toSet () const |
std::list< KResolverEntry > | toStdList () const |
QVector< KResolverEntry > | toVector () const |
KResolverEntry | value (int i, const KResolverEntry &defaultValue) const |
KResolverEntry | value (int i) const |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Additional Inherited Members | |
Static Public Member Functions inherited from QList< KResolverEntry > | |
QList< KResolverEntry > | fromSet (const QSet< KResolverEntry > &set) |
QList< KResolverEntry > | fromStdList (const std::list< KResolverEntry > &list) |
QList< KResolverEntry > | fromVector (const QVector< KResolverEntry > &vector) |
Public Attributes inherited from QList< KResolverEntry > | |
typedef | const_pointer |
typedef | const_reference |
typedef | ConstIterator |
typedef | difference_type |
typedef | Iterator |
typedef | pointer |
typedef | reference |
typedef | size_type |
typedef | value_type |
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.
- Deprecated:
- Use KSocketFactory or KLocalSocket instead
Definition at line 212 of file k3resolver.h.
Constructor & Destructor Documentation
KResolverResults::KResolverResults | ( | ) |
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.
|
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.
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
-
errorcode the error code in KResolver::ErrorCodes systemerror the 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.
|
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:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.