- 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
ConstructorsConstructorDescriptionCreates a new ServiceClasses.ServiceClasses(int value) Creates a new ServiceClasses with givenvalue.Creates a new ServiceClasses where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QBluetoothDeviceInfo.ServiceClass []flags()Returns an array of flag objects represented by this ServiceClasses.Sets the flagesetFlag(QBluetoothDeviceInfo.ServiceClass e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
ServiceClasses
public ServiceClasses()Creates a new ServiceClasses. -
ServiceClasses
Creates a new ServiceClasses where the flags inargsare 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:
combinedin classQFlags<QBluetoothDeviceInfo.ServiceClass>- Parameters:
e- enum entry- Returns:
- new ServiceClasses
-
setFlag
Sets the flage- Overrides:
setFlagin 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:
setFlagin 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:
flagsin classQFlags<QBluetoothDeviceInfo.ServiceClass>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QBluetoothDeviceInfo.ServiceClass>
-
compareTo
- Specified by:
compareToin 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
-