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