QBluetoothHostInfo Class

QBluetoothHostInfo クラスは、ローカルのQBluetooth デバイスの詳細をカプセル化します。詳細...

Header: #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)

詳細説明

このクラスは、ローカル Bluetooth デバイスの名前とアドレスを保持します。

メンバ関数ドキュメント

QBluetoothHostInfo::QBluetoothHostInfo()

NULL の QBluetoothHostInfo オブジェクトを構築します。

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

other のコピーである新しい QBluetoothHostInfo を構築する。

[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()

QBluetoothHostInfo を破壊する。

QBluetoothAddress QBluetoothHostInfo::address() const

Bluetooth アドレスをQBluetoothAddress として返す。

setAddress()も参照してください

QString QBluetoothHostInfo::name() const

ホスト情報オブジェクトのユーザ可視名を返します。

setName()も参照してください

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

この Bluetooth ホスト情報オブジェクトの Bluetoothaddress を設定します。

address()も参照してください

void QBluetoothHostInfo::setName(const QString &name)

ホスト情報オブジェクトのname を設定する。

name()も参照してください

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

このQBluetoothHostInfo インスタンスにother を割り当てる。

関連する非会員

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

ab が等しくなければtrue を、そうでなければfalse を返す。

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

ab が等しければtrue を、そうでなければ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.