- 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:
-
Constructor Summary
ConstructorDescriptionUsagePolicies
(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 TypeMethodDescriptionclone()
Clones the flagsCombines this flags with enum entry.final int
final QNetworkSession.UsagePolicy []
flags()
Returns an array of flag objects represented by this UsagePolicies.Sets the flage
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>
-