Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QLowEnergyAdvertisingParameters::AddressInfo Class Reference

\inmodule QtBluetooth More...

#include <qlowenergyadvertisingparameters.h>

+ Collaboration diagram for QLowEnergyAdvertisingParameters::AddressInfo:

Public Member Functions

 AddressInfo (const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType t)
 \variable QLowEnergyAdvertisingParameters::AddressInfo::address
 
 AddressInfo ()
 Constructs a default constructed AddressInfo instance.
 

Public Attributes

QBluetoothAddress address
 
QLowEnergyController::RemoteAddressType type
 

Friends

bool operator== (const AddressInfo &a, const AddressInfo &b)
 Returns true if a and b are equal with respect to their public state, otherwise returns false.
 
bool operator!= (const AddressInfo &a, const AddressInfo &b)
 Returns true if a and b are not equal with respect to their public state, otherwise returns false.
 

Detailed Description

\inmodule QtBluetooth

Since
5.7

The QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list.

A list of QLowEnergyAdvertisingParameters::AddressInfo instances is passed to \l QLowEnergyAdvertisingParameters::setWhiteList(). White lists are used to restrict the devices which have the permission to interact with the peripheral. The permitted type of interaction is defined by \l QLowEnergyAdvertisingParameters::FilterPolicy.

See also
QLowEnergyAdvertisingParameters::whiteList()

Definition at line 41 of file qlowenergyadvertisingparameters.h.

Constructor & Destructor Documentation

◆ AddressInfo() [1/2]

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

\variable QLowEnergyAdvertisingParameters::AddressInfo::address

This is the Bluetooth address of a remote device.

\variable QLowEnergyAdvertisingParameters::AddressInfo::type

The type of the address (public or private). The \l AddressInfo default constructor initialises this value to \l QLowEnergyController::PublicAddress.

Constructs a new AddressInfo instance. addr represents the Bluetooth address of the remote device and type the nature of the address.

Definition at line 44 of file qlowenergyadvertisingparameters.h.

◆ AddressInfo() [2/2]

QLowEnergyAdvertisingParameters::AddressInfo::AddressInfo ( )
inline

Constructs a default constructed AddressInfo instance.

By default the \l AddressInfo::type member is set to \l QLowEnergyController::PublicAddress and the \l AddressInfo::address member has a null address.

Definition at line 46 of file qlowenergyadvertisingparameters.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Returns true if a and b are not equal with respect to their public state, otherwise returns false.

Definition at line 51 of file qlowenergyadvertisingparameters.h.

◆ operator==

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

Returns true if a and b are equal with respect to their public state, otherwise returns false.

Definition at line 50 of file qlowenergyadvertisingparameters.h.

Member Data Documentation

◆ address

QBluetoothAddress QLowEnergyAdvertisingParameters::AddressInfo::address

Definition at line 48 of file qlowenergyadvertisingparameters.h.

◆ type

QLowEnergyController::RemoteAddressType QLowEnergyAdvertisingParameters::AddressInfo::type

Definition at line 49 of file qlowenergyadvertisingparameters.h.


The documentation for this class was generated from the following files: