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
qbluetoothhostinfo.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 QBLUETOOTHHOSTINFO_H
5#define QBLUETOOTHHOSTINFO_H
6
7#include <QtBluetooth/qtbluetoothglobal.h>
8#include <QtBluetooth/QBluetoothAddress>
9
11
13class Q_BLUETOOTH_EXPORT QBluetoothHostInfo
14{
15public:
19
22 {
23 return equals(a, b);
24 }
26 {
27 return !equals(a, b);
28 }
29
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)
40};
41
43
45
46#endif
\inmodule QtBluetooth
\inmodule QtBluetooth
friend bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Returns true if a and b are not equal, otherwise false.
friend bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Returns true if a and b are equal, otherwise false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
#define QT_DECL_METATYPE_EXTERN(TYPE, EXPORT)
Definition qmetatype.h:1388
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint name
GLuint GLuint64EXT address
QSharedPointer< T > other(t)
[5]