AddressInfo Class

class QLowEnergyAdvertisingParameters::AddressInfo

QLowEnergyAdvertisingParameters::AddressInfo はホワイトリストの要素を定義する。詳細...

パブリック関数

AddressInfo()
AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type)

パブリック変数

QBluetoothAddress address
QLowEnergyController::RemoteAddressType type
bool operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)
bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)

詳細説明

QLowEnergyAdvertisingParameters::setWhiteList() にはQLowEnergyAdvertisingParameters::AddressInfo インスタンスのリストが渡される。ホワイトリストは、周辺機器と相互作用する許可を持つデバイスを制限するために使用される。許可される相互作用のタイプはQLowEnergyAdvertisingParameters::FilterPolicy で定義される。

QLowEnergyAdvertisingParameters::whiteList()も参照のこと

メンバ関数ドキュメント

AddressInfo::AddressInfo()

デフォルトで構築された AddressInfo インスタンスを構築する。

デフォルトでは、AddressInfo::type メンバはQLowEnergyController::PublicAddress に設定され、AddressInfo::address メンバには null アドレスが設定されます。

AddressInfo::AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type)

新しい AddressInfo インスタンスを構築する。addr はリモートデバイスの Bluetooth アドレスを表し、type はアドレスの性質を表す。

メンバ変数ドキュメント

QBluetoothAddress AddressInfo::address

リモートデバイスのBluetoothアドレスです。

QLowEnergyController::RemoteAddressType AddressInfo::type

アドレスのタイプ(パブリックまたはプライベート)。AddressInfo デフォルトコンストラクタは、この値をQLowEnergyController::PublicAddress に初期化します。

関連する非会員

bool operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)

ab が公開状態に関して等しくなければtrue を返し、そうでなければfalse を返す。

bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &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.