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
13
14namespace QBluetooth {
15Q_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
19enum class Security {
20 NoSecurity = 0x00,
21 Authorization = 0x01,
22 Authentication = 0x02,
23 Encryption = 0x04,
24 Secure = 0x08
25};
27Q_DECLARE_FLAGS(SecurityFlags, Security)
29
36
37Q_DECLARE_FLAGS(AttAccessConstraints, AttAccessConstraint)
38Q_DECLARE_OPERATORS_FOR_FLAGS(AttAccessConstraints)
39
40}
41
43
45
46#endif // QBLUETOOTH_H
\inmodule QtBluetooth
Combined button and popup list for selecting options.
quint16 QLowEnergyHandle
Definition qbluetooth.h:42
#define Q_DECLARE_FLAGS(Flags, Enum)
Definition qflags.h:174
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Definition qflags.h:194
#define Q_ENUM_NS(x)
#define Q_NAMESPACE_EXPORT(...)
unsigned short quint16
Definition qtypes.h:48