QBluetoothHostInfo Class

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth device. More...

Header: #include <QBluetoothHostInfo>
qmake: QT += bluetooth
Since: Qt 5.2

Public Functions

QBluetoothHostInfo()
QBluetoothHostInfo(const QBluetoothHostInfo &other)
~QBluetoothHostInfo()
QBluetoothAddress address() const
QString name() const
void setAddress(const QBluetoothAddress &address)
void setName(const QString &name)
bool operator!=(const QBluetoothHostInfo &other) const
QBluetoothHostInfo &operator=(const QBluetoothHostInfo &other)
bool operator==(const QBluetoothHostInfo &other) const

Detailed Description

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth device.

This class holds the name and address of a local Bluetooth device.

Member Function Documentation

QBluetoothHostInfo::QBluetoothHostInfo()

Constructs a null QBluetoothHostInfo object.

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

Constructs a new QBluetoothHostInfo which is a copy of other.

QBluetoothHostInfo::~QBluetoothHostInfo()

Destroys the QBluetoothHostInfo.

QBluetoothAddress QBluetoothHostInfo::address() const

Returns the Bluetooth address as a QBluetoothAddress.

See also setAddress().

QString QBluetoothHostInfo::name() const

Returns the user visible name of the host info object.

See also setName().

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

Sets the Bluetooth address for this Bluetooth host info object.

See also address().

void QBluetoothHostInfo::setName(const QString &name)

Sets the name of the host info object.

See also name().

bool QBluetoothHostInfo::operator!=(const QBluetoothHostInfo &other) const

Returns true if other is not equal to this QBluetoothHostInfo, otherwise false.

This function was introduced in Qt 5.5.

QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)

Assigns other to this QBluetoothHostInfo instance.

bool QBluetoothHostInfo::operator==(const QBluetoothHostInfo &other) const

Returns true if other is equal to this QBluetoothHostInfo, otherwise false.

This function was introduced in Qt 5.5.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.