Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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(const QBluetoothHostInfo &other)
QBluetoothHostInfo()
QBluetoothHostInfo & operator=(const QBluetoothHostInfo &other)
~QBluetoothHostInfo()
QBluetoothAddress address() const
QString name() const
void setAddress(const QBluetoothAddress &address)
void setName(const QString &name)
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Detailed Description

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

Member Function Documentation

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

Constructs a new QBluetoothHostInfo which is a copy of other.

QBluetoothHostInfo::QBluetoothHostInfo()

Constructs a null QBluetoothHostInfo object.

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

Assigns other to this QBluetoothHostInfo instance.

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().

Related Non-Members

bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Returns true if a and b are not equal, otherwise false.

bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Returns true if a and b are equal, otherwise false.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded