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