- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QNetworkInterface.InterfaceFlags>
- Enclosing class:
- QNetworkInterface
public static final class QNetworkInterface.InterfaceFlags extends QFlags<QNetworkInterface.InterfaceFlag> implements Comparable<QNetworkInterface.InterfaceFlags>
QFlags type for enum
QNetworkInterface.InterfaceFlag
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description InterfaceFlags(int value)
Creates a new InterfaceFlags with givenvalue
.InterfaceFlags(QNetworkInterface.InterfaceFlag... args)
Creates a new InterfaceFlags where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QNetworkInterface.InterfaceFlags
clone()
Clones the flagsQNetworkInterface.InterfaceFlags
combined(QNetworkInterface.InterfaceFlag e)
Combines this flags with enum entry.int
compareTo(QNetworkInterface.InterfaceFlags other)
QNetworkInterface.InterfaceFlag[]
flags()
Returns an array of flag objects represented by this InterfaceFlags.QNetworkInterface.InterfaceFlags
setFlag(QNetworkInterface.InterfaceFlag e)
Sets the flage
QNetworkInterface.InterfaceFlags
setFlag(QNetworkInterface.InterfaceFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
InterfaceFlags
Creates a new InterfaceFlags where the flags inargs
are set.- Parameters:
args
- enum entries
-
InterfaceFlags
public InterfaceFlags(int value)Creates a new InterfaceFlags with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QNetworkInterface.InterfaceFlag>
- Parameters:
e
- enum entry- Returns:
- new InterfaceFlags
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QNetworkInterface.InterfaceFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QNetworkInterface.InterfaceFlags setFlag(QNetworkInterface.InterfaceFlag e, boolean on)Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QNetworkInterface.InterfaceFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this InterfaceFlags.- Overrides:
flags
in classQFlags<QNetworkInterface.InterfaceFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QNetworkInterface.InterfaceFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QNetworkInterface.InterfaceFlags>
-