Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qbluetooth.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QBLUETOOTH_H
5
#define QBLUETOOTH_H
6
7
#include <QtBluetooth/qtbluetoothglobal.h>
8
#include <QtCore/qglobal.h>
9
#include <QtCore/qtmetamacros.h>
10
#include <QtCore/qobject.h>
11
12
QT_BEGIN_NAMESPACE
13
14
namespace
QBluetooth
{
15
Q_NAMESPACE_EXPORT
(Q_BLUETOOTH_EXPORT)
16
// TODO Qt 6: Merge these two enums? But note that ATT Authorization has no equivalent
17
// on the socket security level.
18
19
enum class
Security
{
20
NoSecurity
= 0x00,
21
Authorization
= 0x01,
22
Authentication
= 0x02,
23
Encryption
= 0x04,
24
Secure
= 0x08
25
};
26
Q_ENUM_NS
(
Security
)
27
Q_DECLARE_FLAGS
(SecurityFlags,
Security
)
28
Q_DECLARE_OPERATORS_FOR_FLAGS
(SecurityFlags)
29
30
enum class
AttAccessConstraint
{
31
AttAuthorizationRequired
= 0x1,
32
AttAuthenticationRequired
= 0x2,
33
AttEncryptionRequired
= 0x4,
34
};
35
Q_ENUM_NS
(
AttAccessConstraint
)
36
37
Q_DECLARE_FLAGS
(AttAccessConstraints,
AttAccessConstraint
)
38
Q_DECLARE_OPERATORS_FOR_FLAGS
(AttAccessConstraints)
39
40
}
41
42
typedef
quint16
QLowEnergyHandle
;
43
44
QT_END_NAMESPACE
45
46
#endif
// QBLUETOOTH_H
QBluetooth
\inmodule QtBluetooth
Definition
qbluetooth.cpp:10
QBluetooth::Security
Security
Definition
qbluetooth.h:19
QBluetooth::Security::Secure
@ Secure
QBluetooth::Security::NoSecurity
@ NoSecurity
QBluetooth::Security::Authorization
@ Authorization
QBluetooth::Security::Authentication
@ Authentication
QBluetooth::Security::Encryption
@ Encryption
QBluetooth::AttAccessConstraint
AttAccessConstraint
Definition
qbluetooth.h:30
QBluetooth::AttAccessConstraint::AttAuthorizationRequired
@ AttAuthorizationRequired
QBluetooth::AttAccessConstraint::AttEncryptionRequired
@ AttEncryptionRequired
QBluetooth::AttAccessConstraint::AttAuthenticationRequired
@ AttAuthenticationRequired
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QLowEnergyHandle
quint16 QLowEnergyHandle
Definition
qbluetooth.h:42
Q_DECLARE_FLAGS
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition
qflags.h:174
Q_DECLARE_OPERATORS_FOR_FLAGS
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition
qflags.h:194
Q_ENUM_NS
#define Q_ENUM_NS(x)
Definition
qtmetamacros.h:73
Q_NAMESPACE_EXPORT
#define Q_NAMESPACE_EXPORT(...)
Definition
qtmetamacros.h:157
quint16
unsigned short quint16
Definition
qtypes.h:48
qtconnectivity
src
bluetooth
qbluetooth.h
Generated by
1.10.0