AddressInfo Class

class QLowEnergyAdvertisingParameters::AddressInfo

Die QLowEnergyAdvertisingParameters::AddressInfo definiert die Elemente einer weißen Liste. Mehr...

Öffentliche Funktionen

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

Öffentliche Variablen

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)

Detaillierte Beschreibung

Eine Liste von QLowEnergyAdvertisingParameters::AddressInfo Instanzen wird an QLowEnergyAdvertisingParameters::setWhiteList() übergeben. Weiße Listen werden verwendet, um die Geräte einzuschränken, die die Erlaubnis haben, mit dem Peripheriegerät zu interagieren. Die erlaubte Art der Interaktion wird durch QLowEnergyAdvertisingParameters::FilterPolicy definiert.

Siehe auch QLowEnergyAdvertisingParameters::whiteList().

Dokumentation der Mitgliedsfunktionen

AddressInfo::AddressInfo()

Konstruiert eine standardmäßig konstruierte AddressInfo-Instanz.

Standardmäßig ist der Member AddressInfo::type auf QLowEnergyController::PublicAddress gesetzt und der Member AddressInfo::address hat eine Nulladresse.

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

Konstruiert eine neue AddressInfo-Instanz. addr steht für die Bluetooth-Adresse des entfernten Geräts und type für die Art der Adresse.

Dokumentation der Mitgliedsvariablen

QBluetoothAddress AddressInfo::address

Dies ist die Bluetooth-Adresse eines entfernten Geräts.

QLowEnergyController::RemoteAddressType AddressInfo::type

Der Typ der Adresse (öffentlich oder privat). Der AddressInfo Standardkonstruktor initialisiert diesen Wert auf QLowEnergyController::PublicAddress.

Verwandte Nicht-Mitglieder

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

Gibt true zurück, wenn a und b in Bezug auf ihren öffentlichen Zustand nicht gleich sind, andernfalls false.

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

Gibt true zurück, wenn a und b in Bezug auf ihren öffentlichen Zustand 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.