The QBluetoothHostInfo class encapsulates the details of a local QBluetooth 设备。 更多...
头: | #include <QBluetoothHostInfo> |
qmake: | QT += bluetooth |
Since: | 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 & a , const QBluetoothHostInfo & b ) |
bool | operator== (const QBluetoothHostInfo & a , const QBluetoothHostInfo & b ) |
This class holds the name and address of a local Bluetooth device.
Constructs a new QBluetoothHostInfo which is a copy of other .
Constructs a null QBluetoothHostInfo object.
赋值 other 到此 QBluetoothHostInfo 实例。
销毁 QBluetoothHostInfo .
Returns the Bluetooth address as a QBluetoothAddress .
另请参阅 setAddress ().
Returns the user visible name of the host info object.
另请参阅 setName ().
Sets the Bluetooth address for this Bluetooth host info object.
另请参阅 address ().
设置 name of the host info object.
另请参阅 name ().
返回
true
if
a
and
b
are not equal, otherwise
false
.
返回
true
if
a
and
b
are equal, otherwise
false
.