|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QAbstractSocket.SocketState>
com.trolltech.qt.network.QAbstractSocket.SocketState
public static enum QAbstractSocket.SocketState
This enum describes the different states in which a socket can be.
Enum Constant Summary | |
---|---|
BoundState
The socket is bound to an address and port (for servers). |
|
ClosingState
The socket is about to close (data may still be waiting to be written). |
|
ConnectedState
A connection is established. |
|
ConnectingState
The socket has started establishing a connection. |
|
HostLookupState
The socket is performing a host name lookup. |
|
ListeningState
For internal use only. |
|
UnconnectedState
The socket is not connected. |
Method Summary | |
---|---|
static QAbstractSocket.SocketState |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QAbstractSocket.SocketState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QAbstractSocket.SocketState[] |
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 QAbstractSocket.SocketState UnconnectedState
The socket is not connected.
public static final QAbstractSocket.SocketState HostLookupState
The socket is performing a host name lookup.
public static final QAbstractSocket.SocketState ConnectingState
The socket has started establishing a connection.
public static final QAbstractSocket.SocketState ConnectedState
A connection is established.
public static final QAbstractSocket.SocketState BoundState
The socket is bound to an address and port (for servers).
public static final QAbstractSocket.SocketState ListeningState
For internal use only.
public static final QAbstractSocket.SocketState ClosingState
The socket is about to close (data may still be waiting to be written).
Method Detail |
---|
public static final QAbstractSocket.SocketState[] values()
for(QAbstractSocket.SocketState c : QAbstractSocket.SocketState.values()) System.out.println(c);
public static QAbstractSocket.SocketState 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()
QtEnumerator
value
in interface QtEnumerator
public static QAbstractSocket.SocketState resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |