|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QHostInfo.HostInfoError>
com.trolltech.qt.network.QHostInfo.HostInfoError
public static enum QHostInfo.HostInfoError
This enum describes the various errors that can occur when trying to resolve a host name.
Enum Constant Summary | |
---|---|
HostNotFound
No IP addresses were found for the host. |
|
NoError
The lookup was successful. |
|
UnknownError
An unknown error occurred. |
Method Summary | |
---|---|
static QHostInfo.HostInfoError |
resolve(int value)
|
int |
value()
|
static QHostInfo.HostInfoError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QHostInfo.HostInfoError[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final QHostInfo.HostInfoError NoError
The lookup was successful.
public static final QHostInfo.HostInfoError HostNotFound
No IP addresses were found for the host.
public static final QHostInfo.HostInfoError UnknownError
An unknown error occurred.
Method Detail |
---|
public static final QHostInfo.HostInfoError[] values()
for(QHostInfo.HostInfoError c : QHostInfo.HostInfoError.values()) System.out.println(c);
public static QHostInfo.HostInfoError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static QHostInfo.HostInfoError resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |