1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Copyright (C) 2014 Denis Shienkov <denis.shienkov@gmail.com>
5** Contact: https://www.qt.io/licensing/
6**
7** This file is part of the QtBluetooth module of the Qt Toolkit.
8**
9** $QT_BEGIN_LICENSE:LGPL$
10** Commercial License Usage
11** Licensees holding valid commercial Qt licenses may use this file in
12** accordance with the commercial license agreement provided with the
13** Software or, alternatively, in accordance with the terms contained in
14** a written agreement between you and The Qt Company. For licensing terms
15** and conditions see https://www.qt.io/terms-conditions. For further
16** information use the contact form at https://www.qt.io/contact-us.
17**
18** GNU Lesser General Public License Usage
19** Alternatively, this file may be used under the terms of the GNU Lesser
20** General Public License version 3 as published by the Free Software
21** Foundation and appearing in the file LICENSE.LGPL3 included in the
22** packaging of this file. Please review the following information to
23** ensure the GNU Lesser General Public License version 3 requirements
24** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
25**
26** GNU General Public License Usage
27** Alternatively, this file may be used under the terms of the GNU
28** General Public License version 2.0 or (at your option) the GNU General
29** Public license version 3 or any later version approved by the KDE Free
30** Qt Foundation. The licenses are as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
32** included in the packaging of this file. Please review the following
33** information to ensure the GNU General Public License requirements will
34** be met: https://www.gnu.org/licenses/gpl-2.0.html and
35** https://www.gnu.org/licenses/gpl-3.0.html.
36**
37** $QT_END_LICENSE$
38**
39****************************************************************************/
40
41#include <QtCore/QLoggingCategory>
42#include <QtBluetooth/qbluetooth.h>
43
44QT_BEGIN_NAMESPACE
45
46namespace QBluetooth {
47/*!
48 \namespace QBluetooth
49 \inmodule QtBluetooth
50 \brief The QBluetooth namespace provides classes and functions related to
51 Bluetooth.
52
53 \since 5.2
54*/
55
56/*!
57 \enum QBluetooth::Security
58
59 This enum describe the security requirements of a Bluetooth service.
60
61 \value NoSecurity The service does not require any security.
62
63 \value Authorization The service requires authorization by the user,
64 unless the device is Authorized-Paired.
65
66 \value Authentication The service requires authentication. Device must
67 be paired, and the user is prompted on connection unless the device is
68 Authorized-Paired.
69
70 \value Encryption The service requires the communication link to be
71 encrypted. This requires the device to be paired.
72
73 \value Secure The service requires the communication link to be secure.
74 Simple Pairing from Bluetooth 2.1 or greater is required.
75 Legacy pairing is not permitted.
76*/
77
78/*!
79 \enum QBluetooth::AttAccessConstraint
80 \since 5.7
81
82 This enum describes the possible requirements for reading or writing an ATT attribute.
83
84 \value AttAuthorizationRequired
85 The client needs authorization from the ATT server to access the attribute.
86 \value AttAuthenticationRequired
87 The client needs to be authenticated to access the attribute.
88 \value AttEncryptionRequired
89 The attribute can only be accessed if the connection is encrypted.
90*/
91
92}
93
94/*!
95 \typedef QLowEnergyHandle
96 \relates QBluetooth
97 \since 5.4
98
99 Typedef for Bluetooth Low Energy ATT attribute handles.
100*/
101
102Q_LOGGING_CATEGORY(QT_BT, "qt.bluetooth")
103Q_LOGGING_CATEGORY(QT_BT_ANDROID, "qt.bluetooth.android")
104Q_LOGGING_CATEGORY(QT_BT_BLUEZ, "qt.bluetooth.bluez")
105Q_LOGGING_CATEGORY(QT_BT_WINDOWS, "qt.bluetooth.windows")
106Q_LOGGING_CATEGORY(QT_BT_WINRT, "qt.bluetooth.winrt")
107Q_LOGGING_CATEGORY(QT_BT_WINRT_SERVICE_THREAD, "qt.bluetooth.winrt.service.thread")
108
109QT_END_NAMESPACE
110

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