![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Access Bluetooth peripherals. More...
#include <qpermissions.h>
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.
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 442 of file qpermissions.cpp.
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 426 of file qpermissions.cpp.