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 QBLUETOOTHHOSTINFO_H
5#define QBLUETOOTHHOSTINFO_H
6
7#include <QtBluetooth/qtbluetoothglobal.h>
8#include <QtBluetooth/QBluetoothAddress>
9
10QT_BEGIN_NAMESPACE
11
12class QBluetoothHostInfoPrivate;
13class Q_BLUETOOTH_EXPORT QBluetoothHostInfo
14{
15public:
16 QBluetoothHostInfo();
17 QBluetoothHostInfo(const QBluetoothHostInfo &other);
18 ~QBluetoothHostInfo();
19
20 QBluetoothHostInfo &operator=(const QBluetoothHostInfo &other);
21 friend bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
22 {
23 return equals(a, b);
24 }
25 friend bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
26 {
27 return !equals(a, b);
28 }
29
30 QBluetoothAddress address() const;
31 void setAddress(const QBluetoothAddress &address);
32
33 QString name() const;
34 void setName(const QString &name);
35
36private:
37 static bool equals(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b);
38 Q_DECLARE_PRIVATE(QBluetoothHostInfo)
39 QBluetoothHostInfoPrivate *d_ptr;
40};
41
42QT_END_NAMESPACE
43
44QT_DECL_METATYPE_EXTERN(QBluetoothHostInfo, Q_BLUETOOTH_EXPORT)
45
46#endif
47

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