QtMobility Reference Documentation

QBluetooth Namespace

The QBluetooth namespace contains functions and definitions related to Bluetooth. More...

 #include <QBluetooth>

This namespace was introduced in Qt Mobility 1.2.

Types

enum Security { NoSecurity, Authorization, Authentication, Encryption, Secure }
flags SecurityFlags

Detailed Description

The QBluetooth namespace contains functions and definitions related to Bluetooth.

Type Documentation

enum QBluetooth::Security
flags QBluetooth::SecurityFlags

This enum describe the security requirements of a Bluetooth service.

ConstantValueDescription
QBluetooth::NoSecurity0x00The service does not require any security.
QBluetooth::Authorization0x01The service requires authorization. Device does not have to paired, the connection will be granted by prompting the user unless the device is Authorized-Paired where the connection will be made automatically.
QBluetooth::Authentication0x02The service requires authentication. Device must paired, the user maybe prompted on connection unless the device is Authorized-Paired.
QBluetooth::Encryption0x04The service requires that the communications link be encrypted. This requires the device be paired.
QBluetooth::Secure0x08The service requires that the communications link be secure. Legacy pairing is not permitted, Simple Pairing from Bluetooth 2.1 or greater is required.

The SecurityFlags type is a typedef for QFlags<Security>. It stores an OR combination of Security values.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.