diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-05-11 16:21:41 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2022-05-19 09:53:54 +0200 |
commit | d58d134d25695dd044fc13d57a4d754b1dfb4e4a (patch) | |
tree | ffb913f1143e00f948459d6b1af64700b724af3c /src/bluetooth/qlowenergycontroller.cpp | |
parent | 5f249c3d0105b5b5d104770925b7b2fcefd183f6 (diff) |
Introduce error codes for missing permissions
Some operating systems might request special permissions while working
with Bluetooth. Previously if the permissions were missing, we were
returning an UnknownError, and the error description, when available,
was not very good as well.
[ChangeLog][QtBluetooth] Various error enums are extended with new
error codes that represent missing permissions error. Error descriptions
are also updated, when available.
This patch also applies new error codes to Android implementation.
Fixes: QTBUG-102373
Change-Id: I247371de6b1eb8d39f0f99c50269d2b1f3bf21c2
Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index eeebe5fe..ca279aa3 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -169,6 +169,9 @@ Q_DECLARE_LOGGING_CATEGORY(QT_BT_ANDROID) \value AuthorizationError The local Bluetooth device closed the connection due to insufficient authorization. This value was introduced by Qt 5.14. + \value [since 6.4] MissingPermissionsError The operating system requests + permissions which were not + granted by the user. */ /*! |