QBluetoothHostInfo Class

Die Klasse QBluetoothHostInfo kapselt die Details eines lokalen QBluetooth Gerätes. Mehr...

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

Öffentliche Funktionen

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)

Detaillierte Beschreibung

Diese Klasse enthält den Namen und die Adresse eines lokalen Bluetooth-Geräts.

Dokumentation der Mitgliedsfunktionen

QBluetoothHostInfo::QBluetoothHostInfo()

Konstruiert ein Null-QBluetoothHostInfo-Objekt.

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

Konstruiert ein neues QBluetoothHostInfo, das eine Kopie von other ist.

[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()

Zerstört die QBluetoothHostInfo.

QBluetoothAddress QBluetoothHostInfo::address() const

Gibt die Bluetooth-Adresse als QBluetoothAddress zurück.

Siehe auch setAddress().

QString QBluetoothHostInfo::name() const

Gibt den für den Benutzer sichtbaren Namen des Host-Info-Objekts zurück.

Siehe auch setName().

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

Setzt die Bluetooth address für dieses Bluetooth-Hostinfo-Objekt.

Siehe auch address().

void QBluetoothHostInfo::setName(const QString &name)

Setzt die name des Host-Info-Objekts.

Siehe auch name().

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

Weist other dieser QBluetoothHostInfo Instanz zu.

Verwandte Nicht-Mitglieder

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

Gibt true zurück, wenn a und b nicht gleich sind, ansonsten false.

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

Gibt true zurück, wenn a und b gleich sind, andernfalls false.

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.