IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QBluetoothHostInfo Class

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

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QBluetoothHostInfo Class

  • Header: QBluetoothHostInfo

  • Since: Qt 5.2

  • qmake: QT += bluetooth

Detailed Description

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

See also setAddress()

QString QBluetoothHostInfo::name() const

Returns the user visible name of the host info object.

See Also

See also setName()

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

Sets the Bluetooth address for this Bluetooth host info object.

See Also

See also address()

void QBluetoothHostInfo::setName(const QString &name)

Sets the name of the host info object.

See Also

See also name()

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

Assigns other to this QBluetoothHostInfo instance.

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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+