![]() |
Qt 6.x
The Qt SDK
|
Access Bluetooth peripherals. More...
#include <qpermissions.h>
Collaboration diagram for QBluetoothPermission:Public Types | |
| enum | CommunicationMode : quint8 { Access = 0x01 , Advertise = 0x02 , Default = Access | Advertise } |
Public Member Functions | |
| Q_CORE_EXPORT void | setCommunicationModes (CommunicationModes modes) |
| Q_CORE_EXPORT CommunicationModes | communicationModes () const |
Access Bluetooth peripherals.
Definition at line 177 of file qpermissions.h.
This enum is used to control the allowed Bluetooth communication modes.
\value Access Allow this device to access other Bluetooth devices. This includes scanning for nearby devices and connecting to them. \value Advertise Allow other Bluetooth devices to discover this device. \value Default This configuration is used by default.
Access mode on Android also requests the \l {QLocationPermission::Precise}{precise location} permission. This permission coupling may change in the future. | Enumerator | |
|---|---|
| Access | |
| Advertise | |
| Default | |
Definition at line 181 of file qpermissions.h.
| QBluetoothPermission::CommunicationModes QBluetoothPermission::communicationModes | ( | ) | const |
Returns the allowed Bluetooth communication modes.
Definition at line 433 of file qpermissions.cpp.
Referenced by nativeBluetoothPermission().
Here is the caller graph for this function:| void QBluetoothPermission::setCommunicationModes | ( | CommunicationModes | modes | ) |
Sets the allowed Bluetooth communication modes to modes.
{qWarning()} and fall back to using the \l {QBluetoothPermission::}{Default} mode. Definition at line 417 of file qpermissions.cpp.
References Default, and qCWarning.
Referenced by ensureAndroidPermission().
Here is the caller graph for this function: