QLowEnergyAdvertisingParameters::AddressInfo Class
class QLowEnergyAdvertisingParameters::AddressInfoQLowEnergyAdvertisingParameters::AddressInfo は、ホワイトリストの要素を定義しています。詳細...
パブリック関数
| AddressInfo() | |
| AddressInfo(const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType type) |
パブリック変数
関連する非メンバー
| bool | operator!=(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b) |
| bool | operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b) |
詳細な説明
QLowEnergyAdvertisingParameters::AddressInfo インスタンスのリストが、QLowEnergyAdvertisingParameters::setWhiteList() に渡されます。ホワイトリストは、周辺機器とやり取りする権限を持つデバイスを制限するために使用されます。許可されるやり取りのタイプは、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)
a とb のパブリック状態が等しくない場合、true を返し、それ以外の場合はfalse を返します。
bool operator==(const QLowEnergyAdvertisingParameters::AddressInfo &a, const QLowEnergyAdvertisingParameters::AddressInfo &b)
a とb の公開状態が等しい場合は `true ` を返し、そうでない場合は `false` を返します。
© 2026 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.