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.cpp
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
6
8
10
11
29
35{
37
38 d->m_address = other.d_func()->m_address;
39 d->m_name = other.d_func()->m_name;
40}
41
46{
47 delete d_ptr;
48}
49
54{
56
57 d->m_address = other.d_func()->m_address;
58 d->m_name = other.d_func()->m_name;
59
60 return *this;
61}
62
79bool QBluetoothHostInfo::equals(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
80{
81 if (a.d_ptr == b.d_ptr)
82 return true;
83
84 return a.d_ptr->m_address == b.d_ptr->m_address && a.d_ptr->m_name == b.d_ptr->m_name;
85}
86
91{
92 Q_D(const QBluetoothHostInfo);
93 return d->m_address;
94}
95
100{
102 d->m_address = address;
103}
104
109{
110 Q_D(const QBluetoothHostInfo);
111 return d->m_name;
112}
113
118{
120 d->m_name = name;
121}
122
\inmodule QtBluetooth
\inmodule QtBluetooth
QBluetoothHostInfo()
Constructs a null QBluetoothHostInfo object.
~QBluetoothHostInfo()
Destroys the QBluetoothHostInfo.
QString name() const
Returns the user visible name of the host info object.
QBluetoothAddress address() const
Returns the Bluetooth address as a QBluetoothAddress.
QBluetoothHostInfo & operator=(const QBluetoothHostInfo &other)
Assigns other to this QBluetoothHostInfo instance.
void setAddress(const QBluetoothAddress &address)
Sets the Bluetooth address for this Bluetooth host info object.
void setName(const QString &name)
Sets the name of the host info object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define QT_IMPL_METATYPE_EXTERN(TYPE)
Definition qmetatype.h:1390
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint name
GLuint GLuint64EXT address
QSharedPointer< T > other(t)
[5]