- 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
ConstructorDescriptionServiceClasses
(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
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
-
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>
-