1// Copyright (C) 2021 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 QBLUETOOTHDEVICEINFO_P_H
5#define QBLUETOOTHDEVICEINFO_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qbluetoothdeviceinfo.h"
19#include "qbluetoothaddress.h"
20#include "qbluetoothuuid.h"
21
22#include <QString>
23#include <QtCore/qhash.h>
24#include <QtCore/private/qglobal_p.h>
25
26QT_BEGIN_NAMESPACE
27
28class QBluetoothDeviceInfoPrivate
29{
30public:
31 QBluetoothDeviceInfoPrivate();
32
33 bool valid = false;
34 bool cached = false;
35 qint16 rssi = 1;
36 quint8 minorDeviceClass = 0;
37
38 QBluetoothAddress address;
39 QString name;
40 QBluetoothDeviceInfo::MajorDeviceClass majorDeviceClass = QBluetoothDeviceInfo::MiscellaneousDevice;
41
42 QBluetoothDeviceInfo::ServiceClasses serviceClasses = QBluetoothDeviceInfo::NoService;
43
44 QList<QBluetoothUuid> serviceUuids;
45 QMultiHash<quint16, QByteArray> manufacturerData;
46 QMultiHash<QBluetoothUuid, QByteArray> serviceData;
47 QBluetoothDeviceInfo::CoreConfigurations deviceCoreConfiguration = QBluetoothDeviceInfo::UnknownCoreConfiguration;
48
49 QBluetoothUuid deviceUuid;
50};
51
52QT_END_NAMESPACE
53
54#endif
55

source code of qtconnectivity/src/bluetooth/qbluetoothdeviceinfo_p.h