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
ConstructorsConstructorDescriptionCreates a new DiscoveryMethods.DiscoveryMethods(int value) Creates a new DiscoveryMethods with givenvalue.Creates a new DiscoveryMethods where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intflags()Returns an array of flag objects represented by this DiscoveryMethods.Sets the flagesetFlag(QBluetoothDeviceDiscoveryAgent.DiscoveryMethod 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
-
DiscoveryMethods
public DiscoveryMethods()Creates a new DiscoveryMethods. -
DiscoveryMethods
Creates a new DiscoveryMethods where the flags inargsare 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:
combinedin classQFlags<QBluetoothDeviceDiscoveryAgent.DiscoveryMethod>- Parameters:
e- enum entry- Returns:
- new DiscoveryMethods
-
setFlag
public final QBluetoothDeviceDiscoveryAgent.DiscoveryMethods setFlag(QBluetoothDeviceDiscoveryAgent.DiscoveryMethod e) Sets the flage- Overrides:
setFlagin 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:
setFlagin 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:
flagsin classQFlags<QBluetoothDeviceDiscoveryAgent.DiscoveryMethod>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QBluetoothDeviceDiscoveryAgent.DiscoveryMethod>
-
compareTo
- Specified by:
compareToin interfaceComparable<QBluetoothDeviceDiscoveryAgent.DiscoveryMethods>
-
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
-