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:
-
Constructor Summary
ConstructorDescriptionDiscoveryMethods
(int value) Creates a new DiscoveryMethods with givenvalue
.Creates a new DiscoveryMethods 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 DiscoveryMethods.Sets the flage
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>
-