- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ServiceClasses(int value)
Creates a new ServiceClasses with givenvalue
.ServiceClasses(QBluetoothDeviceInfo.ServiceClass... args)
Creates a new ServiceClasses where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QBluetoothDeviceInfo.ServiceClasses
clone()
Clones the flagsQBluetoothDeviceInfo.ServiceClasses
combined(QBluetoothDeviceInfo.ServiceClass e)
Combines this flags with enum entry.int
compareTo(QBluetoothDeviceInfo.ServiceClasses other)
QBluetoothDeviceInfo.ServiceClass[]
flags()
Returns an array of flag objects represented by this ServiceClasses.QBluetoothDeviceInfo.ServiceClasses
setFlag(QBluetoothDeviceInfo.ServiceClass e)
Sets the flage
QBluetoothDeviceInfo.ServiceClasses
setFlag(QBluetoothDeviceInfo.ServiceClass e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-