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