![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtBluetooth More...
#include <qbluetoothhostinfo.h>
Public Member Functions | |
QBluetoothHostInfo () | |
Constructs a null QBluetoothHostInfo object. | |
QBluetoothHostInfo (const QBluetoothHostInfo &other) | |
Constructs a new QBluetoothHostInfo which is a copy of other. | |
~QBluetoothHostInfo () | |
Destroys the QBluetoothHostInfo. | |
QBluetoothHostInfo & | operator= (const QBluetoothHostInfo &other) |
Assigns other to this QBluetoothHostInfo instance. | |
QBluetoothAddress | address () const |
Returns the Bluetooth address as a QBluetoothAddress. | |
void | setAddress (const QBluetoothAddress &address) |
Sets the Bluetooth address for this Bluetooth host info object. | |
QString | name () const |
Returns the user visible name of the host info object. | |
void | setName (const QString &name) |
Sets the name of the host info object. | |
Friends | |
bool | operator== (const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Returns true if a and b are equal, otherwise false . | |
bool | operator!= (const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Returns true if a and b are not equal, otherwise false . | |
\inmodule QtBluetooth
The QBluetoothHostInfo class encapsulates the details of a local QBluetooth device.
This class holds the name and address of a local Bluetooth device.
Definition at line 13 of file qbluetoothhostinfo.h.
QBluetoothHostInfo::QBluetoothHostInfo | ( | ) |
Constructs a null QBluetoothHostInfo object.
Definition at line 25 of file qbluetoothhostinfo.cpp.
QBluetoothHostInfo::QBluetoothHostInfo | ( | const QBluetoothHostInfo & | other | ) |
Constructs a new QBluetoothHostInfo which is a copy of other.
Definition at line 33 of file qbluetoothhostinfo.cpp.
QBluetoothHostInfo::~QBluetoothHostInfo | ( | ) |
Destroys the QBluetoothHostInfo.
Definition at line 45 of file qbluetoothhostinfo.cpp.
QBluetoothAddress QBluetoothHostInfo::address | ( | ) | const |
Returns the Bluetooth address as a QBluetoothAddress.
Definition at line 90 of file qbluetoothhostinfo.cpp.
References d.
Referenced by setAddress().
QString QBluetoothHostInfo::name | ( | ) | const |
Returns the user visible name of the host info object.
Definition at line 108 of file qbluetoothhostinfo.cpp.
References d.
Referenced by setName().
QBluetoothHostInfo & QBluetoothHostInfo::operator= | ( | const QBluetoothHostInfo & | other | ) |
Assigns other to this QBluetoothHostInfo instance.
Definition at line 53 of file qbluetoothhostinfo.cpp.
void QBluetoothHostInfo::setAddress | ( | const QBluetoothAddress & | address | ) |
Sets the Bluetooth address for this Bluetooth host info object.
Definition at line 99 of file qbluetoothhostinfo.cpp.
Sets the name of the host info object.
Definition at line 117 of file qbluetoothhostinfo.cpp.
|
friend |
Returns true
if a and b are not equal, otherwise false
.
Definition at line 25 of file qbluetoothhostinfo.h.
|
friend |
Returns true
if a and b are equal, otherwise false
.
Definition at line 21 of file qbluetoothhostinfo.h.