18#include <QtCore/private/qglobal_p.h>
58 std::swap(objCInstance, other.objCInstance);
66 template<
class ObjCType>
69 return static_cast<ObjCType *>(objCInstance);
74 return !!objCInstance;
78 void *objCInstance =
nullptr;
91 Q_DISABLE_COPY_MOVE(ScopedPointer)
#define QT_BT_MAC_AUTORELEASEPOOL
ObjCScopedPointer()=default
ObjCScopedPointer(T *ptr, RetainPolicy policy)
void reset(T *ptr, RetainPolicy policy)
void swap(ObjCScopedPointer &other)
ScopedPointer(void *instance, RetainPolicy policy)
StrongReference()=default
StrongReference & operator=(StrongReference &&other) noexcept
StrongReference & operator=(const StrongReference &other) noexcept
StrongReference(void *object, RetainPolicy policy)
void reset(void *newInstance, RetainPolicy policy)
StrongReference(StrongReference &&other)
void swap(StrongReference &other) noexcept
StrongReference(const StrongReference &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)
Combined button and popup list for selecting options.
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::CharData > CharacteristicDataMap
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::DescData > DescriptorDataMap
QHash< QLowEnergyHandle, DescData > descriptorList
QLowEnergyHandle valueHandle
QLowEnergyCharacteristic::PropertyTypes properties