Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
removed_api.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 Intel Corporation.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#define QT_BLUETOOTH_BUILD_REMOVED_API
5// before we undef __SIZEOF_INT128__
6#include <cstddef>
7#include <cstdint>
8
9#ifdef __SIZEOF_INT128__
10// ensure QtCore/qtypes.h doesn't define quint128
11# undef __SIZEOF_INT128__
12#endif
13
14#include "qtbluetoothglobal.h"
15
17
18#if QT_BLUETOOTH_REMOVED_SINCE(6, 6)
19#include "qbluetoothaddress.h" // inlined API
20
21#include "qbluetoothuuid.h"
22
23static_assert(std::is_aggregate_v<quint128>);
24static_assert(std::is_trivial_v<quint128>);
25
27 : QUuid(uuid.d)
28{}
29
30quint128 QBluetoothUuid::toUInt128() const
31{
32 return { toBytes() };
33}
34#endif // QT_BLUETOOTH_REMOVED_SINCE(6, 6)
constexpr QBluetoothUuid() noexcept
Constructs a new null Bluetooth UUID.
\inmodule QtCore
Definition quuid.h:31
Id128Bytes toBytes(QSysInfo::Endian order=QSysInfo::BigEndian) const noexcept
Definition quuid.h:226