// +build !minimal #define protected public #define private public #include "bluetooth.h" #include "_cgo_export.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void* QBluetoothAddress_NewQBluetoothAddress() { return new QBluetoothAddress(); } void* QBluetoothAddress_NewQBluetoothAddress4(void* other) { return new QBluetoothAddress(*static_cast(other)); } void* QBluetoothAddress_NewQBluetoothAddress3(struct QtBluetooth_PackedString address) { return new QBluetoothAddress(QString::fromUtf8(address.data, address.len)); } void* QBluetoothAddress_NewQBluetoothAddress2(unsigned long long address) { return new QBluetoothAddress(address); } void QBluetoothAddress_Clear(void* ptr) { static_cast(ptr)->clear(); } void QBluetoothAddress_DestroyQBluetoothAddress(void* ptr) { static_cast(ptr)->~QBluetoothAddress(); } struct QtBluetooth_PackedString QBluetoothAddress_ToString(void* ptr) { return ({ QByteArray t00210e = static_cast(ptr)->toString().toUtf8(); QtBluetooth_PackedString { const_cast(t00210e.prepend("WHITESPACE").constData()+10), t00210e.size()-10 }; }); } char QBluetoothAddress_IsNull(void* ptr) { return static_cast(ptr)->isNull(); } unsigned long long QBluetoothAddress_ToUInt64(void* ptr) { return static_cast(ptr)->toUInt64(); } class MyQBluetoothDeviceDiscoveryAgent: public QBluetoothDeviceDiscoveryAgent { public: MyQBluetoothDeviceDiscoveryAgent(QObject *parent = Q_NULLPTR) : QBluetoothDeviceDiscoveryAgent(parent) {QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_QRegisterMetaType();}; MyQBluetoothDeviceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent = Q_NULLPTR) : QBluetoothDeviceDiscoveryAgent(deviceAdapter, parent) {QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_QRegisterMetaType();}; void Signal_Canceled() { callbackQBluetoothDeviceDiscoveryAgent_Canceled(this); }; void Signal_DeviceDiscovered(const QBluetoothDeviceInfo & info) { callbackQBluetoothDeviceDiscoveryAgent_DeviceDiscovered(this, const_cast(&info)); }; void Signal_DeviceUpdated(const QBluetoothDeviceInfo & info, QBluetoothDeviceInfo::Fields updatedFields) { callbackQBluetoothDeviceDiscoveryAgent_DeviceUpdated(this, const_cast(&info), updatedFields); }; void Signal_Error2(QBluetoothDeviceDiscoveryAgent::Error error) { callbackQBluetoothDeviceDiscoveryAgent_Error2(this, error); }; void Signal_Finished() { callbackQBluetoothDeviceDiscoveryAgent_Finished(this); }; void start() { callbackQBluetoothDeviceDiscoveryAgent_Start(this); }; void start(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods methods) { callbackQBluetoothDeviceDiscoveryAgent_Start2(this, methods); }; void stop() { callbackQBluetoothDeviceDiscoveryAgent_Stop(this); }; ~MyQBluetoothDeviceDiscoveryAgent() { callbackQBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgent(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothDeviceDiscoveryAgent_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothDeviceDiscoveryAgent_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothDeviceDiscoveryAgent_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothDeviceDiscoveryAgent_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothDeviceDiscoveryAgent_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothDeviceDiscoveryAgent_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothDeviceDiscoveryAgent_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothDeviceDiscoveryAgent_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothDeviceDiscoveryAgent*) int QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } else { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } } void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent2(void* deviceAdapter, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } } long long QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_SupportedDiscoveryMethods() { return QBluetoothDeviceDiscoveryAgent::supportedDiscoveryMethods(); } struct QtBluetooth_PackedString QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_Tr(char* s, char* c, int n) { return ({ QByteArray t7bb80e = QBluetoothDeviceDiscoveryAgent::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t7bb80e.prepend("WHITESPACE").constData()+10), t7bb80e.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothDeviceDiscoveryAgent_QBluetoothDeviceDiscoveryAgent_TrUtf8(char* s, char* c, int n) { return ({ QByteArray ta33955 = QBluetoothDeviceDiscoveryAgent::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(ta33955.prepend("WHITESPACE").constData()+10), ta33955.size()-10 }; }); } void QBluetoothDeviceDiscoveryAgent_ConnectCanceled(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::canceled), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Canceled)); } void QBluetoothDeviceDiscoveryAgent_DisconnectCanceled(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::canceled), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Canceled)); } void QBluetoothDeviceDiscoveryAgent_Canceled(void* ptr) { static_cast(ptr)->canceled(); } void QBluetoothDeviceDiscoveryAgent_ConnectDeviceDiscovered(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::deviceDiscovered), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceDiscovered)); } void QBluetoothDeviceDiscoveryAgent_DisconnectDeviceDiscovered(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::deviceDiscovered), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceDiscovered)); } void QBluetoothDeviceDiscoveryAgent_DeviceDiscovered(void* ptr, void* info) { static_cast(ptr)->deviceDiscovered(*static_cast(info)); } void QBluetoothDeviceDiscoveryAgent_ConnectDeviceUpdated(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::deviceUpdated), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceUpdated)); } void QBluetoothDeviceDiscoveryAgent_DisconnectDeviceUpdated(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::deviceUpdated), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceUpdated)); } void QBluetoothDeviceDiscoveryAgent_DeviceUpdated(void* ptr, void* info, long long updatedFields) { static_cast(ptr)->deviceUpdated(*static_cast(info), static_cast(updatedFields)); } void QBluetoothDeviceDiscoveryAgent_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::error), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Error2)); } void QBluetoothDeviceDiscoveryAgent_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::error), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Error2)); } void QBluetoothDeviceDiscoveryAgent_Error2(void* ptr, long long error) { static_cast(ptr)->error(static_cast(error)); } void QBluetoothDeviceDiscoveryAgent_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::finished), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Finished)); } void QBluetoothDeviceDiscoveryAgent_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothDeviceDiscoveryAgent::finished), static_cast(ptr), static_cast(&MyQBluetoothDeviceDiscoveryAgent::Signal_Finished)); } void QBluetoothDeviceDiscoveryAgent_Finished(void* ptr) { static_cast(ptr)->finished(); } void QBluetoothDeviceDiscoveryAgent_SetInquiryType(void* ptr, long long ty) { static_cast(ptr)->setInquiryType(static_cast(ty)); } void QBluetoothDeviceDiscoveryAgent_SetLowEnergyDiscoveryTimeout(void* ptr, int timeout) { static_cast(ptr)->setLowEnergyDiscoveryTimeout(timeout); } void QBluetoothDeviceDiscoveryAgent_Start(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "start"); } void QBluetoothDeviceDiscoveryAgent_StartDefault(void* ptr) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::start(); } void QBluetoothDeviceDiscoveryAgent_Start2(void* ptr, long long methods) { qRegisterMetaType(); QMetaObject::invokeMethod(static_cast(ptr), "start", Q_ARG(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods, static_cast(methods))); } void QBluetoothDeviceDiscoveryAgent_Start2Default(void* ptr, long long methods) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::start(static_cast(methods)); } void QBluetoothDeviceDiscoveryAgent_Stop(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "stop"); } void QBluetoothDeviceDiscoveryAgent_StopDefault(void* ptr) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::stop(); } void QBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgent(void* ptr) { static_cast(ptr)->~QBluetoothDeviceDiscoveryAgent(); } void QBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgentDefault(void* ptr) { Q_UNUSED(ptr); } long long QBluetoothDeviceDiscoveryAgent_Error(void* ptr) { return static_cast(ptr)->error(); } long long QBluetoothDeviceDiscoveryAgent_InquiryType(void* ptr) { return static_cast(ptr)->inquiryType(); } struct QtBluetooth_PackedList QBluetoothDeviceDiscoveryAgent_DiscoveredDevices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->discoveredDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedString QBluetoothDeviceDiscoveryAgent_ErrorString(void* ptr) { return ({ QByteArray ta5ce9a = static_cast(ptr)->errorString().toUtf8(); QtBluetooth_PackedString { const_cast(ta5ce9a.prepend("WHITESPACE").constData()+10), ta5ce9a.size()-10 }; }); } char QBluetoothDeviceDiscoveryAgent_IsActive(void* ptr) { return static_cast(ptr)->isActive(); } void* QBluetoothDeviceDiscoveryAgent_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::metaObject()); } int QBluetoothDeviceDiscoveryAgent_LowEnergyDiscoveryTimeout(void* ptr) { return static_cast(ptr)->lowEnergyDiscoveryTimeout(); } void* QBluetoothDeviceDiscoveryAgent___discoveredDevices_atList(void* ptr, int i) { return new QBluetoothDeviceInfo(({QBluetoothDeviceInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothDeviceDiscoveryAgent___discoveredDevices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___discoveredDevices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceDiscoveryAgent___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothDeviceDiscoveryAgent___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceDiscoveryAgent___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothDeviceDiscoveryAgent___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceDiscoveryAgent___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothDeviceDiscoveryAgent___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceDiscoveryAgent___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothDeviceDiscoveryAgent___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceDiscoveryAgent___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothDeviceDiscoveryAgent___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothDeviceDiscoveryAgent___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothDeviceDiscoveryAgent_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::event(static_cast(e)); } char QBluetoothDeviceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::childEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::connectNotify(*static_cast(sign)); } void QBluetoothDeviceDiscoveryAgent_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::customEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::deleteLater(); } void QBluetoothDeviceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::disconnectNotify(*static_cast(sign)); } void QBluetoothDeviceDiscoveryAgent_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::timerEvent(static_cast(event)); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo() { return new QBluetoothDeviceInfo(); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo2(void* address, struct QtBluetooth_PackedString name, unsigned int classOfDevice) { return new QBluetoothDeviceInfo(*static_cast(address), QString::fromUtf8(name.data, name.len), classOfDevice); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo4(void* other) { return new QBluetoothDeviceInfo(*static_cast(other)); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo3(void* uuid, struct QtBluetooth_PackedString name, unsigned int classOfDevice) { return new QBluetoothDeviceInfo(*static_cast(uuid), QString::fromUtf8(name.data, name.len), classOfDevice); } char QBluetoothDeviceInfo_SetManufacturerData(void* ptr, unsigned short manufacturerId, void* data) { return static_cast(ptr)->setManufacturerData(manufacturerId, *static_cast(data)); } void QBluetoothDeviceInfo_SetCached(void* ptr, char cached) { static_cast(ptr)->setCached(cached != 0); } void QBluetoothDeviceInfo_SetCoreConfigurations(void* ptr, long long coreConfigs) { static_cast(ptr)->setCoreConfigurations(static_cast(coreConfigs)); } void QBluetoothDeviceInfo_SetDeviceUuid(void* ptr, void* uuid) { static_cast(ptr)->setDeviceUuid(*static_cast(uuid)); } void QBluetoothDeviceInfo_SetRssi(void* ptr, short sign) { static_cast(ptr)->setRssi(sign); } void QBluetoothDeviceInfo_SetServiceUuids(void* ptr, void* uuids, long long completeness) { static_cast(ptr)->setServiceUuids(*static_cast*>(uuids), static_cast(completeness)); } void QBluetoothDeviceInfo_DestroyQBluetoothDeviceInfo(void* ptr) { static_cast(ptr)->~QBluetoothDeviceInfo(); } void* QBluetoothDeviceInfo_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } long long QBluetoothDeviceInfo_CoreConfigurations(void* ptr) { return static_cast(ptr)->coreConfigurations(); } long long QBluetoothDeviceInfo_ServiceUuidsCompleteness(void* ptr) { return static_cast(ptr)->serviceUuidsCompleteness(); } long long QBluetoothDeviceInfo_MajorDeviceClass(void* ptr) { return static_cast(ptr)->majorDeviceClass(); } long long QBluetoothDeviceInfo_ServiceClasses(void* ptr) { return static_cast(ptr)->serviceClasses(); } void* QBluetoothDeviceInfo_DeviceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->deviceUuid()); } struct QtBluetooth_PackedString QBluetoothDeviceInfo_Name(void* ptr) { return ({ QByteArray t605955 = static_cast(ptr)->name().toUtf8(); QtBluetooth_PackedString { const_cast(t605955.prepend("WHITESPACE").constData()+10), t605955.size()-10 }; }); } struct QtBluetooth_PackedList QBluetoothDeviceInfo_ManufacturerIds(void* ptr) { return ({ QVector* tmpValue = new QVector(static_cast(ptr)->manufacturerIds()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } char QBluetoothDeviceInfo_IsCached(void* ptr) { return static_cast(ptr)->isCached(); } char QBluetoothDeviceInfo_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } short QBluetoothDeviceInfo_Rssi(void* ptr) { return static_cast(ptr)->rssi(); } struct QtBluetooth_PackedString QBluetoothDeviceInfo_MinorDeviceClass(void* ptr) { return ({ quint8 pret789f3c = static_cast(ptr)->minorDeviceClass(); char* t789f3c = static_cast(static_cast(&pret789f3c)); QtBluetooth_PackedString { t789f3c, -1 }; }); } void* QBluetoothDeviceInfo___setServiceUuids_uuids_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothDeviceInfo___setServiceUuids_uuids_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothDeviceInfo___setServiceUuids_uuids_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothDeviceInfo___serviceUuids_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothDeviceInfo___serviceUuids_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothDeviceInfo___serviceUuids_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } unsigned short QBluetoothDeviceInfo___manufacturerIds_atList(void* ptr, int i) { return ({quint16 tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QVector(); free(ptr); }; tmp; }); } void QBluetoothDeviceInfo___manufacturerIds_setList(void* ptr, unsigned short i) { static_cast*>(ptr)->append(i); } void* QBluetoothDeviceInfo___manufacturerIds_newList(void* ptr) { Q_UNUSED(ptr); return new QVector(); } unsigned short QBluetoothDeviceInfo_____manufacturerData_keyList_atList2(void* ptr, int i) { return ({quint16 tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothDeviceInfo_____manufacturerData_keyList_setList2(void* ptr, unsigned short i) { static_cast*>(ptr)->append(i); } void* QBluetoothDeviceInfo_____manufacturerData_keyList_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothHostInfo_NewQBluetoothHostInfo() { return new QBluetoothHostInfo(); } void* QBluetoothHostInfo_NewQBluetoothHostInfo2(void* other) { return new QBluetoothHostInfo(*static_cast(other)); } void QBluetoothHostInfo_SetAddress(void* ptr, void* address) { static_cast(ptr)->setAddress(*static_cast(address)); } void QBluetoothHostInfo_SetName(void* ptr, struct QtBluetooth_PackedString name) { static_cast(ptr)->setName(QString::fromUtf8(name.data, name.len)); } void QBluetoothHostInfo_DestroyQBluetoothHostInfo(void* ptr) { static_cast(ptr)->~QBluetoothHostInfo(); } void* QBluetoothHostInfo_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } struct QtBluetooth_PackedString QBluetoothHostInfo_Name(void* ptr) { return ({ QByteArray tabf4bd = static_cast(ptr)->name().toUtf8(); QtBluetooth_PackedString { const_cast(tabf4bd.prepend("WHITESPACE").constData()+10), tabf4bd.size()-10 }; }); } class MyQBluetoothLocalDevice: public QBluetoothLocalDevice { public: MyQBluetoothLocalDevice(QObject *parent = Q_NULLPTR) : QBluetoothLocalDevice(parent) {QBluetoothLocalDevice_QBluetoothLocalDevice_QRegisterMetaType();}; MyQBluetoothLocalDevice(const QBluetoothAddress &address, QObject *parent = Q_NULLPTR) : QBluetoothLocalDevice(address, parent) {QBluetoothLocalDevice_QBluetoothLocalDevice_QRegisterMetaType();}; void Signal_DeviceConnected(const QBluetoothAddress & address) { callbackQBluetoothLocalDevice_DeviceConnected(this, const_cast(&address)); }; void Signal_DeviceDisconnected(const QBluetoothAddress & address) { callbackQBluetoothLocalDevice_DeviceDisconnected(this, const_cast(&address)); }; void Signal_Error(QBluetoothLocalDevice::Error error) { callbackQBluetoothLocalDevice_Error(this, error); }; void Signal_HostModeStateChanged(QBluetoothLocalDevice::HostMode state) { callbackQBluetoothLocalDevice_HostModeStateChanged(this, state); }; void pairingConfirmation(bool confirmation) { callbackQBluetoothLocalDevice_PairingConfirmation(this, confirmation); }; void Signal_PairingDisplayConfirmation(const QBluetoothAddress & address, QString pin) { QByteArray td145a2 = pin.toUtf8(); QtBluetooth_PackedString pinPacked = { const_cast(td145a2.prepend("WHITESPACE").constData()+10), td145a2.size()-10 };callbackQBluetoothLocalDevice_PairingDisplayConfirmation(this, const_cast(&address), pinPacked); }; void Signal_PairingDisplayPinCode(const QBluetoothAddress & address, QString pin) { QByteArray td145a2 = pin.toUtf8(); QtBluetooth_PackedString pinPacked = { const_cast(td145a2.prepend("WHITESPACE").constData()+10), td145a2.size()-10 };callbackQBluetoothLocalDevice_PairingDisplayPinCode(this, const_cast(&address), pinPacked); }; void Signal_PairingFinished(const QBluetoothAddress & address, QBluetoothLocalDevice::Pairing pairing) { callbackQBluetoothLocalDevice_PairingFinished(this, const_cast(&address), pairing); }; ~MyQBluetoothLocalDevice() { callbackQBluetoothLocalDevice_DestroyQBluetoothLocalDevice(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothLocalDevice_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothLocalDevice_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothLocalDevice_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothLocalDevice_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothLocalDevice_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothLocalDevice_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothLocalDevice_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothLocalDevice_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothLocalDevice_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothLocalDevice_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothLocalDevice_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothLocalDevice*) int QBluetoothLocalDevice_QBluetoothLocalDevice_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothLocalDevice_NewQBluetoothLocalDevice(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(static_cast(parent)); } else { return new MyQBluetoothLocalDevice(static_cast(parent)); } } void* QBluetoothLocalDevice_NewQBluetoothLocalDevice2(void* address, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } else { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } } struct QtBluetooth_PackedList QBluetoothLocalDevice_QBluetoothLocalDevice_AllDevices() { return ({ QList* tmpValue = new QList(QBluetoothLocalDevice::allDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedString QBluetoothLocalDevice_QBluetoothLocalDevice_Tr(char* s, char* c, int n) { return ({ QByteArray t390fae = QBluetoothLocalDevice::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t390fae.prepend("WHITESPACE").constData()+10), t390fae.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothLocalDevice_QBluetoothLocalDevice_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t2926c8 = QBluetoothLocalDevice::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t2926c8.prepend("WHITESPACE").constData()+10), t2926c8.size()-10 }; }); } void QBluetoothLocalDevice_ConnectDeviceConnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::deviceConnected), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_DeviceConnected)); } void QBluetoothLocalDevice_DisconnectDeviceConnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::deviceConnected), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_DeviceConnected)); } void QBluetoothLocalDevice_DeviceConnected(void* ptr, void* address) { static_cast(ptr)->deviceConnected(*static_cast(address)); } void QBluetoothLocalDevice_ConnectDeviceDisconnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::deviceDisconnected), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_DeviceDisconnected)); } void QBluetoothLocalDevice_DisconnectDeviceDisconnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::deviceDisconnected), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_DeviceDisconnected)); } void QBluetoothLocalDevice_DeviceDisconnected(void* ptr, void* address) { static_cast(ptr)->deviceDisconnected(*static_cast(address)); } void QBluetoothLocalDevice_ConnectError(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::error), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_Error)); } void QBluetoothLocalDevice_DisconnectError(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::error), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_Error)); } void QBluetoothLocalDevice_Error(void* ptr, long long error) { static_cast(ptr)->error(static_cast(error)); } void QBluetoothLocalDevice_ConnectHostModeStateChanged(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::hostModeStateChanged), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_HostModeStateChanged)); } void QBluetoothLocalDevice_DisconnectHostModeStateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::hostModeStateChanged), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_HostModeStateChanged)); } void QBluetoothLocalDevice_HostModeStateChanged(void* ptr, long long state) { static_cast(ptr)->hostModeStateChanged(static_cast(state)); } void QBluetoothLocalDevice_PairingConfirmation(void* ptr, char confirmation) { QMetaObject::invokeMethod(static_cast(ptr), "pairingConfirmation", Q_ARG(bool, confirmation != 0)); } void QBluetoothLocalDevice_PairingConfirmationDefault(void* ptr, char confirmation) { static_cast(ptr)->QBluetoothLocalDevice::pairingConfirmation(confirmation != 0); } void QBluetoothLocalDevice_ConnectPairingDisplayConfirmation(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingDisplayConfirmation), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingDisplayConfirmation)); } void QBluetoothLocalDevice_DisconnectPairingDisplayConfirmation(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingDisplayConfirmation), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingDisplayConfirmation)); } void QBluetoothLocalDevice_PairingDisplayConfirmation(void* ptr, void* address, struct QtBluetooth_PackedString pin) { static_cast(ptr)->pairingDisplayConfirmation(*static_cast(address), QString::fromUtf8(pin.data, pin.len)); } void QBluetoothLocalDevice_ConnectPairingDisplayPinCode(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingDisplayPinCode), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingDisplayPinCode)); } void QBluetoothLocalDevice_DisconnectPairingDisplayPinCode(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingDisplayPinCode), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingDisplayPinCode)); } void QBluetoothLocalDevice_PairingDisplayPinCode(void* ptr, void* address, struct QtBluetooth_PackedString pin) { static_cast(ptr)->pairingDisplayPinCode(*static_cast(address), QString::fromUtf8(pin.data, pin.len)); } void QBluetoothLocalDevice_ConnectPairingFinished(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingFinished), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingFinished)); } void QBluetoothLocalDevice_DisconnectPairingFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothLocalDevice::pairingFinished), static_cast(ptr), static_cast(&MyQBluetoothLocalDevice::Signal_PairingFinished)); } void QBluetoothLocalDevice_PairingFinished(void* ptr, void* address, long long pairing) { static_cast(ptr)->pairingFinished(*static_cast(address), static_cast(pairing)); } void QBluetoothLocalDevice_PowerOn(void* ptr) { static_cast(ptr)->powerOn(); } void QBluetoothLocalDevice_RequestPairing(void* ptr, void* address, long long pairing) { static_cast(ptr)->requestPairing(*static_cast(address), static_cast(pairing)); } void QBluetoothLocalDevice_SetHostMode(void* ptr, long long mode) { static_cast(ptr)->setHostMode(static_cast(mode)); } void QBluetoothLocalDevice_DestroyQBluetoothLocalDevice(void* ptr) { static_cast(ptr)->~QBluetoothLocalDevice(); } void QBluetoothLocalDevice_DestroyQBluetoothLocalDeviceDefault(void* ptr) { Q_UNUSED(ptr); } void* QBluetoothLocalDevice_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } long long QBluetoothLocalDevice_HostMode(void* ptr) { return static_cast(ptr)->hostMode(); } long long QBluetoothLocalDevice_PairingStatus(void* ptr, void* address) { return static_cast(ptr)->pairingStatus(*static_cast(address)); } struct QtBluetooth_PackedList QBluetoothLocalDevice_ConnectedDevices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->connectedDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedString QBluetoothLocalDevice_Name(void* ptr) { return ({ QByteArray td05b9d = static_cast(ptr)->name().toUtf8(); QtBluetooth_PackedString { const_cast(td05b9d.prepend("WHITESPACE").constData()+10), td05b9d.size()-10 }; }); } char QBluetoothLocalDevice_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QBluetoothLocalDevice_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothLocalDevice::metaObject()); } void* QBluetoothLocalDevice___allDevices_atList(void* ptr, int i) { return new QBluetoothHostInfo(({QBluetoothHostInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothLocalDevice___allDevices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothLocalDevice___allDevices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___connectedDevices_atList(void* ptr, int i) { return new QBluetoothAddress(({QBluetoothAddress tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothLocalDevice___connectedDevices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothLocalDevice___connectedDevices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothLocalDevice___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothLocalDevice___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothLocalDevice___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothLocalDevice___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothLocalDevice___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothLocalDevice___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothLocalDevice___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothLocalDevice___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothLocalDevice___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothLocalDevice___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothLocalDevice___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothLocalDevice_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothLocalDevice::event(static_cast(e)); } char QBluetoothLocalDevice_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothLocalDevice::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothLocalDevice_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::childEvent(static_cast(event)); } void QBluetoothLocalDevice_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothLocalDevice::connectNotify(*static_cast(sign)); } void QBluetoothLocalDevice_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::customEvent(static_cast(event)); } void QBluetoothLocalDevice_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothLocalDevice::deleteLater(); } void QBluetoothLocalDevice_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothLocalDevice::disconnectNotify(*static_cast(sign)); } void QBluetoothLocalDevice_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::timerEvent(static_cast(event)); } class MyQBluetoothServer: public QBluetoothServer { public: MyQBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent = Q_NULLPTR) : QBluetoothServer(serverType, parent) {QBluetoothServer_QBluetoothServer_QRegisterMetaType();}; void Signal_Error2(QBluetoothServer::Error error) { callbackQBluetoothServer_Error2(this, error); }; void Signal_NewConnection() { callbackQBluetoothServer_NewConnection(this); }; ~MyQBluetoothServer() { callbackQBluetoothServer_DestroyQBluetoothServer(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothServer_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothServer_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServer_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothServer_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothServer_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothServer_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothServer_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothServer_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServer_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothServer_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServer_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothServer*) int QBluetoothServer_QBluetoothServer_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothServer_NewQBluetoothServer(long long serverType, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } else { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } } void* QBluetoothServer_Listen2(void* ptr, void* uuid, struct QtBluetooth_PackedString serviceName) { return new QBluetoothServiceInfo(static_cast(ptr)->listen(*static_cast(uuid), QString::fromUtf8(serviceName.data, serviceName.len))); } void* QBluetoothServer_NextPendingConnection(void* ptr) { return static_cast(ptr)->nextPendingConnection(); } struct QtBluetooth_PackedString QBluetoothServer_QBluetoothServer_Tr(char* s, char* c, int n) { return ({ QByteArray tcd1d09 = QBluetoothServer::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(tcd1d09.prepend("WHITESPACE").constData()+10), tcd1d09.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothServer_QBluetoothServer_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t0f25b0 = QBluetoothServer::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t0f25b0.prepend("WHITESPACE").constData()+10), t0f25b0.size()-10 }; }); } char QBluetoothServer_Listen(void* ptr, void* address, unsigned short port) { return static_cast(ptr)->listen(*static_cast(address), port); } void QBluetoothServer_Close(void* ptr) { static_cast(ptr)->close(); } void QBluetoothServer_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothServer::error), static_cast(ptr), static_cast(&MyQBluetoothServer::Signal_Error2)); } void QBluetoothServer_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServer::error), static_cast(ptr), static_cast(&MyQBluetoothServer::Signal_Error2)); } void QBluetoothServer_Error2(void* ptr, long long error) { static_cast(ptr)->error(static_cast(error)); } void QBluetoothServer_ConnectNewConnection(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothServer::newConnection), static_cast(ptr), static_cast(&MyQBluetoothServer::Signal_NewConnection)); } void QBluetoothServer_DisconnectNewConnection(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServer::newConnection), static_cast(ptr), static_cast(&MyQBluetoothServer::Signal_NewConnection)); } void QBluetoothServer_NewConnection(void* ptr) { static_cast(ptr)->newConnection(); } void QBluetoothServer_SetMaxPendingConnections(void* ptr, int numConnections) { static_cast(ptr)->setMaxPendingConnections(numConnections); } void QBluetoothServer_SetSecurityFlags(void* ptr, long long security) { static_cast(ptr)->setSecurityFlags(static_cast(security)); } void QBluetoothServer_DestroyQBluetoothServer(void* ptr) { static_cast(ptr)->~QBluetoothServer(); } void QBluetoothServer_DestroyQBluetoothServerDefault(void* ptr) { Q_UNUSED(ptr); } long long QBluetoothServer_SecurityFlags(void* ptr) { return static_cast(ptr)->securityFlags(); } void* QBluetoothServer_ServerAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->serverAddress()); } long long QBluetoothServer_Error(void* ptr) { return static_cast(ptr)->error(); } long long QBluetoothServer_ServerType(void* ptr) { return static_cast(ptr)->serverType(); } char QBluetoothServer_HasPendingConnections(void* ptr) { return static_cast(ptr)->hasPendingConnections(); } char QBluetoothServer_IsListening(void* ptr) { return static_cast(ptr)->isListening(); } void* QBluetoothServer_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothServer::metaObject()); } int QBluetoothServer_MaxPendingConnections(void* ptr) { return static_cast(ptr)->maxPendingConnections(); } unsigned short QBluetoothServer_ServerPort(void* ptr) { return static_cast(ptr)->serverPort(); } void* QBluetoothServer___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServer___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServer___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServer___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServer___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServer___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServer___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServer___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServer___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServer___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServer___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServer___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServer___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServer___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServer___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothServer_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothServer::event(static_cast(e)); } char QBluetoothServer_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothServer::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothServer_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::childEvent(static_cast(event)); } void QBluetoothServer_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServer::connectNotify(*static_cast(sign)); } void QBluetoothServer_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::customEvent(static_cast(event)); } void QBluetoothServer_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothServer::deleteLater(); } void QBluetoothServer_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServer::disconnectNotify(*static_cast(sign)); } void QBluetoothServer_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::timerEvent(static_cast(event)); } class MyQBluetoothServiceDiscoveryAgent: public QBluetoothServiceDiscoveryAgent { public: MyQBluetoothServiceDiscoveryAgent(QObject *parent = Q_NULLPTR) : QBluetoothServiceDiscoveryAgent(parent) {QBluetoothServiceDiscoveryAgent_QBluetoothServiceDiscoveryAgent_QRegisterMetaType();}; MyQBluetoothServiceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent = Q_NULLPTR) : QBluetoothServiceDiscoveryAgent(deviceAdapter, parent) {QBluetoothServiceDiscoveryAgent_QBluetoothServiceDiscoveryAgent_QRegisterMetaType();}; void Signal_Canceled() { callbackQBluetoothServiceDiscoveryAgent_Canceled(this); }; void clear() { callbackQBluetoothServiceDiscoveryAgent_Clear(this); }; void Signal_Error2(QBluetoothServiceDiscoveryAgent::Error error) { callbackQBluetoothServiceDiscoveryAgent_Error2(this, error); }; void Signal_Finished() { callbackQBluetoothServiceDiscoveryAgent_Finished(this); }; void Signal_ServiceDiscovered(const QBluetoothServiceInfo & info) { callbackQBluetoothServiceDiscoveryAgent_ServiceDiscovered(this, const_cast(&info)); }; void start(QBluetoothServiceDiscoveryAgent::DiscoveryMode mode) { callbackQBluetoothServiceDiscoveryAgent_Start(this, mode); }; void stop() { callbackQBluetoothServiceDiscoveryAgent_Stop(this); }; ~MyQBluetoothServiceDiscoveryAgent() { callbackQBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothServiceDiscoveryAgent_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothServiceDiscoveryAgent_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServiceDiscoveryAgent_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothServiceDiscoveryAgent_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothServiceDiscoveryAgent_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothServiceDiscoveryAgent_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothServiceDiscoveryAgent_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothServiceDiscoveryAgent_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServiceDiscoveryAgent_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothServiceDiscoveryAgent_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServiceDiscoveryAgent_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothServiceDiscoveryAgent*) int QBluetoothServiceDiscoveryAgent_QBluetoothServiceDiscoveryAgent_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } else { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } } void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent2(void* deviceAdapter, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } else { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } } struct QtBluetooth_PackedString QBluetoothServiceDiscoveryAgent_QBluetoothServiceDiscoveryAgent_Tr(char* s, char* c, int n) { return ({ QByteArray t32985e = QBluetoothServiceDiscoveryAgent::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t32985e.prepend("WHITESPACE").constData()+10), t32985e.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothServiceDiscoveryAgent_QBluetoothServiceDiscoveryAgent_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t62fe0c = QBluetoothServiceDiscoveryAgent::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t62fe0c.prepend("WHITESPACE").constData()+10), t62fe0c.size()-10 }; }); } char QBluetoothServiceDiscoveryAgent_SetRemoteAddress(void* ptr, void* address) { return static_cast(ptr)->setRemoteAddress(*static_cast(address)); } void QBluetoothServiceDiscoveryAgent_ConnectCanceled(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::canceled), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Canceled)); } void QBluetoothServiceDiscoveryAgent_DisconnectCanceled(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::canceled), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Canceled)); } void QBluetoothServiceDiscoveryAgent_Canceled(void* ptr) { static_cast(ptr)->canceled(); } void QBluetoothServiceDiscoveryAgent_Clear(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "clear"); } void QBluetoothServiceDiscoveryAgent_ClearDefault(void* ptr) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::clear(); } void QBluetoothServiceDiscoveryAgent_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::error), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Error2)); } void QBluetoothServiceDiscoveryAgent_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::error), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Error2)); } void QBluetoothServiceDiscoveryAgent_Error2(void* ptr, long long error) { static_cast(ptr)->error(static_cast(error)); } void QBluetoothServiceDiscoveryAgent_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::finished), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Finished)); } void QBluetoothServiceDiscoveryAgent_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::finished), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_Finished)); } void QBluetoothServiceDiscoveryAgent_Finished(void* ptr) { static_cast(ptr)->finished(); } void QBluetoothServiceDiscoveryAgent_ConnectServiceDiscovered(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::serviceDiscovered), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_ServiceDiscovered)); } void QBluetoothServiceDiscoveryAgent_DisconnectServiceDiscovered(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothServiceDiscoveryAgent::serviceDiscovered), static_cast(ptr), static_cast(&MyQBluetoothServiceDiscoveryAgent::Signal_ServiceDiscovered)); } void QBluetoothServiceDiscoveryAgent_ServiceDiscovered(void* ptr, void* info) { static_cast(ptr)->serviceDiscovered(*static_cast(info)); } void QBluetoothServiceDiscoveryAgent_SetUuidFilter2(void* ptr, void* uuid) { static_cast(ptr)->setUuidFilter(*static_cast(uuid)); } void QBluetoothServiceDiscoveryAgent_SetUuidFilter(void* ptr, void* uuids) { static_cast(ptr)->setUuidFilter(*static_cast*>(uuids)); } void QBluetoothServiceDiscoveryAgent_Start(void* ptr, long long mode) { qRegisterMetaType(); QMetaObject::invokeMethod(static_cast(ptr), "start", Q_ARG(QBluetoothServiceDiscoveryAgent::DiscoveryMode, static_cast(mode))); } void QBluetoothServiceDiscoveryAgent_StartDefault(void* ptr, long long mode) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::start(static_cast(mode)); } void QBluetoothServiceDiscoveryAgent_Stop(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "stop"); } void QBluetoothServiceDiscoveryAgent_StopDefault(void* ptr) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::stop(); } void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(void* ptr) { static_cast(ptr)->~QBluetoothServiceDiscoveryAgent(); } void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgentDefault(void* ptr) { Q_UNUSED(ptr); } void* QBluetoothServiceDiscoveryAgent_RemoteAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->remoteAddress()); } long long QBluetoothServiceDiscoveryAgent_Error(void* ptr) { return static_cast(ptr)->error(); } struct QtBluetooth_PackedList QBluetoothServiceDiscoveryAgent_DiscoveredServices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->discoveredServices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedList QBluetoothServiceDiscoveryAgent_UuidFilter(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->uuidFilter()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedString QBluetoothServiceDiscoveryAgent_ErrorString(void* ptr) { return ({ QByteArray t581ebe = static_cast(ptr)->errorString().toUtf8(); QtBluetooth_PackedString { const_cast(t581ebe.prepend("WHITESPACE").constData()+10), t581ebe.size()-10 }; }); } char QBluetoothServiceDiscoveryAgent_IsActive(void* ptr) { return static_cast(ptr)->isActive(); } void* QBluetoothServiceDiscoveryAgent_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothServiceDiscoveryAgent::metaObject()); } void* QBluetoothServiceDiscoveryAgent___setUuidFilter_uuids_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServiceDiscoveryAgent___setUuidFilter_uuids_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___setUuidFilter_uuids_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___discoveredServices_atList(void* ptr, int i) { return new QBluetoothServiceInfo(({QBluetoothServiceInfo tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServiceDiscoveryAgent___discoveredServices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___discoveredServices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___uuidFilter_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServiceDiscoveryAgent___uuidFilter_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___uuidFilter_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServiceDiscoveryAgent___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServiceDiscoveryAgent___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServiceDiscoveryAgent___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServiceDiscoveryAgent___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothServiceDiscoveryAgent___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothServiceDiscoveryAgent___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothServiceDiscoveryAgent___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothServiceDiscoveryAgent_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothServiceDiscoveryAgent::event(static_cast(e)); } char QBluetoothServiceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothServiceDiscoveryAgent::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothServiceDiscoveryAgent_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::childEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::connectNotify(*static_cast(sign)); } void QBluetoothServiceDiscoveryAgent_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::customEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::deleteLater(); } void QBluetoothServiceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::disconnectNotify(*static_cast(sign)); } void QBluetoothServiceDiscoveryAgent_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::timerEvent(static_cast(event)); } int QBluetoothServiceInfo_ServiceName_Type() { return QBluetoothServiceInfo::ServiceName; } int QBluetoothServiceInfo_ServiceDescription_Type() { return QBluetoothServiceInfo::ServiceDescription; } int QBluetoothServiceInfo_ServiceProvider_Type() { return QBluetoothServiceInfo::ServiceProvider; } void* QBluetoothServiceInfo_NewQBluetoothServiceInfo() { return new QBluetoothServiceInfo(); } void* QBluetoothServiceInfo_NewQBluetoothServiceInfo2(void* other) { return new QBluetoothServiceInfo(*static_cast(other)); } char QBluetoothServiceInfo_RegisterService(void* ptr, void* localAdapter) { return static_cast(ptr)->registerService(*static_cast(localAdapter)); } char QBluetoothServiceInfo_UnregisterService(void* ptr) { return static_cast(ptr)->unregisterService(); } void QBluetoothServiceInfo_RemoveAttribute(void* ptr, unsigned short attributeId) { static_cast(ptr)->removeAttribute(attributeId); } void QBluetoothServiceInfo_SetAttribute2(void* ptr, unsigned short attributeId, void* value) { static_cast(ptr)->setAttribute(attributeId, *static_cast(value)); } void QBluetoothServiceInfo_SetAttribute(void* ptr, unsigned short attributeId, void* value) { static_cast(ptr)->setAttribute(attributeId, *static_cast(value)); } void QBluetoothServiceInfo_SetDevice(void* ptr, void* device) { static_cast(ptr)->setDevice(*static_cast(device)); } void QBluetoothServiceInfo_SetServiceAvailability(void* ptr, char* availability) { static_cast(ptr)->setServiceAvailability(*static_cast(static_cast(availability))); } void QBluetoothServiceInfo_SetServiceDescription(void* ptr, struct QtBluetooth_PackedString description) { static_cast(ptr)->setServiceDescription(QString::fromUtf8(description.data, description.len)); } void QBluetoothServiceInfo_SetServiceName(void* ptr, struct QtBluetooth_PackedString name) { static_cast(ptr)->setServiceName(QString::fromUtf8(name.data, name.len)); } void QBluetoothServiceInfo_SetServiceProvider(void* ptr, struct QtBluetooth_PackedString provider) { static_cast(ptr)->setServiceProvider(QString::fromUtf8(provider.data, provider.len)); } void QBluetoothServiceInfo_SetServiceUuid(void* ptr, void* uuid) { static_cast(ptr)->setServiceUuid(*static_cast(uuid)); } void QBluetoothServiceInfo_DestroyQBluetoothServiceInfo(void* ptr) { static_cast(ptr)->~QBluetoothServiceInfo(); } void* QBluetoothServiceInfo_Device(void* ptr) { return new QBluetoothDeviceInfo(static_cast(ptr)->device()); } long long QBluetoothServiceInfo_SocketProtocol(void* ptr) { return static_cast(ptr)->socketProtocol(); } void* QBluetoothServiceInfo_ServiceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->serviceUuid()); } struct QtBluetooth_PackedList QBluetoothServiceInfo_ServiceClassUuids(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->serviceClassUuids()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedString QBluetoothServiceInfo_ServiceDescription(void* ptr) { return ({ QByteArray t928c16 = static_cast(ptr)->serviceDescription().toUtf8(); QtBluetooth_PackedString { const_cast(t928c16.prepend("WHITESPACE").constData()+10), t928c16.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothServiceInfo_ServiceName(void* ptr) { return ({ QByteArray tf38ab3 = static_cast(ptr)->serviceName().toUtf8(); QtBluetooth_PackedString { const_cast(tf38ab3.prepend("WHITESPACE").constData()+10), tf38ab3.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothServiceInfo_ServiceProvider(void* ptr) { return ({ QByteArray tae7568 = static_cast(ptr)->serviceProvider().toUtf8(); QtBluetooth_PackedString { const_cast(tae7568.prepend("WHITESPACE").constData()+10), tae7568.size()-10 }; }); } void* QBluetoothServiceInfo_Attribute(void* ptr, unsigned short attributeId) { return new QVariant(static_cast(ptr)->attribute(attributeId)); } char QBluetoothServiceInfo_Contains(void* ptr, unsigned short attributeId) { return static_cast(ptr)->contains(attributeId); } char QBluetoothServiceInfo_IsComplete(void* ptr) { return static_cast(ptr)->isComplete(); } char QBluetoothServiceInfo_IsRegistered(void* ptr) { return static_cast(ptr)->isRegistered(); } char QBluetoothServiceInfo_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } int QBluetoothServiceInfo_ProtocolServiceMultiplexer(void* ptr) { return static_cast(ptr)->protocolServiceMultiplexer(); } int QBluetoothServiceInfo_ServerChannel(void* ptr) { return static_cast(ptr)->serverChannel(); } struct QtBluetooth_PackedString QBluetoothServiceInfo_ServiceAvailability(void* ptr) { return ({ quint8 pret18d8cb = static_cast(ptr)->serviceAvailability(); char* t18d8cb = static_cast(static_cast(&pret18d8cb)); QtBluetooth_PackedString { t18d8cb, -1 }; }); } void* QBluetoothServiceInfo___serviceClassUuids_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothServiceInfo___serviceClassUuids_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothServiceInfo___serviceClassUuids_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } class MyQBluetoothSocket: public QBluetoothSocket { public: MyQBluetoothSocket(QBluetoothServiceInfo::Protocol socketType, QObject *parent = Q_NULLPTR) : QBluetoothSocket(socketType, parent) {QBluetoothSocket_QBluetoothSocket_QRegisterMetaType();}; MyQBluetoothSocket(QObject *parent = Q_NULLPTR) : QBluetoothSocket(parent) {QBluetoothSocket_QBluetoothSocket_QRegisterMetaType();}; qint64 readData(char * data, qint64 maxSize) { QtBluetooth_PackedString dataPacked = { data, maxSize };return callbackQBluetoothSocket_ReadData(this, dataPacked, maxSize); }; qint64 writeData(const char * data, qint64 maxSize) { QtBluetooth_PackedString dataPacked = { const_cast(data), maxSize };return callbackQBluetoothSocket_WriteData(this, dataPacked, maxSize); }; void close() { callbackQBluetoothSocket_Close(this); }; void Signal_Connected() { callbackQBluetoothSocket_Connected(this); }; void Signal_Disconnected() { callbackQBluetoothSocket_Disconnected(this); }; void Signal_Error2(QBluetoothSocket::SocketError error) { callbackQBluetoothSocket_Error2(this, error); }; void Signal_StateChanged(QBluetoothSocket::SocketState state) { callbackQBluetoothSocket_StateChanged(this, state); }; ~MyQBluetoothSocket() { callbackQBluetoothSocket_DestroyQBluetoothSocket(this); }; bool canReadLine() const { return callbackQBluetoothSocket_CanReadLine(const_cast(static_cast(this))) != 0; }; bool isSequential() const { return callbackQBluetoothSocket_IsSequential(const_cast(static_cast(this))) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothSocket_MetaObject(const_cast(static_cast(this)))); }; qint64 bytesAvailable() const { return callbackQBluetoothSocket_BytesAvailable(const_cast(static_cast(this))); }; qint64 bytesToWrite() const { return callbackQBluetoothSocket_BytesToWrite(const_cast(static_cast(this))); }; bool open(QIODevice::OpenMode mode) { return callbackQBluetoothSocket_Open(this, mode) != 0; }; bool reset() { return callbackQBluetoothSocket_Reset(this) != 0; }; bool seek(qint64 pos) { return callbackQBluetoothSocket_Seek(this, pos) != 0; }; bool waitForBytesWritten(int msecs) { return callbackQBluetoothSocket_WaitForBytesWritten(this, msecs) != 0; }; bool waitForReadyRead(int msecs) { return callbackQBluetoothSocket_WaitForReadyRead(this, msecs) != 0; }; qint64 readLineData(char * data, qint64 maxSize) { QtBluetooth_PackedString dataPacked = { data, maxSize };return callbackQBluetoothSocket_ReadLineData(this, dataPacked, maxSize); }; void Signal_AboutToClose() { callbackQBluetoothSocket_AboutToClose(this); }; void Signal_BytesWritten(qint64 bytes) { callbackQBluetoothSocket_BytesWritten(this, bytes); }; void Signal_ChannelBytesWritten(int channel, qint64 bytes) { callbackQBluetoothSocket_ChannelBytesWritten(this, channel, bytes); }; void Signal_ChannelReadyRead(int channel) { callbackQBluetoothSocket_ChannelReadyRead(this, channel); }; void Signal_ReadChannelFinished() { callbackQBluetoothSocket_ReadChannelFinished(this); }; void Signal_ReadyRead() { callbackQBluetoothSocket_ReadyRead(this); }; bool atEnd() const { return callbackQBluetoothSocket_AtEnd(const_cast(static_cast(this))) != 0; }; qint64 pos() const { return callbackQBluetoothSocket_Pos(const_cast(static_cast(this))); }; qint64 size() const { return callbackQBluetoothSocket_Size(const_cast(static_cast(this))); }; bool event(QEvent * e) { return callbackQBluetoothSocket_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothSocket_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothSocket_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothSocket_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothSocket_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothSocket_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothSocket_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothSocket_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothSocket_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothSocket_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothSocket*) int QBluetoothSocket_QBluetoothSocket_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothSocket_NewQBluetoothSocket(long long socketType, void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } else { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } } void* QBluetoothSocket_NewQBluetoothSocket2(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothSocket(static_cast(parent)); } else { return new MyQBluetoothSocket(static_cast(parent)); } } struct QtBluetooth_PackedString QBluetoothSocket_QBluetoothSocket_Tr(char* s, char* c, int n) { return ({ QByteArray t7732e9 = QBluetoothSocket::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t7732e9.prepend("WHITESPACE").constData()+10), t7732e9.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothSocket_QBluetoothSocket_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t367063 = QBluetoothSocket::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t367063.prepend("WHITESPACE").constData()+10), t367063.size()-10 }; }); } char QBluetoothSocket_SetSocketDescriptor(void* ptr, int socketDescriptor, long long socketType, long long socketState, long long openMode) { return static_cast(ptr)->setSocketDescriptor(socketDescriptor, static_cast(socketType), static_cast(socketState), static_cast(openMode)); } long long QBluetoothSocket_ReadData(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->readData(data, maxSize); } long long QBluetoothSocket_ReadDataDefault(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->QBluetoothSocket::readData(data, maxSize); } long long QBluetoothSocket_WriteData(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->writeData(const_cast(data), maxSize); } long long QBluetoothSocket_WriteDataDefault(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->QBluetoothSocket::writeData(const_cast(data), maxSize); } void QBluetoothSocket_Abort(void* ptr) { static_cast(ptr)->abort(); } void QBluetoothSocket_CloseDefault(void* ptr) { static_cast(ptr)->QBluetoothSocket::close(); } void QBluetoothSocket_ConnectToService2(void* ptr, void* address, void* uuid, long long openMode) { static_cast(ptr)->connectToService(*static_cast(address), *static_cast(uuid), static_cast(openMode)); } void QBluetoothSocket_ConnectToService3(void* ptr, void* address, unsigned short port, long long openMode) { static_cast(ptr)->connectToService(*static_cast(address), port, static_cast(openMode)); } void QBluetoothSocket_ConnectToService(void* ptr, void* service, long long openMode) { static_cast(ptr)->connectToService(*static_cast(service), static_cast(openMode)); } void QBluetoothSocket_ConnectConnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothSocket::connected), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Connected)); } void QBluetoothSocket_DisconnectConnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothSocket::connected), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Connected)); } void QBluetoothSocket_Connected(void* ptr) { static_cast(ptr)->connected(); } void QBluetoothSocket_DisconnectFromService(void* ptr) { static_cast(ptr)->disconnectFromService(); } void QBluetoothSocket_ConnectDisconnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothSocket::disconnected), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Disconnected)); } void QBluetoothSocket_DisconnectDisconnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothSocket::disconnected), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Disconnected)); } void QBluetoothSocket_Disconnected(void* ptr) { static_cast(ptr)->disconnected(); } void QBluetoothSocket_DoDeviceDiscovery(void* ptr, void* service, long long openMode) { static_cast(ptr)->doDeviceDiscovery(*static_cast(service), static_cast(openMode)); } void QBluetoothSocket_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothSocket::error), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Error2)); } void QBluetoothSocket_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothSocket::error), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_Error2)); } void QBluetoothSocket_Error2(void* ptr, long long error) { static_cast(ptr)->error(static_cast(error)); } void QBluetoothSocket_SetPreferredSecurityFlags(void* ptr, long long flags) { static_cast(ptr)->setPreferredSecurityFlags(static_cast(flags)); } void QBluetoothSocket_SetSocketError(void* ptr, long long error_) { static_cast(ptr)->setSocketError(static_cast(error_)); } void QBluetoothSocket_SetSocketState(void* ptr, long long state) { static_cast(ptr)->setSocketState(static_cast(state)); } void QBluetoothSocket_ConnectStateChanged(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothSocket::stateChanged), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_StateChanged)); } void QBluetoothSocket_DisconnectStateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothSocket::stateChanged), static_cast(ptr), static_cast(&MyQBluetoothSocket::Signal_StateChanged)); } void QBluetoothSocket_StateChanged(void* ptr, long long state) { static_cast(ptr)->stateChanged(static_cast(state)); } void QBluetoothSocket_DestroyQBluetoothSocket(void* ptr) { static_cast(ptr)->~QBluetoothSocket(); } void QBluetoothSocket_DestroyQBluetoothSocketDefault(void* ptr) { Q_UNUSED(ptr); } long long QBluetoothSocket_PreferredSecurityFlags(void* ptr) { return static_cast(ptr)->preferredSecurityFlags(); } void* QBluetoothSocket_LocalAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->localAddress()); } void* QBluetoothSocket_PeerAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->peerAddress()); } long long QBluetoothSocket_SocketType(void* ptr) { return static_cast(ptr)->socketType(); } long long QBluetoothSocket_Error(void* ptr) { return static_cast(ptr)->error(); } long long QBluetoothSocket_State(void* ptr) { return static_cast(ptr)->state(); } struct QtBluetooth_PackedString QBluetoothSocket_LocalName(void* ptr) { return ({ QByteArray t705949 = static_cast(ptr)->localName().toUtf8(); QtBluetooth_PackedString { const_cast(t705949.prepend("WHITESPACE").constData()+10), t705949.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothSocket_PeerName(void* ptr) { return ({ QByteArray te958b4 = static_cast(ptr)->peerName().toUtf8(); QtBluetooth_PackedString { const_cast(te958b4.prepend("WHITESPACE").constData()+10), te958b4.size()-10 }; }); } char QBluetoothSocket_CanReadLineDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::canReadLine(); } char QBluetoothSocket_IsSequentialDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::isSequential(); } void* QBluetoothSocket_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothSocket::metaObject()); } int QBluetoothSocket_SocketDescriptor(void* ptr) { return static_cast(ptr)->socketDescriptor(); } long long QBluetoothSocket_BytesAvailableDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::bytesAvailable(); } long long QBluetoothSocket_BytesToWriteDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::bytesToWrite(); } unsigned short QBluetoothSocket_LocalPort(void* ptr) { return static_cast(ptr)->localPort(); } unsigned short QBluetoothSocket_PeerPort(void* ptr) { return static_cast(ptr)->peerPort(); } void* QBluetoothSocket___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothSocket___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothSocket___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothSocket___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothSocket___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothSocket___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothSocket___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothSocket___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothSocket___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothSocket___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothSocket___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothSocket___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothSocket___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothSocket___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothSocket___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothSocket_OpenDefault(void* ptr, long long mode) { return static_cast(ptr)->QBluetoothSocket::open(static_cast(mode)); } char QBluetoothSocket_ResetDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::reset(); } char QBluetoothSocket_SeekDefault(void* ptr, long long pos) { return static_cast(ptr)->QBluetoothSocket::seek(pos); } char QBluetoothSocket_WaitForBytesWrittenDefault(void* ptr, int msecs) { return static_cast(ptr)->QBluetoothSocket::waitForBytesWritten(msecs); } char QBluetoothSocket_WaitForReadyReadDefault(void* ptr, int msecs) { return static_cast(ptr)->QBluetoothSocket::waitForReadyRead(msecs); } long long QBluetoothSocket_ReadLineDataDefault(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->QBluetoothSocket::readLineData(data, maxSize); } char QBluetoothSocket_AtEndDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::atEnd(); } long long QBluetoothSocket_PosDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::pos(); } long long QBluetoothSocket_SizeDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::size(); } char QBluetoothSocket_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothSocket::event(static_cast(e)); } char QBluetoothSocket_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothSocket::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothSocket_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::childEvent(static_cast(event)); } void QBluetoothSocket_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothSocket::connectNotify(*static_cast(sign)); } void QBluetoothSocket_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::customEvent(static_cast(event)); } void QBluetoothSocket_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothSocket::deleteLater(); } void QBluetoothSocket_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothSocket::disconnectNotify(*static_cast(sign)); } void QBluetoothSocket_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::timerEvent(static_cast(event)); } class MyQBluetoothTransferManager: public QBluetoothTransferManager { public: MyQBluetoothTransferManager(QObject *parent = Q_NULLPTR) : QBluetoothTransferManager(parent) {QBluetoothTransferManager_QBluetoothTransferManager_QRegisterMetaType();}; void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferManager_Finished(this, reply); }; ~MyQBluetoothTransferManager() { callbackQBluetoothTransferManager_DestroyQBluetoothTransferManager(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothTransferManager_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothTransferManager_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferManager_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothTransferManager_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferManager_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothTransferManager_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothTransferManager_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothTransferManager_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferManager_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothTransferManager_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferManager_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothTransferManager*) int QBluetoothTransferManager_QBluetoothTransferManager_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothTransferManager_NewQBluetoothTransferManager(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferManager(static_cast(parent)); } else { return new MyQBluetoothTransferManager(static_cast(parent)); } } void* QBluetoothTransferManager_Put(void* ptr, void* request, void* data) { return static_cast(ptr)->put(*static_cast(request), static_cast(data)); } struct QtBluetooth_PackedString QBluetoothTransferManager_QBluetoothTransferManager_Tr(char* s, char* c, int n) { return ({ QByteArray t66a0c5 = QBluetoothTransferManager::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t66a0c5.prepend("WHITESPACE").constData()+10), t66a0c5.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothTransferManager_QBluetoothTransferManager_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t142d76 = QBluetoothTransferManager::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t142d76.prepend("WHITESPACE").constData()+10), t142d76.size()-10 }; }); } void QBluetoothTransferManager_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothTransferManager::finished), static_cast(ptr), static_cast(&MyQBluetoothTransferManager::Signal_Finished)); } void QBluetoothTransferManager_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothTransferManager::finished), static_cast(ptr), static_cast(&MyQBluetoothTransferManager::Signal_Finished)); } void QBluetoothTransferManager_Finished(void* ptr, void* reply) { static_cast(ptr)->finished(static_cast(reply)); } void QBluetoothTransferManager_DestroyQBluetoothTransferManager(void* ptr) { static_cast(ptr)->~QBluetoothTransferManager(); } void QBluetoothTransferManager_DestroyQBluetoothTransferManagerDefault(void* ptr) { Q_UNUSED(ptr); } void* QBluetoothTransferManager_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothTransferManager::metaObject()); } void* QBluetoothTransferManager___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothTransferManager___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothTransferManager___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferManager___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferManager___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferManager___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferManager___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferManager___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferManager___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferManager___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferManager___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferManager___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferManager___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferManager___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferManager___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothTransferManager_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothTransferManager::event(static_cast(e)); } char QBluetoothTransferManager_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothTransferManager::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothTransferManager_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::childEvent(static_cast(event)); } void QBluetoothTransferManager_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferManager::connectNotify(*static_cast(sign)); } void QBluetoothTransferManager_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::customEvent(static_cast(event)); } void QBluetoothTransferManager_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferManager::deleteLater(); } void QBluetoothTransferManager_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferManager::disconnectNotify(*static_cast(sign)); } void QBluetoothTransferManager_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::timerEvent(static_cast(event)); } class MyQBluetoothTransferReply: public QBluetoothTransferReply { public: MyQBluetoothTransferReply(QObject *parent = Q_NULLPTR) : QBluetoothTransferReply(parent) {QBluetoothTransferReply_QBluetoothTransferReply_QRegisterMetaType();}; void abort() { callbackQBluetoothTransferReply_Abort(this); }; void Signal_Error2(QBluetoothTransferReply::TransferError errorType) { callbackQBluetoothTransferReply_Error2(this, errorType); }; void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferReply_Finished(this, reply); }; void Signal_TransferProgress(qint64 bytesTransferred, qint64 bytesTotal) { callbackQBluetoothTransferReply_TransferProgress(this, bytesTransferred, bytesTotal); }; ~MyQBluetoothTransferReply() { callbackQBluetoothTransferReply_DestroyQBluetoothTransferReply(this); }; QBluetoothTransferReply::TransferError error() const { return static_cast(callbackQBluetoothTransferReply_Error(const_cast(static_cast(this)))); }; QString errorString() const { return ({ QtBluetooth_PackedString tempVal = callbackQBluetoothTransferReply_ErrorString(const_cast(static_cast(this))); QString ret = QString::fromUtf8(tempVal.data, tempVal.len); free(tempVal.data); ret; }); }; bool isFinished() const { return callbackQBluetoothTransferReply_IsFinished(const_cast(static_cast(this))) != 0; }; bool isRunning() const { return callbackQBluetoothTransferReply_IsRunning(const_cast(static_cast(this))) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothTransferReply_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQBluetoothTransferReply_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferReply_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQBluetoothTransferReply_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferReply_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQBluetoothTransferReply_CustomEvent(this, event); }; void deleteLater() { callbackQBluetoothTransferReply_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQBluetoothTransferReply_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferReply_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQBluetoothTransferReply_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferReply_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQBluetoothTransferReply*) int QBluetoothTransferReply_QBluetoothTransferReply_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QBluetoothTransferReply_NewQBluetoothTransferReply(void* parent) { if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else if (dynamic_cast(static_cast(parent))) { return new MyQBluetoothTransferReply(static_cast(parent)); } else { return new MyQBluetoothTransferReply(static_cast(parent)); } } struct QtBluetooth_PackedString QBluetoothTransferReply_QBluetoothTransferReply_Tr(char* s, char* c, int n) { return ({ QByteArray t913eb4 = QBluetoothTransferReply::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t913eb4.prepend("WHITESPACE").constData()+10), t913eb4.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothTransferReply_QBluetoothTransferReply_TrUtf8(char* s, char* c, int n) { return ({ QByteArray tf53614 = QBluetoothTransferReply::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(tf53614.prepend("WHITESPACE").constData()+10), tf53614.size()-10 }; }); } void QBluetoothTransferReply_Abort(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "abort"); } void QBluetoothTransferReply_AbortDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferReply::abort(); } void QBluetoothTransferReply_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QBluetoothTransferReply::error), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_Error2)); } void QBluetoothTransferReply_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothTransferReply::error), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_Error2)); } void QBluetoothTransferReply_Error2(void* ptr, long long errorType) { static_cast(ptr)->error(static_cast(errorType)); } void QBluetoothTransferReply_ConnectFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothTransferReply::finished), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_Finished)); } void QBluetoothTransferReply_DisconnectFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothTransferReply::finished), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_Finished)); } void QBluetoothTransferReply_Finished(void* ptr, void* reply) { static_cast(ptr)->finished(static_cast(reply)); } void QBluetoothTransferReply_SetManager(void* ptr, void* manager) { static_cast(ptr)->setManager(static_cast(manager)); } void QBluetoothTransferReply_SetRequest(void* ptr, void* request) { static_cast(ptr)->setRequest(*static_cast(request)); } void QBluetoothTransferReply_ConnectTransferProgress(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QBluetoothTransferReply::transferProgress), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_TransferProgress)); } void QBluetoothTransferReply_DisconnectTransferProgress(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QBluetoothTransferReply::transferProgress), static_cast(ptr), static_cast(&MyQBluetoothTransferReply::Signal_TransferProgress)); } void QBluetoothTransferReply_TransferProgress(void* ptr, long long bytesTransferred, long long bytesTotal) { static_cast(ptr)->transferProgress(bytesTransferred, bytesTotal); } void QBluetoothTransferReply_DestroyQBluetoothTransferReply(void* ptr) { static_cast(ptr)->~QBluetoothTransferReply(); } void QBluetoothTransferReply_DestroyQBluetoothTransferReplyDefault(void* ptr) { Q_UNUSED(ptr); } void* QBluetoothTransferReply_Manager(void* ptr) { return static_cast(ptr)->manager(); } long long QBluetoothTransferReply_Error(void* ptr) { return static_cast(ptr)->error(); } void* QBluetoothTransferReply_Request(void* ptr) { return new QBluetoothTransferRequest(static_cast(ptr)->request()); } struct QtBluetooth_PackedString QBluetoothTransferReply_ErrorString(void* ptr) { return ({ QByteArray te5ca71 = static_cast(ptr)->errorString().toUtf8(); QtBluetooth_PackedString { const_cast(te5ca71.prepend("WHITESPACE").constData()+10), te5ca71.size()-10 }; }); } char QBluetoothTransferReply_IsFinished(void* ptr) { return static_cast(ptr)->isFinished(); } char QBluetoothTransferReply_IsRunning(void* ptr) { return static_cast(ptr)->isRunning(); } void* QBluetoothTransferReply_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothTransferReply::metaObject()); } void* QBluetoothTransferReply___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QBluetoothTransferReply___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QBluetoothTransferReply___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferReply___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferReply___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferReply___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferReply___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferReply___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferReply___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferReply___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferReply___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferReply___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QBluetoothTransferReply___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QBluetoothTransferReply___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QBluetoothTransferReply___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QBluetoothTransferReply_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothTransferReply::event(static_cast(e)); } char QBluetoothTransferReply_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothTransferReply::eventFilter(static_cast(watched), static_cast(event)); } void QBluetoothTransferReply_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::childEvent(static_cast(event)); } void QBluetoothTransferReply_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferReply::connectNotify(*static_cast(sign)); } void QBluetoothTransferReply_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::customEvent(static_cast(event)); } void QBluetoothTransferReply_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferReply::deleteLater(); } void QBluetoothTransferReply_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferReply::disconnectNotify(*static_cast(sign)); } void QBluetoothTransferReply_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::timerEvent(static_cast(event)); } void* QBluetoothTransferRequest_NewQBluetoothTransferRequest(void* address) { return new QBluetoothTransferRequest(*static_cast(address)); } void* QBluetoothTransferRequest_NewQBluetoothTransferRequest2(void* other) { return new QBluetoothTransferRequest(*static_cast(other)); } void QBluetoothTransferRequest_SetAttribute(void* ptr, long long code, void* value) { static_cast(ptr)->setAttribute(static_cast(code), *static_cast(value)); } void QBluetoothTransferRequest_DestroyQBluetoothTransferRequest(void* ptr) { static_cast(ptr)->~QBluetoothTransferRequest(); } void* QBluetoothTransferRequest_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } void* QBluetoothTransferRequest_Attribute(void* ptr, long long code, void* defaultValue) { return new QVariant(static_cast(ptr)->attribute(static_cast(code), *static_cast(defaultValue))); } void* QBluetoothUuid_NewQBluetoothUuid() { return new QBluetoothUuid(); } void* QBluetoothUuid_NewQBluetoothUuid4(long long uuid) { return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid5(long long uuid) { return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid2(long long uuid) { return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid3(long long uuid) { return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid10(void* uuid) { return new QBluetoothUuid(*static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid9(struct QtBluetooth_PackedString uuid) { return new QBluetoothUuid(QString::fromUtf8(uuid.data, uuid.len)); } void* QBluetoothUuid_NewQBluetoothUuid11(void* uuid) { return new QBluetoothUuid(*static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid6(unsigned short uuid) { return new QBluetoothUuid(uuid); } void* QBluetoothUuid_NewQBluetoothUuid7(unsigned int uuid) { return new QBluetoothUuid(uuid); } struct QtBluetooth_PackedString QBluetoothUuid_QBluetoothUuid_CharacteristicToString(long long uuid) { return ({ QByteArray t44a871 = QBluetoothUuid::characteristicToString(static_cast(uuid)).toUtf8(); QtBluetooth_PackedString { const_cast(t44a871.prepend("WHITESPACE").constData()+10), t44a871.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothUuid_QBluetoothUuid_DescriptorToString(long long uuid) { return ({ QByteArray t3c5c65 = QBluetoothUuid::descriptorToString(static_cast(uuid)).toUtf8(); QtBluetooth_PackedString { const_cast(t3c5c65.prepend("WHITESPACE").constData()+10), t3c5c65.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothUuid_QBluetoothUuid_ProtocolToString(long long uuid) { return ({ QByteArray tc75cac = QBluetoothUuid::protocolToString(static_cast(uuid)).toUtf8(); QtBluetooth_PackedString { const_cast(tc75cac.prepend("WHITESPACE").constData()+10), tc75cac.size()-10 }; }); } struct QtBluetooth_PackedString QBluetoothUuid_QBluetoothUuid_ServiceClassToString(long long uuid) { return ({ QByteArray t3b0299 = QBluetoothUuid::serviceClassToString(static_cast(uuid)).toUtf8(); QtBluetooth_PackedString { const_cast(t3b0299.prepend("WHITESPACE").constData()+10), t3b0299.size()-10 }; }); } void QBluetoothUuid_DestroyQBluetoothUuid(void* ptr) { static_cast(ptr)->~QBluetoothUuid(); } int QBluetoothUuid_MinimumSize(void* ptr) { return static_cast(ptr)->minimumSize(); } unsigned short QBluetoothUuid_ToUInt16(void* ptr, char* ok) { return static_cast(ptr)->toUInt16(reinterpret_cast(ok)); } unsigned int QBluetoothUuid_ToUInt32(void* ptr, char* ok) { return static_cast(ptr)->toUInt32(reinterpret_cast(ok)); } void* QLowEnergyAdvertisingData_NewQLowEnergyAdvertisingData() { return new QLowEnergyAdvertisingData(); } void* QLowEnergyAdvertisingData_NewQLowEnergyAdvertisingData2(void* other) { return new QLowEnergyAdvertisingData(*static_cast(other)); } unsigned short QLowEnergyAdvertisingData_QLowEnergyAdvertisingData_InvalidManufacturerId() { return QLowEnergyAdvertisingData::invalidManufacturerId(); } void QLowEnergyAdvertisingData_SetDiscoverability(void* ptr, long long mode) { static_cast(ptr)->setDiscoverability(static_cast(mode)); } void QLowEnergyAdvertisingData_SetIncludePowerLevel(void* ptr, char doInclude) { static_cast(ptr)->setIncludePowerLevel(doInclude != 0); } void QLowEnergyAdvertisingData_SetLocalName(void* ptr, struct QtBluetooth_PackedString name) { static_cast(ptr)->setLocalName(QString::fromUtf8(name.data, name.len)); } void QLowEnergyAdvertisingData_SetManufacturerData(void* ptr, unsigned short id, void* data) { static_cast(ptr)->setManufacturerData(id, *static_cast(data)); } void QLowEnergyAdvertisingData_SetRawData(void* ptr, void* data) { static_cast(ptr)->setRawData(*static_cast(data)); } void QLowEnergyAdvertisingData_SetServices(void* ptr, void* services) { static_cast(ptr)->setServices(*static_cast*>(services)); } void QLowEnergyAdvertisingData_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyAdvertisingData_DestroyQLowEnergyAdvertisingData(void* ptr) { static_cast(ptr)->~QLowEnergyAdvertisingData(); } void* QLowEnergyAdvertisingData_RawData(void* ptr) { return new QByteArray(static_cast(ptr)->rawData()); } struct QtBluetooth_PackedList QLowEnergyAdvertisingData_Services(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->services()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QLowEnergyAdvertisingData_Discoverability(void* ptr) { return static_cast(ptr)->discoverability(); } struct QtBluetooth_PackedString QLowEnergyAdvertisingData_LocalName(void* ptr) { return ({ QByteArray t61112a = static_cast(ptr)->localName().toUtf8(); QtBluetooth_PackedString { const_cast(t61112a.prepend("WHITESPACE").constData()+10), t61112a.size()-10 }; }); } char QLowEnergyAdvertisingData_IncludePowerLevel(void* ptr) { return static_cast(ptr)->includePowerLevel(); } unsigned short QLowEnergyAdvertisingData_ManufacturerId(void* ptr) { return static_cast(ptr)->manufacturerId(); } void* QLowEnergyAdvertisingData___setServices_services_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyAdvertisingData___setServices_services_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyAdvertisingData___setServices_services_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyAdvertisingData___services_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyAdvertisingData___services_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyAdvertisingData___services_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyAdvertisingParameters_NewQLowEnergyAdvertisingParameters() { return new QLowEnergyAdvertisingParameters(); } void* QLowEnergyAdvertisingParameters_NewQLowEnergyAdvertisingParameters2(void* other) { return new QLowEnergyAdvertisingParameters(*static_cast(other)); } void QLowEnergyAdvertisingParameters_SetInterval(void* ptr, unsigned short minimum, unsigned short maximum) { static_cast(ptr)->setInterval(minimum, maximum); } void QLowEnergyAdvertisingParameters_SetMode(void* ptr, long long mode) { static_cast(ptr)->setMode(static_cast(mode)); } void QLowEnergyAdvertisingParameters_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyAdvertisingParameters_DestroyQLowEnergyAdvertisingParameters(void* ptr) { static_cast(ptr)->~QLowEnergyAdvertisingParameters(); } long long QLowEnergyAdvertisingParameters_FilterPolicy(void* ptr) { return static_cast(ptr)->filterPolicy(); } long long QLowEnergyAdvertisingParameters_Mode(void* ptr) { return static_cast(ptr)->mode(); } int QLowEnergyAdvertisingParameters_MaximumInterval(void* ptr) { return static_cast(ptr)->maximumInterval(); } int QLowEnergyAdvertisingParameters_MinimumInterval(void* ptr) { return static_cast(ptr)->minimumInterval(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic() { return new QLowEnergyCharacteristic(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic2(void* other) { return new QLowEnergyCharacteristic(*static_cast(other)); } void QLowEnergyCharacteristic_DestroyQLowEnergyCharacteristic(void* ptr) { static_cast(ptr)->~QLowEnergyCharacteristic(); } void* QLowEnergyCharacteristic_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyCharacteristic_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } struct QtBluetooth_PackedList QLowEnergyCharacteristic_Descriptors(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->descriptors()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QLowEnergyCharacteristic_Properties(void* ptr) { return static_cast(ptr)->properties(); } void* QLowEnergyCharacteristic_Descriptor(void* ptr, void* uuid) { return new QLowEnergyDescriptor(static_cast(ptr)->descriptor(*static_cast(uuid))); } struct QtBluetooth_PackedString QLowEnergyCharacteristic_Name(void* ptr) { return ({ QByteArray td530f8 = static_cast(ptr)->name().toUtf8(); QtBluetooth_PackedString { const_cast(td530f8.prepend("WHITESPACE").constData()+10), td530f8.size()-10 }; }); } char QLowEnergyCharacteristic_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QLowEnergyCharacteristic___descriptors_atList(void* ptr, int i) { return new QLowEnergyDescriptor(({QLowEnergyDescriptor tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyCharacteristic___descriptors_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyCharacteristic___descriptors_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyCharacteristicData_NewQLowEnergyCharacteristicData() { return new QLowEnergyCharacteristicData(); } void* QLowEnergyCharacteristicData_NewQLowEnergyCharacteristicData2(void* other) { return new QLowEnergyCharacteristicData(*static_cast(other)); } void QLowEnergyCharacteristicData_AddDescriptor(void* ptr, void* descriptor) { static_cast(ptr)->addDescriptor(*static_cast(descriptor)); } void QLowEnergyCharacteristicData_SetDescriptors(void* ptr, void* descriptors) { static_cast(ptr)->setDescriptors(*static_cast*>(descriptors)); } void QLowEnergyCharacteristicData_SetProperties(void* ptr, long long properties) { static_cast(ptr)->setProperties(static_cast(properties)); } void QLowEnergyCharacteristicData_SetReadConstraints(void* ptr, long long constraints) { static_cast(ptr)->setReadConstraints(static_cast(constraints)); } void QLowEnergyCharacteristicData_SetUuid(void* ptr, void* uuid) { static_cast(ptr)->setUuid(*static_cast(uuid)); } void QLowEnergyCharacteristicData_SetValue(void* ptr, void* value) { static_cast(ptr)->setValue(*static_cast(value)); } void QLowEnergyCharacteristicData_SetValueLength(void* ptr, int minimum, int maximum) { static_cast(ptr)->setValueLength(minimum, maximum); } void QLowEnergyCharacteristicData_SetWriteConstraints(void* ptr, long long constraints) { static_cast(ptr)->setWriteConstraints(static_cast(constraints)); } void QLowEnergyCharacteristicData_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyCharacteristicData_DestroyQLowEnergyCharacteristicData(void* ptr) { static_cast(ptr)->~QLowEnergyCharacteristicData(); } long long QLowEnergyCharacteristicData_ReadConstraints(void* ptr) { return static_cast(ptr)->readConstraints(); } long long QLowEnergyCharacteristicData_WriteConstraints(void* ptr) { return static_cast(ptr)->writeConstraints(); } void* QLowEnergyCharacteristicData_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyCharacteristicData_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } struct QtBluetooth_PackedList QLowEnergyCharacteristicData_Descriptors(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->descriptors()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QLowEnergyCharacteristicData_Properties(void* ptr) { return static_cast(ptr)->properties(); } char QLowEnergyCharacteristicData_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } int QLowEnergyCharacteristicData_MaximumValueLength(void* ptr) { return static_cast(ptr)->maximumValueLength(); } int QLowEnergyCharacteristicData_MinimumValueLength(void* ptr) { return static_cast(ptr)->minimumValueLength(); } void* QLowEnergyCharacteristicData___setDescriptors_descriptors_atList(void* ptr, int i) { return new QLowEnergyDescriptorData(({QLowEnergyDescriptorData tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyCharacteristicData___setDescriptors_descriptors_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyCharacteristicData___setDescriptors_descriptors_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyCharacteristicData___descriptors_atList(void* ptr, int i) { return new QLowEnergyDescriptorData(({QLowEnergyDescriptorData tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyCharacteristicData___descriptors_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyCharacteristicData___descriptors_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyConnectionParameters_NewQLowEnergyConnectionParameters() { return new QLowEnergyConnectionParameters(); } void* QLowEnergyConnectionParameters_NewQLowEnergyConnectionParameters2(void* other) { return new QLowEnergyConnectionParameters(*static_cast(other)); } void QLowEnergyConnectionParameters_SetIntervalRange(void* ptr, double minimum, double maximum) { static_cast(ptr)->setIntervalRange(minimum, maximum); } void QLowEnergyConnectionParameters_SetLatency(void* ptr, int latency) { static_cast(ptr)->setLatency(latency); } void QLowEnergyConnectionParameters_SetSupervisionTimeout(void* ptr, int timeout) { static_cast(ptr)->setSupervisionTimeout(timeout); } void QLowEnergyConnectionParameters_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyConnectionParameters_DestroyQLowEnergyConnectionParameters(void* ptr) { static_cast(ptr)->~QLowEnergyConnectionParameters(); } double QLowEnergyConnectionParameters_MaximumInterval(void* ptr) { return static_cast(ptr)->maximumInterval(); } double QLowEnergyConnectionParameters_MinimumInterval(void* ptr) { return static_cast(ptr)->minimumInterval(); } int QLowEnergyConnectionParameters_Latency(void* ptr) { return static_cast(ptr)->latency(); } int QLowEnergyConnectionParameters_SupervisionTimeout(void* ptr) { return static_cast(ptr)->supervisionTimeout(); } class MyQLowEnergyController: public QLowEnergyController { public: void Signal_Connected() { callbackQLowEnergyController_Connected(this); }; void Signal_ConnectionUpdated(const QLowEnergyConnectionParameters & newParameters) { callbackQLowEnergyController_ConnectionUpdated(this, const_cast(&newParameters)); }; void Signal_Disconnected() { callbackQLowEnergyController_Disconnected(this); }; void Signal_DiscoveryFinished() { callbackQLowEnergyController_DiscoveryFinished(this); }; void Signal_Error2(QLowEnergyController::Error newError) { callbackQLowEnergyController_Error2(this, newError); }; void Signal_ServiceDiscovered(const QBluetoothUuid & newService) { callbackQLowEnergyController_ServiceDiscovered(this, const_cast(&newService)); }; void Signal_StateChanged(QLowEnergyController::ControllerState state) { callbackQLowEnergyController_StateChanged(this, state); }; ~MyQLowEnergyController() { callbackQLowEnergyController_DestroyQLowEnergyController(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQLowEnergyController_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQLowEnergyController_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyController_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQLowEnergyController_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQLowEnergyController_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQLowEnergyController_CustomEvent(this, event); }; void deleteLater() { callbackQLowEnergyController_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQLowEnergyController_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyController_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQLowEnergyController_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyController_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQLowEnergyController*) int QLowEnergyController_QLowEnergyController_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} void* QLowEnergyController_QLowEnergyController_CreateCentral(void* remoteDevice, void* parent) { return QLowEnergyController::createCentral(*static_cast(remoteDevice), static_cast(parent)); } void* QLowEnergyController_QLowEnergyController_CreatePeripheral(void* parent) { return QLowEnergyController::createPeripheral(static_cast(parent)); } void* QLowEnergyController_AddService(void* ptr, void* service, void* parent) { return static_cast(ptr)->addService(*static_cast(service), static_cast(parent)); } void* QLowEnergyController_CreateServiceObject(void* ptr, void* serviceUuid, void* parent) { return static_cast(ptr)->createServiceObject(*static_cast(serviceUuid), static_cast(parent)); } struct QtBluetooth_PackedString QLowEnergyController_QLowEnergyController_Tr(char* s, char* c, int n) { return ({ QByteArray ta1a4ff = QLowEnergyController::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(ta1a4ff.prepend("WHITESPACE").constData()+10), ta1a4ff.size()-10 }; }); } struct QtBluetooth_PackedString QLowEnergyController_QLowEnergyController_TrUtf8(char* s, char* c, int n) { return ({ QByteArray t115c4f = QLowEnergyController::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t115c4f.prepend("WHITESPACE").constData()+10), t115c4f.size()-10 }; }); } void QLowEnergyController_ConnectToDevice(void* ptr) { static_cast(ptr)->connectToDevice(); } void QLowEnergyController_ConnectConnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::connected), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Connected)); } void QLowEnergyController_DisconnectConnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::connected), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Connected)); } void QLowEnergyController_Connected(void* ptr) { static_cast(ptr)->connected(); } void QLowEnergyController_ConnectConnectionUpdated(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::connectionUpdated), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_ConnectionUpdated)); } void QLowEnergyController_DisconnectConnectionUpdated(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::connectionUpdated), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_ConnectionUpdated)); } void QLowEnergyController_ConnectionUpdated(void* ptr, void* newParameters) { static_cast(ptr)->connectionUpdated(*static_cast(newParameters)); } void QLowEnergyController_DisconnectFromDevice(void* ptr) { static_cast(ptr)->disconnectFromDevice(); } void QLowEnergyController_ConnectDisconnected(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::disconnected), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Disconnected)); } void QLowEnergyController_DisconnectDisconnected(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::disconnected), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Disconnected)); } void QLowEnergyController_Disconnected(void* ptr) { static_cast(ptr)->disconnected(); } void QLowEnergyController_DiscoverServices(void* ptr) { static_cast(ptr)->discoverServices(); } void QLowEnergyController_ConnectDiscoveryFinished(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::discoveryFinished), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_DiscoveryFinished)); } void QLowEnergyController_DisconnectDiscoveryFinished(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::discoveryFinished), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_DiscoveryFinished)); } void QLowEnergyController_DiscoveryFinished(void* ptr) { static_cast(ptr)->discoveryFinished(); } void QLowEnergyController_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::error), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Error2)); } void QLowEnergyController_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::error), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_Error2)); } void QLowEnergyController_Error2(void* ptr, long long newError) { static_cast(ptr)->error(static_cast(newError)); } void QLowEnergyController_RequestConnectionUpdate(void* ptr, void* parameters) { static_cast(ptr)->requestConnectionUpdate(*static_cast(parameters)); } void QLowEnergyController_ConnectServiceDiscovered(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::serviceDiscovered), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_ServiceDiscovered)); } void QLowEnergyController_DisconnectServiceDiscovered(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::serviceDiscovered), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_ServiceDiscovered)); } void QLowEnergyController_ServiceDiscovered(void* ptr, void* newService) { static_cast(ptr)->serviceDiscovered(*static_cast(newService)); } void QLowEnergyController_SetRemoteAddressType(void* ptr, long long ty) { static_cast(ptr)->setRemoteAddressType(static_cast(ty)); } void QLowEnergyController_StartAdvertising(void* ptr, void* parameters, void* advertisingData, void* scanResponseData) { static_cast(ptr)->startAdvertising(*static_cast(parameters), *static_cast(advertisingData), *static_cast(scanResponseData)); } void QLowEnergyController_ConnectStateChanged(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QLowEnergyController::stateChanged), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_StateChanged)); } void QLowEnergyController_DisconnectStateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyController::stateChanged), static_cast(ptr), static_cast(&MyQLowEnergyController::Signal_StateChanged)); } void QLowEnergyController_StateChanged(void* ptr, long long state) { static_cast(ptr)->stateChanged(static_cast(state)); } void QLowEnergyController_StopAdvertising(void* ptr) { static_cast(ptr)->stopAdvertising(); } void QLowEnergyController_DestroyQLowEnergyController(void* ptr) { static_cast(ptr)->~QLowEnergyController(); } void QLowEnergyController_DestroyQLowEnergyControllerDefault(void* ptr) { Q_UNUSED(ptr); } void* QLowEnergyController_LocalAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->localAddress()); } void* QLowEnergyController_RemoteAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->remoteAddress()); } void* QLowEnergyController_RemoteDeviceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->remoteDeviceUuid()); } struct QtBluetooth_PackedList QLowEnergyController_Services(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->services()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QLowEnergyController_State(void* ptr) { return static_cast(ptr)->state(); } long long QLowEnergyController_Error(void* ptr) { return static_cast(ptr)->error(); } long long QLowEnergyController_RemoteAddressType(void* ptr) { return static_cast(ptr)->remoteAddressType(); } long long QLowEnergyController_Role(void* ptr) { return static_cast(ptr)->role(); } struct QtBluetooth_PackedString QLowEnergyController_ErrorString(void* ptr) { return ({ QByteArray t56a9bd = static_cast(ptr)->errorString().toUtf8(); QtBluetooth_PackedString { const_cast(t56a9bd.prepend("WHITESPACE").constData()+10), t56a9bd.size()-10 }; }); } struct QtBluetooth_PackedString QLowEnergyController_RemoteName(void* ptr) { return ({ QByteArray tf2501f = static_cast(ptr)->remoteName().toUtf8(); QtBluetooth_PackedString { const_cast(tf2501f.prepend("WHITESPACE").constData()+10), tf2501f.size()-10 }; }); } void* QLowEnergyController_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QLowEnergyController::metaObject()); } void* QLowEnergyController___services_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyController___services_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyController___services_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyController___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyController___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyController___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyController___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyController___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyController___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyController___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyController___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyController___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyController___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyController___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyController___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyController___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyController___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyController___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QLowEnergyController_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QLowEnergyController::event(static_cast(e)); } char QLowEnergyController_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QLowEnergyController::eventFilter(static_cast(watched), static_cast(event)); } void QLowEnergyController_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::childEvent(static_cast(event)); } void QLowEnergyController_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyController::connectNotify(*static_cast(sign)); } void QLowEnergyController_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::customEvent(static_cast(event)); } void QLowEnergyController_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QLowEnergyController::deleteLater(); } void QLowEnergyController_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyController::disconnectNotify(*static_cast(sign)); } void QLowEnergyController_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::timerEvent(static_cast(event)); } void* QLowEnergyDescriptor_NewQLowEnergyDescriptor() { return new QLowEnergyDescriptor(); } void* QLowEnergyDescriptor_NewQLowEnergyDescriptor2(void* other) { return new QLowEnergyDescriptor(*static_cast(other)); } void QLowEnergyDescriptor_DestroyQLowEnergyDescriptor(void* ptr) { static_cast(ptr)->~QLowEnergyDescriptor(); } void* QLowEnergyDescriptor_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } long long QLowEnergyDescriptor_Type(void* ptr) { return static_cast(ptr)->type(); } void* QLowEnergyDescriptor_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } struct QtBluetooth_PackedString QLowEnergyDescriptor_Name(void* ptr) { return ({ QByteArray tf5ebfa = static_cast(ptr)->name().toUtf8(); QtBluetooth_PackedString { const_cast(tf5ebfa.prepend("WHITESPACE").constData()+10), tf5ebfa.size()-10 }; }); } char QLowEnergyDescriptor_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QLowEnergyDescriptorData_NewQLowEnergyDescriptorData() { return new QLowEnergyDescriptorData(); } void* QLowEnergyDescriptorData_NewQLowEnergyDescriptorData2(void* uuid, void* value) { return new QLowEnergyDescriptorData(*static_cast(uuid), *static_cast(value)); } void* QLowEnergyDescriptorData_NewQLowEnergyDescriptorData3(void* other) { return new QLowEnergyDescriptorData(*static_cast(other)); } void QLowEnergyDescriptorData_SetReadPermissions(void* ptr, char readable, long long constraints) { static_cast(ptr)->setReadPermissions(readable != 0, static_cast(constraints)); } void QLowEnergyDescriptorData_SetUuid(void* ptr, void* uuid) { static_cast(ptr)->setUuid(*static_cast(uuid)); } void QLowEnergyDescriptorData_SetValue(void* ptr, void* value) { static_cast(ptr)->setValue(*static_cast(value)); } void QLowEnergyDescriptorData_SetWritePermissions(void* ptr, char writable, long long constraints) { static_cast(ptr)->setWritePermissions(writable != 0, static_cast(constraints)); } void QLowEnergyDescriptorData_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyDescriptorData_DestroyQLowEnergyDescriptorData(void* ptr) { static_cast(ptr)->~QLowEnergyDescriptorData(); } long long QLowEnergyDescriptorData_ReadConstraints(void* ptr) { return static_cast(ptr)->readConstraints(); } long long QLowEnergyDescriptorData_WriteConstraints(void* ptr) { return static_cast(ptr)->writeConstraints(); } void* QLowEnergyDescriptorData_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyDescriptorData_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } char QLowEnergyDescriptorData_IsReadable(void* ptr) { return static_cast(ptr)->isReadable(); } char QLowEnergyDescriptorData_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } char QLowEnergyDescriptorData_IsWritable(void* ptr) { return static_cast(ptr)->isWritable(); } class MyQLowEnergyService: public QLowEnergyService { public: void Signal_CharacteristicChanged(const QLowEnergyCharacteristic & characteristic, const QByteArray & newValue) { callbackQLowEnergyService_CharacteristicChanged(this, const_cast(&characteristic), const_cast(&newValue)); }; void Signal_CharacteristicRead(const QLowEnergyCharacteristic & characteristic, const QByteArray & value) { callbackQLowEnergyService_CharacteristicRead(this, const_cast(&characteristic), const_cast(&value)); }; void Signal_CharacteristicWritten(const QLowEnergyCharacteristic & characteristic, const QByteArray & newValue) { callbackQLowEnergyService_CharacteristicWritten(this, const_cast(&characteristic), const_cast(&newValue)); }; void Signal_DescriptorRead(const QLowEnergyDescriptor & descriptor, const QByteArray & value) { callbackQLowEnergyService_DescriptorRead(this, const_cast(&descriptor), const_cast(&value)); }; void Signal_DescriptorWritten(const QLowEnergyDescriptor & descriptor, const QByteArray & newValue) { callbackQLowEnergyService_DescriptorWritten(this, const_cast(&descriptor), const_cast(&newValue)); }; void Signal_Error2(QLowEnergyService::ServiceError newError) { callbackQLowEnergyService_Error2(this, newError); }; void Signal_StateChanged(QLowEnergyService::ServiceState newState) { callbackQLowEnergyService_StateChanged(this, newState); }; ~MyQLowEnergyService() { callbackQLowEnergyService_DestroyQLowEnergyService(this); }; const QMetaObject * metaObject() const { return static_cast(callbackQLowEnergyService_MetaObject(const_cast(static_cast(this)))); }; bool event(QEvent * e) { return callbackQLowEnergyService_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyService_EventFilter(this, watched, event) != 0; }; void childEvent(QChildEvent * event) { callbackQLowEnergyService_ChildEvent(this, event); }; void connectNotify(const QMetaMethod & sign) { callbackQLowEnergyService_ConnectNotify(this, const_cast(&sign)); }; void customEvent(QEvent * event) { callbackQLowEnergyService_CustomEvent(this, event); }; void deleteLater() { callbackQLowEnergyService_DeleteLater(this); }; void Signal_Destroyed(QObject * obj) { callbackQLowEnergyService_Destroyed(this, obj); }; void disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyService_DisconnectNotify(this, const_cast(&sign)); }; void Signal_ObjectNameChanged(const QString & objectName) { QByteArray taa2c4f = objectName.toUtf8(); QtBluetooth_PackedString objectNamePacked = { const_cast(taa2c4f.prepend("WHITESPACE").constData()+10), taa2c4f.size()-10 };callbackQLowEnergyService_ObjectNameChanged(this, objectNamePacked); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyService_TimerEvent(this, event); }; }; Q_DECLARE_METATYPE(MyQLowEnergyService*) int QLowEnergyService_QLowEnergyService_QRegisterMetaType(){qRegisterMetaType(); return qRegisterMetaType();} struct QtBluetooth_PackedString QLowEnergyService_QLowEnergyService_Tr(char* s, char* c, int n) { return ({ QByteArray t2aea55 = QLowEnergyService::tr(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(t2aea55.prepend("WHITESPACE").constData()+10), t2aea55.size()-10 }; }); } struct QtBluetooth_PackedString QLowEnergyService_QLowEnergyService_TrUtf8(char* s, char* c, int n) { return ({ QByteArray tda712b = QLowEnergyService::trUtf8(const_cast(s), const_cast(c), n).toUtf8(); QtBluetooth_PackedString { const_cast(tda712b.prepend("WHITESPACE").constData()+10), tda712b.size()-10 }; }); } void QLowEnergyService_ConnectCharacteristicChanged(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicChanged), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicChanged)); } void QLowEnergyService_DisconnectCharacteristicChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicChanged), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicChanged)); } void QLowEnergyService_CharacteristicChanged(void* ptr, void* characteristic, void* newValue) { static_cast(ptr)->characteristicChanged(*static_cast(characteristic), *static_cast(newValue)); } void QLowEnergyService_ConnectCharacteristicRead(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicRead), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicRead)); } void QLowEnergyService_DisconnectCharacteristicRead(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicRead), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicRead)); } void QLowEnergyService_CharacteristicRead(void* ptr, void* characteristic, void* value) { static_cast(ptr)->characteristicRead(*static_cast(characteristic), *static_cast(value)); } void QLowEnergyService_ConnectCharacteristicWritten(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicWritten), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicWritten)); } void QLowEnergyService_DisconnectCharacteristicWritten(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::characteristicWritten), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_CharacteristicWritten)); } void QLowEnergyService_CharacteristicWritten(void* ptr, void* characteristic, void* newValue) { static_cast(ptr)->characteristicWritten(*static_cast(characteristic), *static_cast(newValue)); } void QLowEnergyService_ConnectDescriptorRead(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::descriptorRead), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_DescriptorRead)); } void QLowEnergyService_DisconnectDescriptorRead(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::descriptorRead), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_DescriptorRead)); } void QLowEnergyService_DescriptorRead(void* ptr, void* descriptor, void* value) { static_cast(ptr)->descriptorRead(*static_cast(descriptor), *static_cast(value)); } void QLowEnergyService_ConnectDescriptorWritten(void* ptr) { QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::descriptorWritten), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_DescriptorWritten)); } void QLowEnergyService_DisconnectDescriptorWritten(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::descriptorWritten), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_DescriptorWritten)); } void QLowEnergyService_DescriptorWritten(void* ptr, void* descriptor, void* newValue) { static_cast(ptr)->descriptorWritten(*static_cast(descriptor), *static_cast(newValue)); } void QLowEnergyService_DiscoverDetails(void* ptr) { static_cast(ptr)->discoverDetails(); } void QLowEnergyService_ConnectError2(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::error), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_Error2)); } void QLowEnergyService_DisconnectError2(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::error), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_Error2)); } void QLowEnergyService_Error2(void* ptr, long long newError) { static_cast(ptr)->error(static_cast(newError)); } void QLowEnergyService_ReadCharacteristic(void* ptr, void* characteristic) { static_cast(ptr)->readCharacteristic(*static_cast(characteristic)); } void QLowEnergyService_ReadDescriptor(void* ptr, void* descriptor) { static_cast(ptr)->readDescriptor(*static_cast(descriptor)); } void QLowEnergyService_ConnectStateChanged(void* ptr) { qRegisterMetaType(); QObject::connect(static_cast(ptr), static_cast(&QLowEnergyService::stateChanged), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_StateChanged)); } void QLowEnergyService_DisconnectStateChanged(void* ptr) { QObject::disconnect(static_cast(ptr), static_cast(&QLowEnergyService::stateChanged), static_cast(ptr), static_cast(&MyQLowEnergyService::Signal_StateChanged)); } void QLowEnergyService_StateChanged(void* ptr, long long newState) { static_cast(ptr)->stateChanged(static_cast(newState)); } void QLowEnergyService_WriteCharacteristic(void* ptr, void* characteristic, void* newValue, long long mode) { static_cast(ptr)->writeCharacteristic(*static_cast(characteristic), *static_cast(newValue), static_cast(mode)); } void QLowEnergyService_WriteDescriptor(void* ptr, void* descriptor, void* newValue) { static_cast(ptr)->writeDescriptor(*static_cast(descriptor), *static_cast(newValue)); } void QLowEnergyService_DestroyQLowEnergyService(void* ptr) { static_cast(ptr)->~QLowEnergyService(); } void QLowEnergyService_DestroyQLowEnergyServiceDefault(void* ptr) { Q_UNUSED(ptr); } void* QLowEnergyService_ServiceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->serviceUuid()); } struct QtBluetooth_PackedList QLowEnergyService_IncludedServices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->includedServices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedList QLowEnergyService_Characteristics(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->characteristics()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } void* QLowEnergyService_Characteristic(void* ptr, void* uuid) { return new QLowEnergyCharacteristic(static_cast(ptr)->characteristic(*static_cast(uuid))); } long long QLowEnergyService_Error(void* ptr) { return static_cast(ptr)->error(); } long long QLowEnergyService_State(void* ptr) { return static_cast(ptr)->state(); } long long QLowEnergyService_Type(void* ptr) { return static_cast(ptr)->type(); } struct QtBluetooth_PackedString QLowEnergyService_ServiceName(void* ptr) { return ({ QByteArray tf34544 = static_cast(ptr)->serviceName().toUtf8(); QtBluetooth_PackedString { const_cast(tf34544.prepend("WHITESPACE").constData()+10), tf34544.size()-10 }; }); } char QLowEnergyService_Contains(void* ptr, void* characteristic) { return static_cast(ptr)->contains(*static_cast(characteristic)); } char QLowEnergyService_Contains2(void* ptr, void* descriptor) { return static_cast(ptr)->contains(*static_cast(descriptor)); } void* QLowEnergyService_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QLowEnergyService::metaObject()); } void* QLowEnergyService___includedServices_atList(void* ptr, int i) { return new QBluetoothUuid(({QBluetoothUuid tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyService___includedServices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyService___includedServices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___characteristics_atList(void* ptr, int i) { return new QLowEnergyCharacteristic(({QLowEnergyCharacteristic tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyService___characteristics_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyService___characteristics_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___dynamicPropertyNames_atList(void* ptr, int i) { return new QByteArray(({QByteArray tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyService___dynamicPropertyNames_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyService___dynamicPropertyNames_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___findChildren_atList2(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyService___findChildren_setList2(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyService___findChildren_newList2(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___findChildren_atList3(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyService___findChildren_setList3(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyService___findChildren_newList3(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___findChildren_atList(void* ptr, int i) { return ({QObject* tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyService___findChildren_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyService___findChildren_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyService___children_atList(void* ptr, int i) { return ({QObject * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyService___children_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyService___children_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } char QLowEnergyService_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QLowEnergyService::event(static_cast(e)); } char QLowEnergyService_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QLowEnergyService::eventFilter(static_cast(watched), static_cast(event)); } void QLowEnergyService_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::childEvent(static_cast(event)); } void QLowEnergyService_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyService::connectNotify(*static_cast(sign)); } void QLowEnergyService_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::customEvent(static_cast(event)); } void QLowEnergyService_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QLowEnergyService::deleteLater(); } void QLowEnergyService_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyService::disconnectNotify(*static_cast(sign)); } void QLowEnergyService_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::timerEvent(static_cast(event)); } void* QLowEnergyServiceData_NewQLowEnergyServiceData() { return new QLowEnergyServiceData(); } void* QLowEnergyServiceData_NewQLowEnergyServiceData2(void* other) { return new QLowEnergyServiceData(*static_cast(other)); } void QLowEnergyServiceData_AddCharacteristic(void* ptr, void* characteristic) { static_cast(ptr)->addCharacteristic(*static_cast(characteristic)); } void QLowEnergyServiceData_AddIncludedService(void* ptr, void* service) { static_cast(ptr)->addIncludedService(static_cast(service)); } void QLowEnergyServiceData_SetCharacteristics(void* ptr, void* characteristics) { static_cast(ptr)->setCharacteristics(*static_cast*>(characteristics)); } void QLowEnergyServiceData_SetIncludedServices(void* ptr, void* services) { static_cast(ptr)->setIncludedServices(*static_cast*>(services)); } void QLowEnergyServiceData_SetType(void* ptr, long long ty) { static_cast(ptr)->setType(static_cast(ty)); } void QLowEnergyServiceData_SetUuid(void* ptr, void* uuid) { static_cast(ptr)->setUuid(*static_cast(uuid)); } void QLowEnergyServiceData_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyServiceData_DestroyQLowEnergyServiceData(void* ptr) { static_cast(ptr)->~QLowEnergyServiceData(); } void* QLowEnergyServiceData_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } struct QtBluetooth_PackedList QLowEnergyServiceData_Characteristics(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->characteristics()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedList QLowEnergyServiceData_IncludedServices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->includedServices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QLowEnergyServiceData_Type(void* ptr) { return static_cast(ptr)->type(); } char QLowEnergyServiceData_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void* QLowEnergyServiceData___setCharacteristics_characteristics_atList(void* ptr, int i) { return new QLowEnergyCharacteristicData(({QLowEnergyCharacteristicData tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyServiceData___setCharacteristics_characteristics_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyServiceData___setCharacteristics_characteristics_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyServiceData___setIncludedServices_services_atList(void* ptr, int i) { return ({QLowEnergyService * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyServiceData___setIncludedServices_services_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyServiceData___setIncludedServices_services_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyServiceData___characteristics_atList(void* ptr, int i) { return new QLowEnergyCharacteristicData(({QLowEnergyCharacteristicData tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; })); } void QLowEnergyServiceData___characteristics_setList(void* ptr, void* i) { static_cast*>(ptr)->append(*static_cast(i)); } void* QLowEnergyServiceData___characteristics_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); } void* QLowEnergyServiceData___includedServices_atList(void* ptr, int i) { return ({QLowEnergyService * tmp = static_cast*>(ptr)->at(i); if (i == static_cast*>(ptr)->size()-1) { static_cast*>(ptr)->~QList(); free(ptr); }; tmp; }); } void QLowEnergyServiceData___includedServices_setList(void* ptr, void* i) { static_cast*>(ptr)->append(static_cast(i)); } void* QLowEnergyServiceData___includedServices_newList(void* ptr) { Q_UNUSED(ptr); return new QList(); }