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