4#ifndef BTPERIPHERALMANAGER_P_H
5#define BTPERIPHERALMANAGER_P_H
23#include <QtCore/qsharedpointer.h>
24#include <QtCore/qbytearray.h>
25#include <QtCore/qglobal.h>
26#include <QtCore/qpair.h>
27#include <QtCore/qmap.h>
29#include <QtCore/private/qcore_mac_p.h>
35#include <Foundation/Foundation.h>
37#include <CoreBluetooth/CoreBluetooth.h>
41class QLowEnergyAdvertisingParameters;
42class QLowEnergyAdvertisingData;
43class QLowEnergyServiceData;
56using GenericLEMap = QMap<QLowEnergyHandle, Type>;
86using ValueRange = QPair<NSUInteger, NSUInteger>;
88@interface QT_MANGLE_NAMESPACE(DarwinBTPeripheralManager) : NSObject<CBPeripheralManagerDelegate>
90- (id)initWith:(LECBManagerNotifier *)notifier;
93- (QSharedPointer<QLowEnergyServicePrivate>)addService:(
const QLowEnergyServiceData &)data;
94- (
void) setParameters:(
const QLowEnergyAdvertisingParameters &)parameters
95 data:(
const QLowEnergyAdvertisingData &)data
96 scanResponse:(
const QLowEnergyAdvertisingData &)scanResponse;
99- (
void)startAdvertising;
100- (
void)stopAdvertising;
103- (
void)write:(
const QByteArray &)value
104 charHandle:(QLowEnergyHandle)charHandle;
108- (
void)peripheralManagerDidUpdateState:(CBPeripheralManager *)peripheral;
109- (
void)peripheralManagerDidStartAdvertising:(CBPeripheralManager *)peripheral
110 error:(NSError *)error;
111- (
void)peripheralManager:(CBPeripheralManager *)peripheral
112 didAddService:(CBService *)service error:(NSError *)error;
113- (
void)peripheralManager:(CBPeripheralManager *)peripheral central:(CBCentral *)central
114 didSubscribeToCharacteristic:(CBCharacteristic *)characteristic;
115- (
void)peripheralManager:(CBPeripheralManager *)peripheral central:(CBCentral *)central
116 didUnsubscribeFromCharacteristic:(CBCharacteristic *)characteristic;
117- (
void)peripheralManager:(CBPeripheralManager *)peripheral
118 didReceiveReadRequest:(CBATTRequest *)request;
119- (
void)peripheralManager:(CBPeripheralManager *)peripheral
120 didReceiveWriteRequests:(NSArray *)requests;
121- (
void)peripheralManagerIsReadyToUpdateSubscribers:(CBPeripheralManager *)peripheral;
125QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTPeripheralManager);
#define QT_BT_MAC_AUTORELEASEPOOL
The QLowEnergyAdvertisingParameters class represents the parameters used for Bluetooth Low Energy adv...
The QLowEnergyCharacteristicData class is used to set up GATT service data. \inmodule QtBluetooth.
The QLowEnergyDescriptorData class is used to create GATT service data. \inmodule QtBluetooth.
QLowEnergyHandle charHandle
UpdateRequest(QLowEnergyHandle handle, const ObjCStrongReference< NSData > &val)
ObjCStrongReference< NSData > value