20#include <QtCore/qloggingcategory.h>
21#include <QtCore/qglobal.h>
23#include <QtCore/private/qcore_mac_p.h>
25#include <Foundation/Foundation.h>
27#include <CoreBluetooth/CoreBluetooth.h>
30#include <IOBluetooth/IOBluetooth.h>
35class QLowEnergyCharacteristicData;
36class QBluetoothAddress;
53 m_ptr.swap(other.m_ptr);
61 m_ptr.reset(ptr, policy);
65 return m_ptr.getAs<T>();
71 return m_ptr.getAs<T>();
78#define QT_BT_MAC_AUTORELEASEPOOL const QMacAutoReleasePool pool;
87 return this->getAs<T>();
92 return this->getAs<T>();
98#ifndef QT_IOS_BLUETOOTH
100QBluetoothAddress
qt_address(
const BluetoothDeviceAddress *address);
104QBluetoothUuid
qt_uuid(IOBluetoothSDPUUID *uuid);
110QBluetoothUuid
qt_uuid(CBUUID *uuid);
112bool equal_uuids(
const QBluetoothUuid &qtUuid, CBUUID *cbUuid);
113bool equal_uuids(CBUUID *cbUuid,
const QBluetoothUuid &qtUuid);
128Q_DECLARE_LOGGING_CATEGORY(QT_BT_DARWIN)
#define QT_BT_MAC_AUTORELEASEPOOL
ObjCScopedPointer()=default
ObjCScopedPointer(T *ptr, RetainPolicy policy)
void reset(T *ptr, RetainPolicy policy)
void swap(ObjCScopedPointer &other)
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
ObjCStrongReference< CBUUID > cb_uuid(const QBluetoothUuid &qtUuid)
QHash< NSObject *, QByteArray > ValueHash
const int defaultLEScanTimeoutMS
bool equal_uuids(const QBluetoothUuid &qtUuid, CBUUID *cbUuid)
@ CentralManagerDisconnecting
@ CentralManagerConnecting
@ CentralManagerDiscovering
ObjCStrongReference< NSMutableData > mutable_data_from_bytearray(const QByteArray &qtData)
auto qt_find_watchdog(const std::vector< GCDTimer > &watchdogs, id object, OperationTimeout type)
QByteArray qt_bytearray(NSData *data)
QHash< QLowEnergyHandle, CBDescriptor * > DescHash
QString qt_address(NSString *address)
@ includedServicesDiscovery
@ characteristicsDiscovery
QHash< QLowEnergyHandle, CBService * > ServiceHash
void qt_test_iobluetooth_runloop()
BluetoothDeviceAddress iobluetooth_address(const QBluetoothAddress &address)
NSUInteger qt_countGATTEntries(CBService *service)
QString qt_error_string(IOReturn errorCode)
ObjCStrongReference< NSData > data_from_bytearray(const QByteArray &qtData)
QBluetoothAddress qt_address(const BluetoothDeviceAddress *address)
ObjCStrongReference< IOBluetoothSDPUUID > iobluetooth_uuid(const QBluetoothUuid &uuid)
dispatch_queue_t qt_LE_queue()
QBluetoothUuid qt_uuid(IOBluetoothSDPUUID *uuid)
QHash< QLowEnergyHandle, CBCharacteristic * > CharHash
bool equal_uuids(CBUUID *cbUuid, const QBluetoothUuid &qtUuid)
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::CharData > CharacteristicDataMap
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::DescData > DescriptorDataMap
QDataStream & operator<<(QDataStream &stream, const QImage &image)
[0]
QDataStream & operator>>(QDataStream &stream, QImage &image)
QHash< QLowEnergyHandle, DescData > descriptorList
QLowEnergyHandle valueHandle
QLowEnergyCharacteristic::PropertyTypes properties