The BluetoothDiscoveryReply class contains the result and interaction of a discovery request done with the BluetoothLowEnergyManager. More...
Header: | #include <BluetoothDiscoveryReply> |
Inherits: | |
Inherited By: |
enum | BluetoothDiscoveryReplyError { BluetoothDiscoveryReplyErrorNoError, BluetoothDiscoveryReplyErrorNotAvailable, BluetoothDiscoveryReplyErrorNotEnabled, BluetoothDiscoveryReplyErrorBusy } |
BluetoothDiscoveryReply(QObject * parent = nullptr) | |
virtual | ~BluetoothDiscoveryReply() |
virtual QList<QBluetoothDeviceInfo> | discoveredDevices() const = 0 |
virtual BluetoothDiscoveryReplyError | error() const = 0 |
virtual bool | isFinished() const = 0 |
void | errorOccurred(const BluetoothDiscoveryReplyError & error) |
void | finished() |
The BluetoothDiscoveryReply class contains the result and interaction of a discovery request done with the BluetoothLowEnergyManager.
See also BluetoothLowEnergyManager.
This enum represents the possible errors of a BluetoothDiscoveryReply.
Constant | Value | Description |
---|---|---|
BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNoError | 0 | No error occured. Everything is fine. |
BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNotAvailable | 1 | The discovery could not be performed because there is no Bluetooth hardware available. |
BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNotEnabled | 2 | The discovery could not be performed because there is no Bluetooth hardware resource in nymea is disabled. |
BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorBusy | 3 | The resource is currently busy. |
Constructs a new BluetoothDiscoveryReply with the given parent.
[virtual]
BluetoothDiscoveryReply::~BluetoothDiscoveryReply()The virtual destructor of the BluetoothDiscoveryReply.
[pure virtual]
QList<QBluetoothDeviceInfo> BluetoothDiscoveryReply::discoveredDevices() constReturns the list of discovered QBluetoothDeviceInfo.
See also isFinished and discoveredDevices.
[pure virtual]
BluetoothDiscoveryReplyError BluetoothDiscoveryReply::error() constReturns the current error of this BluetoothDiscoveryReply.
See also BluetoothDiscoveryReplyError.
[signal]
void BluetoothDiscoveryReply::errorOccurred(const BluetoothDiscoveryReplyError & error)This signal will be emitted whenever an error occured.
See also error and BluetoothDiscoveryReplyError.
[signal]
void BluetoothDiscoveryReply::finished()This signal will be emitted whenever the discovery for this BluetoothDiscoveryReply is finished. You can get the result of the discovery from discoveredDevices();
See also isFinished and discoveredDevices.
[pure virtual]
bool BluetoothDiscoveryReply::isFinished() constReturns true if this discovery replay is finished.
See also finished and discoveredDevices.