1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2014 Denis Shienkov <denis.shienkov@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#include <QtCore/QLoggingCategory>
6#include <QtBluetooth/qbluetooth.h>
7
8QT_BEGIN_NAMESPACE
9
10namespace QBluetooth {
11/*!
12 \namespace QBluetooth
13 \inmodule QtBluetooth
14 \brief The QBluetooth namespace provides classes and functions related to
15 Bluetooth.
16
17 \since 5.2
18*/
19
20/*!
21 \enum QBluetooth::Security
22
23 This enum describe the security requirements of a Bluetooth service.
24
25 \value NoSecurity The service does not require any security.
26
27 \value Authorization The service requires authorization by the user,
28 unless the device is Authorized-Paired.
29
30 \value Authentication The service requires authentication. Device must
31 be paired, and the user is prompted on connection unless the device is
32 Authorized-Paired.
33
34 \value Encryption The service requires the communication link to be
35 encrypted. This requires the device to be paired.
36
37 \value Secure The service requires the communication link to be secure.
38 Simple Pairing from Bluetooth 2.1 or greater is required.
39 Legacy pairing is not permitted.
40*/
41
42/*!
43 \enum QBluetooth::AttAccessConstraint
44 \since 5.7
45
46 This enum describes the possible requirements for reading or writing an ATT attribute.
47
48 \value AttAuthorizationRequired
49 The client needs authorization from the ATT server to access the attribute.
50 \value AttAuthenticationRequired
51 The client needs to be authenticated to access the attribute.
52 \value AttEncryptionRequired
53 The attribute can only be accessed if the connection is encrypted.
54*/
55
56}
57
58/*!
59 \typedef QLowEnergyHandle
60 \relates QBluetooth
61 \since 5.4
62
63 Typedef for Bluetooth Low Energy ATT attribute handles.
64*/
65
66Q_LOGGING_CATEGORY(QT_BT, "qt.bluetooth")
67Q_LOGGING_CATEGORY(QT_BT_ANDROID, "qt.bluetooth.android")
68Q_LOGGING_CATEGORY(QT_BT_BLUEZ, "qt.bluetooth.bluez")
69Q_LOGGING_CATEGORY(QT_BT_WINDOWS, "qt.bluetooth.windows")
70Q_LOGGING_CATEGORY(QT_BT_WINDOWS_SERVICE_THREAD, "qt.bluetooth.winrt.service.thread")
71
72QT_END_NAMESPACE
73
74#include "moc_qbluetooth.cpp"
75

source code of qtconnectivity/src/bluetooth/qbluetooth.cpp