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