|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QNetworkInterface.InterfaceFlag>
com.trolltech.qt.network.QNetworkInterface.InterfaceFlag
public static enum QNetworkInterface.InterfaceFlag
Specifies the flags associated with this network interface. The possible values are:
Constant | Value | Description |
---|---|---|
IsUp | 1 | the network interface is active |
IsRunning | 2 | the network interface has resources allocated |
CanBroadcast | 4 | the network interface works in broadcast mode |
IsLoopBack | 8 | the network interface is a loopback interface: that is, it's a virtual interface whose destination is the host computer itself |
IsPointToPoint | 16 | the network interface is a point-to-point interface: that is, there is one, single other address that can be directly reached by it. |
CanMulticast | 32 | the network interface supports multicasting |
Note that one network interface cannot be both broadcast-based and point-to-point.
Enum Constant Summary | |
---|---|
CanBroadcast
the network interface works in broadcast mode |
|
CanMulticast
the network interface supports multicasting |
|
IsLoopBack
the network interface is a loopback interface: that is, it's a virtual interface whose destination is the host computer itself |
|
IsPointToPoint
the network interface is a point-to-point interface: that is, there is one, single other address that can be directly reached by it. |
|
IsRunning
the network interface has resources allocated |
|
IsUp
the network interface is active |
Method Summary | |
---|---|
static QNetworkInterface.InterfaceFlags |
createQFlags(QNetworkInterface.InterfaceFlag... values)
|
static QNetworkInterface.InterfaceFlag |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QNetworkInterface.InterfaceFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QNetworkInterface.InterfaceFlag[] |
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 QNetworkInterface.InterfaceFlag IsUp
the network interface is active
public static final QNetworkInterface.InterfaceFlag IsRunning
the network interface has resources allocated
public static final QNetworkInterface.InterfaceFlag CanBroadcast
the network interface works in broadcast mode
public static final QNetworkInterface.InterfaceFlag IsLoopBack
the network interface is a loopback interface: that is, it's a virtual interface whose destination is the host computer itself
public static final QNetworkInterface.InterfaceFlag IsPointToPoint
the network interface is a point-to-point interface: that is, there is one, single other address that can be directly reached by it.
public static final QNetworkInterface.InterfaceFlag CanMulticast
the network interface supports multicasting
Method Detail |
---|
public static final QNetworkInterface.InterfaceFlag[] values()
for(QNetworkInterface.InterfaceFlag c : QNetworkInterface.InterfaceFlag.values()) System.out.println(c);
public static QNetworkInterface.InterfaceFlag 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 QNetworkInterface.InterfaceFlags createQFlags(QNetworkInterface.InterfaceFlag... values)
public static QNetworkInterface.InterfaceFlag resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |