QBluetooth Namespace
The QBluetooth namespace provides classes and functions related to Bluetooth. More...
Header: | #include <QBluetooth> |
qmake: | QT += bluetooth |
Since: | Qt 5.2 |
Types
typedef | QLowEnergyHandle |
enum | Security { NoSecurity, Authorization, Authentication, Encryption, Secure } |
flags | SecurityFlags |
Detailed Description
The QBluetooth namespace provides classes and functions related to Bluetooth.
Type Documentation
typedef QLowEnergyHandle
Typedef for Bluetooth Low Energy ATT attribute handles.
This typedef was introduced in Qt 5.4.
enum QBluetooth::Securityflags QBluetooth::SecurityFlags
This enum describe the security requirements of a Bluetooth service.
Constant | Value | Description |
---|---|---|
QBluetooth::NoSecurity |
0x00 |
The service does not require any security. |
QBluetooth::Authorization |
0x01 |
The service requires authorization by the user, unless the device is Authorized-Paired. |
QBluetooth::Authentication |
0x02 |
The service requires authentication. Device must be paired, and the user is prompted on connection unless the device is Authorized-Paired. |
QBluetooth::Encryption |
0x04 |
The service requires the communication link to be encrypted. This requires the device to be paired. |
QBluetooth::Secure |
0x08 |
The service requires the communication link to be secure. Simple Pairing from Bluetooth 2.1 or greater is required. Legacy pairing is not permitted. |
The SecurityFlags type is a typedef for QFlags<Security>. It stores an OR combination of Security values.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qbluetooth.html