QBluetoothHostInfo Class

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth 設備。 更多...

頭: #include <QBluetoothHostInfo>
qmake: QT += bluetooth

公共函數

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

詳細描述

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

成員函數文檔編製

QBluetoothHostInfo:: QBluetoothHostInfo ()

Constructs a null QBluetoothHostInfo object.

QBluetoothHostInfo:: QBluetoothHostInfo (const QBluetoothHostInfo & other )

Constructs a new QBluetoothHostInfo which is a copy of other .

[noexcept] 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 ().

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

賦值 other 到此 QBluetoothHostInfo 實例。

相關非成員

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

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

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

返迴 true if a and b are equal, otherwise false .