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