• BluetoothDiscoveryReply
  • BluetoothDiscoveryReply Class

    The BluetoothDiscoveryReply class contains the result and interaction of a discovery request done with the BluetoothLowEnergyManager. More...

    Header: #include <BluetoothDiscoveryReply>
    Inherits:
    Inherited By:

    Public Types

    enum BluetoothDiscoveryReplyError { BluetoothDiscoveryReplyErrorNoError, BluetoothDiscoveryReplyErrorNotAvailable, BluetoothDiscoveryReplyErrorNotEnabled, BluetoothDiscoveryReplyErrorBusy }

    Public Functions

    BluetoothDiscoveryReply(QObject * parent = nullptr)
    virtual ~BluetoothDiscoveryReply()
    virtual QList<QBluetoothDeviceInfo> discoveredDevices() const = 0
    virtual BluetoothDiscoveryReplyError error() const = 0
    virtual bool isFinished() const = 0

    Signals

    void errorOccurred(const BluetoothDiscoveryReplyError & error)
    void finished()

    Detailed Description

    The BluetoothDiscoveryReply class contains the result and interaction of a discovery request done with the BluetoothLowEnergyManager.

    See also BluetoothLowEnergyManager.

    Member Type Documentation

    enum BluetoothDiscoveryReply::BluetoothDiscoveryReplyError

    This enum represents the possible errors of a BluetoothDiscoveryReply.

    ConstantValueDescription
    BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNoError0No error occured. Everything is fine.
    BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNotAvailable1The discovery could not be performed because there is no Bluetooth hardware available.
    BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorNotEnabled2The discovery could not be performed because there is no Bluetooth hardware resource in nymea is disabled.
    BluetoothDiscoveryReply::BluetoothDiscoveryReplyErrorBusy3The resource is currently busy.

    Member Function Documentation

    BluetoothDiscoveryReply::BluetoothDiscoveryReply(QObject * parent = nullptr)

    Constructs a new BluetoothDiscoveryReply with the given parent.

    [virtual] BluetoothDiscoveryReply::~BluetoothDiscoveryReply()

    The virtual destructor of the BluetoothDiscoveryReply.

    [pure virtual] QList<QBluetoothDeviceInfo> BluetoothDiscoveryReply::discoveredDevices() const

    Returns the list of discovered QBluetoothDeviceInfo.

    See also isFinished and discoveredDevices.

    [pure virtual] BluetoothDiscoveryReplyError BluetoothDiscoveryReply::error() const

    Returns 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() const

    Returns true if this discovery replay is finished.

    See also finished and discoveredDevices.