QBluetoothHostInfo Class

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth 设备。 更多...

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

该类在 Qt 5.2 引入。

公共函数

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 & other ) const
bool operator== (const QBluetoothHostInfo & other ) const

详细描述

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

成员函数文档编制

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 )

赋值 other 到此 QBluetoothHostInfo 实例。

QBluetoothHostInfo:: ~QBluetoothHostInfo ()

销毁 QBluetoothHostInfo .

QBluetoothAddress QBluetoothHostInfo:: address () const

Returns the Bluetooth address as a QBluetoothAddress .

另请参阅 setAddress ().

QString QBluetoothHostInfo:: name () const

Returns the user visible name of the host info object.

另请参阅 setName ().

void QBluetoothHostInfo:: setAddress (const QBluetoothAddress & address )

Sets the Bluetooth address for this Bluetooth host info object.

另请参阅 address ().

void QBluetoothHostInfo:: setName (const QString & name )

设置 name of the host info object.

另请参阅 name ().

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

返回 true 若 other 不等于此 QBluetoothHostInfo ,否则 false。

该函数在 Qt 5.5 引入。

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

返回 true 若 other is equal to this QBluetoothHostInfo ,否则 false。

该函数在 Qt 5.5 引入。