4#ifndef BTCENTRALMANAGER_P_H
5#define BTCENTRALMANAGER_P_H
23#include <QtCore/private/qcore_mac_p.h>
25#include <QtCore/qbytearray.h>
26#include <QtCore/qglobal.h>
27#include <QtCore/qqueue.h>
28#include <QtCore/qhash.h>
30#include <Foundation/Foundation.h>
32#include <CoreBluetooth/CoreBluetooth.h>
98@interface QT_MANGLE_NAMESPACE(DarwinBTCentralManager) : NSObject<CBCentralManagerDelegate,
100 QT_MANGLE_NAMESPACE(GCDTimerDelegate)>
101- (id)initWith:(QT_PREPEND_NAMESPACE(DarwinBluetooth)::LECBManagerNotifier *)notifier;
104- (CBPeripheral *)peripheral;
108- (
void)connectToDevice:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)aDeviceUuid;
110- (
void)disconnectFromDevice;
112- (
void)discoverServices;
113- (
void)discoverServiceDetails:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid
114 readValues:(
bool)read;
119- (
void)setNotifyValue:(
const QT_PREPEND_NAMESPACE(QByteArray) &)value
120 forCharacteristic:(QT_PREPEND_NAMESPACE(QLowEnergyHandle))charHandle
121 onService:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid;
123- (
void)readCharacteristic:(QT_PREPEND_NAMESPACE(QLowEnergyHandle))charHandle
124 onService:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid;
126- (
void)write:(
const QT_PREPEND_NAMESPACE(QByteArray) &)value
127 charHandle:(QT_PREPEND_NAMESPACE(QLowEnergyHandle))charHandle
128 onService:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid
129 withResponse:(
bool)writeWithResponse;
131- (
void)readDescriptor:(QT_PREPEND_NAMESPACE(QLowEnergyHandle))descHandle
132 onService:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid;
134- (
void)write:(
const QT_PREPEND_NAMESPACE(QByteArray) &)value
135 descHandle:(QT_PREPEND_NAMESPACE(QLowEnergyHandle))descHandle
136 onService:(
const QT_PREPEND_NAMESPACE(QBluetoothUuid) &)serviceUuid;
142QT_NAMESPACE_ALIAS_OBJC_CLASS(DarwinBTCentralManager);
#define QT_BT_MAC_AUTORELEASEPOOL
void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
QList< QBluetoothUuid > includedServices
~QLowEnergyServicePrivate()
void setController(QLowEnergyControllerPrivate *control)
void characteristicChanged(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
void characteristicRead(const QLowEnergyCharacteristic &info, const QByteArray &value)
QLowEnergyService::DiscoveryMode mode
void descriptorWritten(const QLowEnergyDescriptor &descriptor, const QByteArray &newValue)
QLowEnergyHandle startHandle
void descriptorRead(const QLowEnergyDescriptor &info, const QByteArray &value)
QLowEnergyService::ServiceError lastError
void setError(QLowEnergyService::ServiceError newError)
QLowEnergyHandle endHandle
QLowEnergyService::ServiceTypes type
QPointer< QLowEnergyControllerPrivate > controller
void errorOccurred(QLowEnergyService::ServiceError error)
void setState(QLowEnergyService::ServiceState newState)
QLowEnergyService::ServiceState state
QHash< QLowEnergyHandle, CharData > characteristicList
ObjCStrongReference< NSError > qt_timeoutNSError(OperationTimeout type)
QQueue< LERequest > RequestQueue
QHash< NSObject *, QByteArray > ValueHash
@ CentralManagerDisconnecting
@ CentralManagerConnecting
@ CentralManagerDiscovering
auto qt_find_watchdog(const std::vector< GCDTimer > &watchdogs, id object, OperationTimeout type)
QHash< QLowEnergyHandle, CBDescriptor * > DescHash
QHash< QLowEnergyHandle, CBService * > ServiceHash
NSUInteger qt_countGATTEntries(CBService *service)
QHash< QLowEnergyHandle, CBCharacteristic * > CharHash
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::CharData > CharacteristicDataMap
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::DescData > DescriptorDataMap
QHash< QLowEnergyHandle, DescData > descriptorList
QLowEnergyHandle valueHandle
QLowEnergyCharacteristic::PropertyTypes properties