qtconnectivity/tests/bluetoothtestdevice
Juha Vuolle e24f99cc1d Use the new "permissions error" code on macOS
Qt 6.4 introduces new error code for permission errors (QTBUG-102373).
This commit makes use of the new error code. This consists of two
parts:
1) If the bluetooth permission key is missing from the application's
   Info.plist and we know it's needed => permission error. This is
   limited to Low Energy because classic bluetooth does not need it
   on macOS, and iOS does not support classic bluetooth.
   If the key is missing, it is an application development/deployment
   error and we should not make too many of these checks - few places
   is enough.
2) At runtime the platform prompts for bluetooth permission and the user
   may disallow it => permission error.

Amends: d58d134d25

Fixes: QTBUG-103388
Change-Id: I96de202e9ac8c33e51bc126389f62091d03eab70
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2022-05-30 17:29:15 +03:00
..
CMakeLists.txt Tests: Use REQUIRED COMPONENTS where applicable 2022-05-13 16:10:22 +02:00
bluetoothtestdevice.cpp Use the new "permissions error" code on macOS 2022-05-30 17:29:15 +03:00