20 QLowEnergyAdvertisingParameters();
21 QLowEnergyAdvertisingParameters(
const QLowEnergyAdvertisingParameters &other);
22 ~QLowEnergyAdvertisingParameters();
24 QLowEnergyAdvertisingParameters &operator=(
const QLowEnergyAdvertisingParameters &other);
25 friend bool operator==(
const QLowEnergyAdvertisingParameters &a,
26 const QLowEnergyAdvertisingParameters &b)
31 friend bool operator!=(
const QLowEnergyAdvertisingParameters &a,
32 const QLowEnergyAdvertisingParameters &b)
37 enum Mode { AdvInd = 0x0, AdvScanInd = 0x2, AdvNonConnInd = 0x3 };
38 void setMode(Mode mode);
41 class Q_BLUETOOTH_EXPORT AddressInfo
44 AddressInfo(
const QBluetoothAddress &addr, QLowEnergyController::RemoteAddressType t)
45 : address(addr), type(t) {}
46 AddressInfo() : type(QLowEnergyController::PublicAddress) {}
48 QBluetoothAddress address;
49 QLowEnergyController::RemoteAddressType type;
50 friend bool operator==(
const AddressInfo &a,
const AddressInfo &b) {
return equals(a, b); }
51 friend bool operator!=(
const AddressInfo &a,
const AddressInfo &b) {
return !equals(a, b); }
54 static bool equals(
const AddressInfo &a,
const AddressInfo &b);
58 IgnoreWhiteList = 0x00,
59 UseWhiteListForScanning = 0x01,
60 UseWhiteListForConnecting = 0x02,
61 UseWhiteListForScanningAndConnecting = 0x03,
63 void setWhiteList(
const QList<AddressInfo> &whiteList, FilterPolicy policy);
64 QList<AddressInfo> whiteList()
const;
65 FilterPolicy filterPolicy()
const;
67 void setInterval(quint16 minimum, quint16 maximum);
68 int minimumInterval()
const;
69 int maximumInterval()
const;
74 void swap(QLowEnergyAdvertisingParameters &other)
noexcept { d.swap(other.d); }
77 static bool equals(
const QLowEnergyAdvertisingParameters &a,
78 const QLowEnergyAdvertisingParameters &b);
79 QSharedDataPointer<QLowEnergyAdvertisingParametersPrivate> d;