diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-10-30 12:36:58 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-10-30 15:17:30 +0100 |
commit | ca3dc0a8d296c82f584c4c028d8dbc586c896300 (patch) | |
tree | 5705fee106c7ec1663cac0a4cd0ec93acf823564 /src/bluetooth/qbluetoothdevicediscoveryagent.cpp | |
parent | a6c18d1babb2b38ade3d7a67c0a903701ef3ebf2 (diff) |
Add QBLuetoothDeviceDiscoveryAgent::UnsupportedPlatformError
iOS does not support classic Bluetooth device discovery. However since
iOS 5.0 it is possible to search for Bluetooth Low Energy devices. On
pre 5.0 devices tLE scan is not possible and this error enum is going
to be used.
In addition the enum is utilized by the default backend
which is used on unsupported Bluetooth platforms.
[ChangeLog][QtBluetooth][QBluetoothDeviceDiscoveryAgent] A new
UnsupportedPlatformError enum value added.
Change-Id: I74b85782ba1e8ac55798171151b364d5dc0aa79f
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent.cpp index b92e9c72..ca8e701c 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent.cpp @@ -68,6 +68,10 @@ QT_BEGIN_NAMESPACE \value InputOutputError Writing or reading from the device resulted in an error. \value InvalidBluetoothAdapterError The passed local adapter address does not match the physical adapter address of any local Bluetooth device. + \value UnsupportedPlatformError Device discovery is not possible or implemented on the current + platform. The error is set in response to a call to \l start(). + An example for such cases are iOS versions below 5.0 which do not support + Bluetooth device search at all. This value was introduced by Qt 5.5. \value UnknownError An unknown error has occurred. */ |