// +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 void* QBluetoothAddress_NewQBluetoothAddress() { return new QBluetoothAddress(); } void* QBluetoothAddress_NewQBluetoothAddress4(void* other) { return new QBluetoothAddress(*static_cast(other)); } void* QBluetoothAddress_NewQBluetoothAddress3(char* address) { return new QBluetoothAddress(QString(address)); } void* QBluetoothAddress_NewQBluetoothAddress2(unsigned long long address) { return new QBluetoothAddress(address); } void QBluetoothAddress_Clear(void* ptr) { static_cast(ptr)->clear(); } char QBluetoothAddress_IsNull(void* ptr) { return static_cast(ptr)->isNull(); } 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 }; }); } unsigned long long QBluetoothAddress_ToUInt64(void* ptr) { return static_cast(ptr)->toUInt64(); } void QBluetoothAddress_DestroyQBluetoothAddress(void* ptr) { static_cast(ptr)->~QBluetoothAddress(); } class MyQBluetoothDeviceDiscoveryAgent: public QBluetoothDeviceDiscoveryAgent { public: MyQBluetoothDeviceDiscoveryAgent(QObject *parent) : QBluetoothDeviceDiscoveryAgent(parent) {}; MyQBluetoothDeviceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent) : QBluetoothDeviceDiscoveryAgent(deviceAdapter, parent) {}; void Signal_Canceled() { callbackQBluetoothDeviceDiscoveryAgent_Canceled(this); }; void Signal_DeviceDiscovered(const QBluetoothDeviceInfo & info) { callbackQBluetoothDeviceDiscoveryAgent_DeviceDiscovered(this, const_cast(&info)); }; void Signal_Error2(QBluetoothDeviceDiscoveryAgent::Error error) { callbackQBluetoothDeviceDiscoveryAgent_Error2(this, error); }; void Signal_Finished() { callbackQBluetoothDeviceDiscoveryAgent_Finished(this); }; void start() { callbackQBluetoothDeviceDiscoveryAgent_Start(this); }; void stop() { callbackQBluetoothDeviceDiscoveryAgent_Stop(this); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothDeviceDiscoveryAgent_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothDeviceDiscoveryAgent_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothDeviceDiscoveryAgent_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothDeviceDiscoveryAgent_MetaObject(const_cast(this))); }; }; 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_ConnectError2(void* ptr) { 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_NewQBluetoothDeviceDiscoveryAgent(void* parent) { return new MyQBluetoothDeviceDiscoveryAgent(static_cast(parent)); } void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent2(void* deviceAdapter, void* parent) { return new MyQBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } struct QtBluetooth_PackedList QBluetoothDeviceDiscoveryAgent_DiscoveredDevices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->discoveredDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QBluetoothDeviceDiscoveryAgent_Error(void* ptr) { return static_cast(ptr)->error(); } 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 }; }); } long long QBluetoothDeviceDiscoveryAgent_InquiryType(void* ptr) { return static_cast(ptr)->inquiryType(); } char QBluetoothDeviceDiscoveryAgent_IsActive(void* ptr) { return static_cast(ptr)->isActive(); } void QBluetoothDeviceDiscoveryAgent_SetInquiryType(void* ptr, long long ty) { static_cast(ptr)->setInquiryType(static_cast(ty)); } void QBluetoothDeviceDiscoveryAgent_Start(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "start"); } void QBluetoothDeviceDiscoveryAgent_StartDefault(void* ptr) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::start(); } 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_discoveredDevices_atList(void* ptr, int i) { return new QBluetoothDeviceInfo(static_cast*>(ptr)->at(i)); } void QBluetoothDeviceDiscoveryAgent_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::timerEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::childEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothDeviceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::connectNotify(*static_cast(sign)); } void QBluetoothDeviceDiscoveryAgent_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::customEvent(static_cast(event)); } void QBluetoothDeviceDiscoveryAgent_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothDeviceDiscoveryAgent_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::deleteLater(); } void QBluetoothDeviceDiscoveryAgent_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothDeviceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::disconnectNotify(*static_cast(sign)); } char QBluetoothDeviceDiscoveryAgent_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothDeviceDiscoveryAgent_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::event(static_cast(e)); } char QBluetoothDeviceDiscoveryAgent_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothDeviceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothDeviceDiscoveryAgent_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothDeviceDiscoveryAgent_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothDeviceDiscoveryAgent::metaObject()); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo() { return new QBluetoothDeviceInfo(); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo2(void* address, char* name, unsigned int classOfDevice) { return new QBluetoothDeviceInfo(*static_cast(address), QString(name), classOfDevice); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo4(void* other) { return new QBluetoothDeviceInfo(*static_cast(other)); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo3(void* uuid, char* name, unsigned int classOfDevice) { return new QBluetoothDeviceInfo(*static_cast(uuid), QString(name), classOfDevice); } void* QBluetoothDeviceInfo_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } long long QBluetoothDeviceInfo_CoreConfigurations(void* ptr) { return static_cast(ptr)->coreConfigurations(); } void* QBluetoothDeviceInfo_DeviceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->deviceUuid()); } char QBluetoothDeviceInfo_IsCached(void* ptr) { return static_cast(ptr)->isCached(); } char QBluetoothDeviceInfo_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } long long QBluetoothDeviceInfo_MajorDeviceClass(void* ptr) { return static_cast(ptr)->majorDeviceClass(); } 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 }; }); } 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 }; }); } short QBluetoothDeviceInfo_Rssi(void* ptr) { return static_cast(ptr)->rssi(); } long long QBluetoothDeviceInfo_ServiceClasses(void* ptr) { return static_cast(ptr)->serviceClasses(); } long long QBluetoothDeviceInfo_ServiceUuidsCompleteness(void* ptr) { return static_cast(ptr)->serviceUuidsCompleteness(); } 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_DestroyQBluetoothDeviceInfo(void* ptr) { static_cast(ptr)->~QBluetoothDeviceInfo(); } void* QBluetoothDeviceInfo_serviceUuids_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } void* QBluetoothHostInfo_NewQBluetoothHostInfo() { return new QBluetoothHostInfo(); } void* QBluetoothHostInfo_NewQBluetoothHostInfo2(void* other) { return new QBluetoothHostInfo(*static_cast(other)); } 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 }; }); } void QBluetoothHostInfo_SetAddress(void* ptr, void* address) { static_cast(ptr)->setAddress(*static_cast(address)); } void QBluetoothHostInfo_SetName(void* ptr, char* name) { static_cast(ptr)->setName(QString(name)); } void QBluetoothHostInfo_DestroyQBluetoothHostInfo(void* ptr) { static_cast(ptr)->~QBluetoothHostInfo(); } class MyQBluetoothLocalDevice: public QBluetoothLocalDevice { public: MyQBluetoothLocalDevice(QObject *parent) : QBluetoothLocalDevice(parent) {}; MyQBluetoothLocalDevice(const QBluetoothAddress &address, QObject *parent) : QBluetoothLocalDevice(address, parent) {}; 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 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); }; void pairingConfirmation(bool accept) { callbackQBluetoothLocalDevice_PairingConfirmation(this, accept); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothLocalDevice_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothLocalDevice_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothLocalDevice_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothLocalDevice_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothLocalDevice_MetaObject(const_cast(this))); }; }; 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) { 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) { 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_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, char* pin) { static_cast(ptr)->pairingDisplayConfirmation(*static_cast(address), QString(pin)); } 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, char* pin) { static_cast(ptr)->pairingDisplayPinCode(*static_cast(address), QString(pin)); } void QBluetoothLocalDevice_ConnectPairingFinished(void* ptr) { 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)); } char QBluetoothLocalDevice_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } void QBluetoothLocalDevice_DestroyQBluetoothLocalDevice(void* ptr) { static_cast(ptr)->~QBluetoothLocalDevice(); } void QBluetoothLocalDevice_DestroyQBluetoothLocalDeviceDefault(void* ptr) { } void* QBluetoothLocalDevice_NewQBluetoothLocalDevice(void* parent) { return new MyQBluetoothLocalDevice(static_cast(parent)); } void* QBluetoothLocalDevice_NewQBluetoothLocalDevice2(void* address, void* parent) { return new MyQBluetoothLocalDevice(*static_cast(address), static_cast(parent)); } void* QBluetoothLocalDevice_Address(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->address()); } struct QtBluetooth_PackedList QBluetoothLocalDevice_QBluetoothLocalDevice_AllDevices() { return ({ QList* tmpValue = new QList(QBluetoothLocalDevice::allDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } struct QtBluetooth_PackedList QBluetoothLocalDevice_ConnectedDevices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->connectedDevices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QBluetoothLocalDevice_HostMode(void* ptr) { return static_cast(ptr)->hostMode(); } 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 }; }); } void QBluetoothLocalDevice_PairingConfirmation(void* ptr, char accept) { QMetaObject::invokeMethod(static_cast(ptr), "pairingConfirmation", Q_ARG(bool, accept != 0)); } void QBluetoothLocalDevice_PairingConfirmationDefault(void* ptr, char accept) { static_cast(ptr)->QBluetoothLocalDevice::pairingConfirmation(accept != 0); } long long QBluetoothLocalDevice_PairingStatus(void* ptr, void* address) { return static_cast(ptr)->pairingStatus(*static_cast(address)); } 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_allDevices_atList(void* ptr, int i) { return new QBluetoothHostInfo(static_cast*>(ptr)->at(i)); } void* QBluetoothLocalDevice_connectedDevices_atList(void* ptr, int i) { return new QBluetoothAddress(static_cast*>(ptr)->at(i)); } void QBluetoothLocalDevice_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothLocalDevice_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::timerEvent(static_cast(event)); } void QBluetoothLocalDevice_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothLocalDevice_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::childEvent(static_cast(event)); } void QBluetoothLocalDevice_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothLocalDevice_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothLocalDevice::connectNotify(*static_cast(sign)); } void QBluetoothLocalDevice_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothLocalDevice_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothLocalDevice::customEvent(static_cast(event)); } void QBluetoothLocalDevice_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothLocalDevice_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothLocalDevice::deleteLater(); } void QBluetoothLocalDevice_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothLocalDevice_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothLocalDevice::disconnectNotify(*static_cast(sign)); } char QBluetoothLocalDevice_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothLocalDevice_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothLocalDevice::event(static_cast(e)); } char QBluetoothLocalDevice_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothLocalDevice_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothLocalDevice::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothLocalDevice_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothLocalDevice_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothLocalDevice::metaObject()); } class MyQBluetoothServer: public QBluetoothServer { public: MyQBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent) : QBluetoothServer(serverType, parent) {}; void Signal_Error2(QBluetoothServer::Error error) { callbackQBluetoothServer_Error2(this, error); }; void Signal_NewConnection() { callbackQBluetoothServer_NewConnection(this); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServer_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServer_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothServer_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServer_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothServer_MetaObject(const_cast(this))); }; }; void* QBluetoothServer_NewQBluetoothServer(long long serverType, void* parent) { return new MyQBluetoothServer(static_cast(serverType), static_cast(parent)); } void QBluetoothServer_ConnectError2(void* ptr) { 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(); } long long QBluetoothServer_Error(void* ptr) { return static_cast(ptr)->error(); } char QBluetoothServer_IsListening(void* ptr) { return static_cast(ptr)->isListening(); } void* QBluetoothServer_Listen2(void* ptr, void* uuid, char* serviceName) { return new QBluetoothServiceInfo(static_cast(ptr)->listen(*static_cast(uuid), QString(serviceName))); } int QBluetoothServer_MaxPendingConnections(void* ptr) { return static_cast(ptr)->maxPendingConnections(); } long long QBluetoothServer_ServerType(void* ptr) { return static_cast(ptr)->serverType(); } void QBluetoothServer_DestroyQBluetoothServer(void* ptr) { static_cast(ptr)->~QBluetoothServer(); } void QBluetoothServer_Close(void* ptr) { static_cast(ptr)->close(); } char QBluetoothServer_HasPendingConnections(void* ptr) { return static_cast(ptr)->hasPendingConnections(); } char QBluetoothServer_Listen(void* ptr, void* address, unsigned short port) { return static_cast(ptr)->listen(*static_cast(address), port); } void* QBluetoothServer_NextPendingConnection(void* ptr) { return static_cast(ptr)->nextPendingConnection(); } long long QBluetoothServer_SecurityFlags(void* ptr) { return static_cast(ptr)->securityFlags(); } void* QBluetoothServer_ServerAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->serverAddress()); } unsigned short QBluetoothServer_ServerPort(void* ptr) { return static_cast(ptr)->serverPort(); } 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_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothServer_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::timerEvent(static_cast(event)); } void QBluetoothServer_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothServer_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::childEvent(static_cast(event)); } void QBluetoothServer_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothServer_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServer::connectNotify(*static_cast(sign)); } void QBluetoothServer_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothServer_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServer::customEvent(static_cast(event)); } void QBluetoothServer_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothServer_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothServer::deleteLater(); } void QBluetoothServer_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothServer_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServer::disconnectNotify(*static_cast(sign)); } char QBluetoothServer_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothServer_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothServer::event(static_cast(e)); } char QBluetoothServer_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothServer_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothServer::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothServer_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothServer_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothServer::metaObject()); } class MyQBluetoothServiceDiscoveryAgent: public QBluetoothServiceDiscoveryAgent { public: MyQBluetoothServiceDiscoveryAgent(QObject *parent) : QBluetoothServiceDiscoveryAgent(parent) {}; MyQBluetoothServiceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent) : QBluetoothServiceDiscoveryAgent(deviceAdapter, parent) {}; void Signal_Canceled() { callbackQBluetoothServiceDiscoveryAgent_Canceled(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 clear() { callbackQBluetoothServiceDiscoveryAgent_Clear(this); }; void start(QBluetoothServiceDiscoveryAgent::DiscoveryMode mode) { callbackQBluetoothServiceDiscoveryAgent_Start(this, mode); }; void stop() { callbackQBluetoothServiceDiscoveryAgent_Stop(this); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServiceDiscoveryAgent_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServiceDiscoveryAgent_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothServiceDiscoveryAgent_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServiceDiscoveryAgent_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothServiceDiscoveryAgent_MetaObject(const_cast(this))); }; }; 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_ConnectError2(void* ptr) { 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_NewQBluetoothServiceDiscoveryAgent(void* parent) { return new MyQBluetoothServiceDiscoveryAgent(static_cast(parent)); } void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent2(void* deviceAdapter, void* parent) { return new MyQBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } void QBluetoothServiceDiscoveryAgent_Clear(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "clear"); } void QBluetoothServiceDiscoveryAgent_ClearDefault(void* ptr) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::clear(); } struct QtBluetooth_PackedList QBluetoothServiceDiscoveryAgent_DiscoveredServices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->discoveredServices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } long long QBluetoothServiceDiscoveryAgent_Error(void* ptr) { return static_cast(ptr)->error(); } 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_RemoteAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->remoteAddress()); } char QBluetoothServiceDiscoveryAgent_SetRemoteAddress(void* ptr, void* address) { return static_cast(ptr)->setRemoteAddress(*static_cast(address)); } void QBluetoothServiceDiscoveryAgent_SetUuidFilter2(void* ptr, void* uuid) { static_cast(ptr)->setUuidFilter(*static_cast(uuid)); } void QBluetoothServiceDiscoveryAgent_Start(void* ptr, long long mode) { 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(); } struct QtBluetooth_PackedList QBluetoothServiceDiscoveryAgent_UuidFilter(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->uuidFilter()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(void* ptr) { static_cast(ptr)->~QBluetoothServiceDiscoveryAgent(); } void* QBluetoothServiceDiscoveryAgent_discoveredServices_atList(void* ptr, int i) { return new QBluetoothServiceInfo(static_cast*>(ptr)->at(i)); } void* QBluetoothServiceDiscoveryAgent_uuidFilter_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } void QBluetoothServiceDiscoveryAgent_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::timerEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::childEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothServiceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::connectNotify(*static_cast(sign)); } void QBluetoothServiceDiscoveryAgent_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::customEvent(static_cast(event)); } void QBluetoothServiceDiscoveryAgent_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothServiceDiscoveryAgent_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::deleteLater(); } void QBluetoothServiceDiscoveryAgent_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothServiceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothServiceDiscoveryAgent::disconnectNotify(*static_cast(sign)); } char QBluetoothServiceDiscoveryAgent_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothServiceDiscoveryAgent_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothServiceDiscoveryAgent::event(static_cast(e)); } char QBluetoothServiceDiscoveryAgent_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothServiceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothServiceDiscoveryAgent::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothServiceDiscoveryAgent_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothServiceDiscoveryAgent_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothServiceDiscoveryAgent::metaObject()); } int QBluetoothServiceInfo_ServiceName_Type() { return QBluetoothServiceInfo::ServiceName; } int QBluetoothServiceInfo_ServiceDescription_Type() { return QBluetoothServiceInfo::ServiceDescription; } int QBluetoothServiceInfo_ServiceProvider_Type() { return QBluetoothServiceInfo::ServiceProvider; } 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 }; }); } 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_ServiceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->serviceUuid()); } void QBluetoothServiceInfo_SetAttribute2(void* ptr, unsigned short attributeId, void* value) { static_cast(ptr)->setAttribute(attributeId, *static_cast(value)); } void QBluetoothServiceInfo_SetServiceAvailability(void* ptr, char* availability) { static_cast(ptr)->setServiceAvailability(*static_cast(static_cast(availability))); } void QBluetoothServiceInfo_SetServiceDescription(void* ptr, char* description) { static_cast(ptr)->setServiceDescription(QString(description)); } void QBluetoothServiceInfo_SetServiceName(void* ptr, char* name) { static_cast(ptr)->setServiceName(QString(name)); } void QBluetoothServiceInfo_SetServiceProvider(void* ptr, char* provider) { static_cast(ptr)->setServiceProvider(QString(provider)); } void QBluetoothServiceInfo_SetServiceUuid(void* ptr, void* uuid) { static_cast(ptr)->setServiceUuid(*static_cast(uuid)); } void* QBluetoothServiceInfo_NewQBluetoothServiceInfo() { return new QBluetoothServiceInfo(); } void* QBluetoothServiceInfo_NewQBluetoothServiceInfo2(void* other) { return new QBluetoothServiceInfo(*static_cast(other)); } 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); } void* QBluetoothServiceInfo_Device(void* ptr) { return new QBluetoothDeviceInfo(static_cast(ptr)->device()); } 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(); } char QBluetoothServiceInfo_RegisterService(void* ptr, void* localAdapter) { return static_cast(ptr)->registerService(*static_cast(localAdapter)); } void QBluetoothServiceInfo_RemoveAttribute(void* ptr, unsigned short attributeId) { static_cast(ptr)->removeAttribute(attributeId); } int QBluetoothServiceInfo_ServerChannel(void* ptr) { return static_cast(ptr)->serverChannel(); } struct QtBluetooth_PackedList QBluetoothServiceInfo_ServiceClassUuids(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->serviceClassUuids()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } 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)); } long long QBluetoothServiceInfo_SocketProtocol(void* ptr) { return static_cast(ptr)->socketProtocol(); } char QBluetoothServiceInfo_UnregisterService(void* ptr) { return static_cast(ptr)->unregisterService(); } void QBluetoothServiceInfo_DestroyQBluetoothServiceInfo(void* ptr) { static_cast(ptr)->~QBluetoothServiceInfo(); } void* QBluetoothServiceInfo_serviceClassUuids_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } class MyQBluetoothSocket: public QBluetoothSocket { public: MyQBluetoothSocket(QBluetoothServiceInfo::Protocol socketType, QObject *parent) : QBluetoothSocket(socketType, parent) {}; MyQBluetoothSocket(QObject *parent) : QBluetoothSocket(parent) {}; 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); }; qint64 bytesAvailable() const { return callbackQBluetoothSocket_BytesAvailable(const_cast(this)); }; qint64 bytesToWrite() const { return callbackQBluetoothSocket_BytesToWrite(const_cast(this)); }; bool canReadLine() const { return callbackQBluetoothSocket_CanReadLine(const_cast(this)) != 0; }; void close() { callbackQBluetoothSocket_Close(this); }; bool isSequential() const { return callbackQBluetoothSocket_IsSequential(const_cast(this)) != 0; }; 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); }; ~MyQBluetoothSocket() { callbackQBluetoothSocket_DestroyQBluetoothSocket(this); }; bool atEnd() const { return callbackQBluetoothSocket_AtEnd(const_cast(this)) != 0; }; bool open(QIODevice::OpenMode mode) { return callbackQBluetoothSocket_Open(this, mode) != 0; }; qint64 pos() const { return callbackQBluetoothSocket_Pos(const_cast(this)); }; qint64 readLineData(char * data, qint64 maxSize) { QtBluetooth_PackedString dataPacked = { data, maxSize };return callbackQBluetoothSocket_ReadLineData(this, dataPacked, maxSize); }; bool reset() { return callbackQBluetoothSocket_Reset(this) != 0; }; bool seek(qint64 pos) { return callbackQBluetoothSocket_Seek(this, pos) != 0; }; qint64 size() const { return callbackQBluetoothSocket_Size(const_cast(this)); }; bool waitForBytesWritten(int msecs) { return callbackQBluetoothSocket_WaitForBytesWritten(this, msecs) != 0; }; bool waitForReadyRead(int msecs) { return callbackQBluetoothSocket_WaitForReadyRead(this, msecs) != 0; }; void timerEvent(QTimerEvent * event) { callbackQBluetoothSocket_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothSocket_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothSocket_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothSocket_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothSocket_MetaObject(const_cast(this))); }; }; 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_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_ConnectError2(void* ptr) { 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_ConnectStateChanged(void* ptr) { 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_NewQBluetoothSocket(long long socketType, void* parent) { return new MyQBluetoothSocket(static_cast(socketType), static_cast(parent)); } void* QBluetoothSocket_NewQBluetoothSocket2(void* parent) { return new MyQBluetoothSocket(static_cast(parent)); } void QBluetoothSocket_Abort(void* ptr) { static_cast(ptr)->abort(); } long long QBluetoothSocket_BytesAvailable(void* ptr) { return static_cast(ptr)->bytesAvailable(); } long long QBluetoothSocket_BytesAvailableDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::bytesAvailable(); } long long QBluetoothSocket_BytesToWrite(void* ptr) { return static_cast(ptr)->bytesToWrite(); } long long QBluetoothSocket_BytesToWriteDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::bytesToWrite(); } char QBluetoothSocket_CanReadLine(void* ptr) { return static_cast(ptr)->canReadLine(); } char QBluetoothSocket_CanReadLineDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::canReadLine(); } void QBluetoothSocket_Close(void* ptr) { static_cast(ptr)->close(); } 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_DisconnectFromService(void* ptr) { static_cast(ptr)->disconnectFromService(); } void QBluetoothSocket_DoDeviceDiscovery(void* ptr, void* service, long long openMode) { static_cast(ptr)->doDeviceDiscovery(*static_cast(service), static_cast(openMode)); } long long QBluetoothSocket_Error(void* ptr) { return static_cast(ptr)->error(); } struct QtBluetooth_PackedString QBluetoothSocket_ErrorString(void* ptr) { return ({ QByteArray t6109ad = static_cast(ptr)->errorString().toUtf8(); QtBluetooth_PackedString { const_cast(t6109ad.prepend("WHITESPACE").constData()+10), t6109ad.size()-10 }; }); } char QBluetoothSocket_IsSequential(void* ptr) { return static_cast(ptr)->isSequential(); } char QBluetoothSocket_IsSequentialDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::isSequential(); } void* QBluetoothSocket_LocalAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->localAddress()); } 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 }; }); } unsigned short QBluetoothSocket_LocalPort(void* ptr) { return static_cast(ptr)->localPort(); } void* QBluetoothSocket_PeerAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->peerAddress()); } 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 }; }); } unsigned short QBluetoothSocket_PeerPort(void* ptr) { return static_cast(ptr)->peerPort(); } long long QBluetoothSocket_PreferredSecurityFlags(void* ptr) { return static_cast(ptr)->preferredSecurityFlags(); } 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); } void QBluetoothSocket_SetPreferredSecurityFlags(void* ptr, long long flags) { static_cast(ptr)->setPreferredSecurityFlags(static_cast(flags)); } 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)); } 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)); } int QBluetoothSocket_SocketDescriptor(void* ptr) { return static_cast(ptr)->socketDescriptor(); } long long QBluetoothSocket_SocketType(void* ptr) { return static_cast(ptr)->socketType(); } long long QBluetoothSocket_State(void* ptr) { return static_cast(ptr)->state(); } 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_DestroyQBluetoothSocket(void* ptr) { static_cast(ptr)->~QBluetoothSocket(); } void QBluetoothSocket_DestroyQBluetoothSocketDefault(void* ptr) { } char QBluetoothSocket_AtEnd(void* ptr) { return static_cast(ptr)->atEnd(); } char QBluetoothSocket_AtEndDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::atEnd(); } char QBluetoothSocket_Open(void* ptr, long long mode) { return static_cast(ptr)->open(static_cast(mode)); } char QBluetoothSocket_OpenDefault(void* ptr, long long mode) { return static_cast(ptr)->QBluetoothSocket::open(static_cast(mode)); } long long QBluetoothSocket_Pos(void* ptr) { return static_cast(ptr)->pos(); } long long QBluetoothSocket_PosDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::pos(); } long long QBluetoothSocket_ReadLineData(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->readLineData(data, maxSize); } long long QBluetoothSocket_ReadLineDataDefault(void* ptr, char* data, long long maxSize) { return static_cast(ptr)->QBluetoothSocket::readLineData(data, maxSize); } char QBluetoothSocket_Reset(void* ptr) { return static_cast(ptr)->reset(); } char QBluetoothSocket_ResetDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::reset(); } char QBluetoothSocket_Seek(void* ptr, long long pos) { return static_cast(ptr)->seek(pos); } char QBluetoothSocket_SeekDefault(void* ptr, long long pos) { return static_cast(ptr)->QBluetoothSocket::seek(pos); } long long QBluetoothSocket_Size(void* ptr) { return static_cast(ptr)->size(); } long long QBluetoothSocket_SizeDefault(void* ptr) { return static_cast(ptr)->QBluetoothSocket::size(); } char QBluetoothSocket_WaitForBytesWritten(void* ptr, int msecs) { return static_cast(ptr)->waitForBytesWritten(msecs); } char QBluetoothSocket_WaitForBytesWrittenDefault(void* ptr, int msecs) { return static_cast(ptr)->QBluetoothSocket::waitForBytesWritten(msecs); } char QBluetoothSocket_WaitForReadyRead(void* ptr, int msecs) { return static_cast(ptr)->waitForReadyRead(msecs); } char QBluetoothSocket_WaitForReadyReadDefault(void* ptr, int msecs) { return static_cast(ptr)->QBluetoothSocket::waitForReadyRead(msecs); } void QBluetoothSocket_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothSocket_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::timerEvent(static_cast(event)); } void QBluetoothSocket_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothSocket_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::childEvent(static_cast(event)); } void QBluetoothSocket_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothSocket_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothSocket::connectNotify(*static_cast(sign)); } void QBluetoothSocket_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothSocket_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothSocket::customEvent(static_cast(event)); } void QBluetoothSocket_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothSocket_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothSocket::deleteLater(); } void QBluetoothSocket_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothSocket_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothSocket::disconnectNotify(*static_cast(sign)); } char QBluetoothSocket_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothSocket_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothSocket::event(static_cast(e)); } char QBluetoothSocket_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothSocket_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothSocket::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothSocket_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothSocket_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothSocket::metaObject()); } class MyQBluetoothTransferManager: public QBluetoothTransferManager { public: MyQBluetoothTransferManager(QObject *parent) : QBluetoothTransferManager(parent) {}; void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferManager_Finished(this, reply); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferManager_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferManager_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothTransferManager_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferManager_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothTransferManager_MetaObject(const_cast(this))); }; }; void* QBluetoothTransferManager_Put(void* ptr, void* request, void* data) { return static_cast(ptr)->put(*static_cast(request), static_cast(data)); } void* QBluetoothTransferManager_NewQBluetoothTransferManager(void* parent) { return new MyQBluetoothTransferManager(static_cast(parent)); } 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_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothTransferManager_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::timerEvent(static_cast(event)); } void QBluetoothTransferManager_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothTransferManager_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::childEvent(static_cast(event)); } void QBluetoothTransferManager_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothTransferManager_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferManager::connectNotify(*static_cast(sign)); } void QBluetoothTransferManager_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothTransferManager_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferManager::customEvent(static_cast(event)); } void QBluetoothTransferManager_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothTransferManager_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferManager::deleteLater(); } void QBluetoothTransferManager_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothTransferManager_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferManager::disconnectNotify(*static_cast(sign)); } char QBluetoothTransferManager_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothTransferManager_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothTransferManager::event(static_cast(e)); } char QBluetoothTransferManager_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothTransferManager_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothTransferManager::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothTransferManager_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothTransferManager_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothTransferManager::metaObject()); } class MyQBluetoothTransferReply: public QBluetoothTransferReply { public: MyQBluetoothTransferReply(QObject *parent) : QBluetoothTransferReply(parent) {}; void abort() { callbackQBluetoothTransferReply_Abort(this); }; void Signal_Error2(QBluetoothTransferReply::TransferError errorType) { callbackQBluetoothTransferReply_Error2(this, errorType); }; TransferError error() const { return static_cast(callbackQBluetoothTransferReply_Error(const_cast(this))); }; QString errorString() const { return QString(callbackQBluetoothTransferReply_ErrorString(const_cast(this))); }; void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferReply_Finished(this, reply); }; bool isFinished() const { return callbackQBluetoothTransferReply_IsFinished(const_cast(this)) != 0; }; bool isRunning() const { return callbackQBluetoothTransferReply_IsRunning(const_cast(this)) != 0; }; void Signal_TransferProgress(qint64 bytesTransferred, qint64 bytesTotal) { callbackQBluetoothTransferReply_TransferProgress(this, bytesTransferred, bytesTotal); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferReply_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferReply_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQBluetoothTransferReply_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferReply_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQBluetoothTransferReply_MetaObject(const_cast(this))); }; }; void QBluetoothTransferReply_Abort(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "abort"); } void QBluetoothTransferReply_AbortDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferReply::abort(); } 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_NewQBluetoothTransferReply(void* parent) { return new MyQBluetoothTransferReply(static_cast(parent)); } void QBluetoothTransferReply_ConnectError2(void* ptr) { 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)); } long long QBluetoothTransferReply_Error(void* ptr) { return static_cast(ptr)->error(); } 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 }; }); } 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)); } char QBluetoothTransferReply_IsFinished(void* ptr) { return static_cast(ptr)->isFinished(); } char QBluetoothTransferReply_IsRunning(void* ptr) { return static_cast(ptr)->isRunning(); } void* QBluetoothTransferReply_Manager(void* ptr) { return static_cast(ptr)->manager(); } void* QBluetoothTransferReply_Request(void* ptr) { return new QBluetoothTransferRequest(static_cast(ptr)->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_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QBluetoothTransferReply_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::timerEvent(static_cast(event)); } void QBluetoothTransferReply_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QBluetoothTransferReply_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::childEvent(static_cast(event)); } void QBluetoothTransferReply_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QBluetoothTransferReply_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferReply::connectNotify(*static_cast(sign)); } void QBluetoothTransferReply_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QBluetoothTransferReply_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QBluetoothTransferReply::customEvent(static_cast(event)); } void QBluetoothTransferReply_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QBluetoothTransferReply_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QBluetoothTransferReply::deleteLater(); } void QBluetoothTransferReply_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QBluetoothTransferReply_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QBluetoothTransferReply::disconnectNotify(*static_cast(sign)); } char QBluetoothTransferReply_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QBluetoothTransferReply_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QBluetoothTransferReply::event(static_cast(e)); } char QBluetoothTransferReply_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QBluetoothTransferReply_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QBluetoothTransferReply::eventFilter(static_cast(watched), static_cast(event)); } void* QBluetoothTransferReply_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QBluetoothTransferReply_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QBluetoothTransferReply::metaObject()); } void* QBluetoothTransferRequest_NewQBluetoothTransferRequest(void* address) { return new QBluetoothTransferRequest(*static_cast(address)); } void* QBluetoothTransferRequest_NewQBluetoothTransferRequest2(void* other) { return new QBluetoothTransferRequest(*static_cast(other)); } 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 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* 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(char* uuid) { return new QBluetoothUuid(QString(uuid)); } 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 }; }); } int QBluetoothUuid_MinimumSize(void* ptr) { return static_cast(ptr)->minimumSize(); } 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 }; }); } unsigned short QBluetoothUuid_ToUInt16(void* ptr, char ok) { return static_cast(ptr)->toUInt16(NULL); } unsigned int QBluetoothUuid_ToUInt32(void* ptr, char ok) { return static_cast(ptr)->toUInt32(NULL); } void QBluetoothUuid_DestroyQBluetoothUuid(void* ptr) { static_cast(ptr)->~QBluetoothUuid(); } void* QLowEnergyAdvertisingData_NewQLowEnergyAdvertisingData() { return new QLowEnergyAdvertisingData(); } void* QLowEnergyAdvertisingData_NewQLowEnergyAdvertisingData2(void* other) { return new QLowEnergyAdvertisingData(*static_cast(other)); } long long QLowEnergyAdvertisingData_Discoverability(void* ptr) { return static_cast(ptr)->discoverability(); } char QLowEnergyAdvertisingData_IncludePowerLevel(void* ptr) { return static_cast(ptr)->includePowerLevel(); } unsigned short QLowEnergyAdvertisingData_QLowEnergyAdvertisingData_InvalidManufacturerId() { return QLowEnergyAdvertisingData::invalidManufacturerId(); } 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 }; }); } void* QLowEnergyAdvertisingData_ManufacturerData(void* ptr) { return new QByteArray(static_cast(ptr)->manufacturerData()); } unsigned short QLowEnergyAdvertisingData_ManufacturerId(void* ptr) { return static_cast(ptr)->manufacturerId(); } 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() }; }); } 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, char* name) { static_cast(ptr)->setLocalName(QString(name)); } 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_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyAdvertisingData_DestroyQLowEnergyAdvertisingData(void* ptr) { static_cast(ptr)->~QLowEnergyAdvertisingData(); } void* QLowEnergyAdvertisingData_services_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } void* QLowEnergyAdvertisingParameters_NewQLowEnergyAdvertisingParameters() { return new QLowEnergyAdvertisingParameters(); } void* QLowEnergyAdvertisingParameters_NewQLowEnergyAdvertisingParameters2(void* other) { return new QLowEnergyAdvertisingParameters(*static_cast(other)); } long long QLowEnergyAdvertisingParameters_FilterPolicy(void* ptr) { return static_cast(ptr)->filterPolicy(); } int QLowEnergyAdvertisingParameters_MaximumInterval(void* ptr) { return static_cast(ptr)->maximumInterval(); } int QLowEnergyAdvertisingParameters_MinimumInterval(void* ptr) { return static_cast(ptr)->minimumInterval(); } long long QLowEnergyAdvertisingParameters_Mode(void* ptr) { return static_cast(ptr)->mode(); } 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(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic() { return new QLowEnergyCharacteristic(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic2(void* other) { return new QLowEnergyCharacteristic(*static_cast(other)); } void* QLowEnergyCharacteristic_Descriptor(void* ptr, void* uuid) { return new QLowEnergyDescriptor(static_cast(ptr)->descriptor(*static_cast(uuid))); } struct QtBluetooth_PackedList QLowEnergyCharacteristic_Descriptors(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->descriptors()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } char QLowEnergyCharacteristic_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } 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 }; }); } long long QLowEnergyCharacteristic_Properties(void* ptr) { return static_cast(ptr)->properties(); } void* QLowEnergyCharacteristic_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyCharacteristic_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } void QLowEnergyCharacteristic_DestroyQLowEnergyCharacteristic(void* ptr) { static_cast(ptr)->~QLowEnergyCharacteristic(); } void* QLowEnergyCharacteristic_descriptors_atList(void* ptr, int i) { return new QLowEnergyDescriptor(static_cast*>(ptr)->at(i)); } 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)); } struct QtBluetooth_PackedList QLowEnergyCharacteristicData_Descriptors(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->descriptors()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } 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(); } long long QLowEnergyCharacteristicData_Properties(void* ptr) { return static_cast(ptr)->properties(); } long long QLowEnergyCharacteristicData_ReadConstraints(void* ptr) { return static_cast(ptr)->readConstraints(); } 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_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyCharacteristicData_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } long long QLowEnergyCharacteristicData_WriteConstraints(void* ptr) { return static_cast(ptr)->writeConstraints(); } void QLowEnergyCharacteristicData_DestroyQLowEnergyCharacteristicData(void* ptr) { static_cast(ptr)->~QLowEnergyCharacteristicData(); } void* QLowEnergyCharacteristicData_descriptors_atList(void* ptr, int i) { return new QLowEnergyDescriptorData(static_cast*>(ptr)->at(i)); } void* QLowEnergyConnectionParameters_NewQLowEnergyConnectionParameters() { return new QLowEnergyConnectionParameters(); } void* QLowEnergyConnectionParameters_NewQLowEnergyConnectionParameters2(void* other) { return new QLowEnergyConnectionParameters(*static_cast(other)); } int QLowEnergyConnectionParameters_Latency(void* ptr) { return static_cast(ptr)->latency(); } double QLowEnergyConnectionParameters_MaximumInterval(void* ptr) { return static_cast(ptr)->maximumInterval(); } double QLowEnergyConnectionParameters_MinimumInterval(void* ptr) { return static_cast(ptr)->minimumInterval(); } 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); } int QLowEnergyConnectionParameters_SupervisionTimeout(void* ptr) { return static_cast(ptr)->supervisionTimeout(); } void QLowEnergyConnectionParameters_Swap(void* ptr, void* other) { static_cast(ptr)->swap(*static_cast(other)); } void QLowEnergyConnectionParameters_DestroyQLowEnergyConnectionParameters(void* ptr) { static_cast(ptr)->~QLowEnergyConnectionParameters(); } 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); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyController_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyController_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQLowEnergyController_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyController_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQLowEnergyController_MetaObject(const_cast(this))); }; }; 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_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_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) { 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_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_ConnectStateChanged(void* ptr) { 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_AddService(void* ptr, void* service, void* parent) { return static_cast(ptr)->addService(*static_cast(service), static_cast(parent)); } void QLowEnergyController_ConnectToDevice(void* ptr) { static_cast(ptr)->connectToDevice(); } 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_CreateServiceObject(void* ptr, void* serviceUuid, void* parent) { return static_cast(ptr)->createServiceObject(*static_cast(serviceUuid), static_cast(parent)); } void QLowEnergyController_DisconnectFromDevice(void* ptr) { static_cast(ptr)->disconnectFromDevice(); } void QLowEnergyController_DiscoverServices(void* ptr) { static_cast(ptr)->discoverServices(); } long long QLowEnergyController_Error(void* ptr) { return static_cast(ptr)->error(); } 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 }; }); } void* QLowEnergyController_LocalAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->localAddress()); } void* QLowEnergyController_RemoteAddress(void* ptr) { return new QBluetoothAddress(static_cast(ptr)->remoteAddress()); } long long QLowEnergyController_RemoteAddressType(void* ptr) { return static_cast(ptr)->remoteAddressType(); } 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_RequestConnectionUpdate(void* ptr, void* parameters) { static_cast(ptr)->requestConnectionUpdate(*static_cast(parameters)); } long long QLowEnergyController_Role(void* ptr) { return static_cast(ptr)->role(); } struct QtBluetooth_PackedList QLowEnergyController_Services(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->services()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } 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)); } long long QLowEnergyController_State(void* ptr) { return static_cast(ptr)->state(); } void QLowEnergyController_StopAdvertising(void* ptr) { static_cast(ptr)->stopAdvertising(); } void QLowEnergyController_DestroyQLowEnergyController(void* ptr) { static_cast(ptr)->~QLowEnergyController(); } void* QLowEnergyController_services_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } void QLowEnergyController_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QLowEnergyController_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::timerEvent(static_cast(event)); } void QLowEnergyController_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QLowEnergyController_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::childEvent(static_cast(event)); } void QLowEnergyController_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QLowEnergyController_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyController::connectNotify(*static_cast(sign)); } void QLowEnergyController_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QLowEnergyController_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyController::customEvent(static_cast(event)); } void QLowEnergyController_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QLowEnergyController_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QLowEnergyController::deleteLater(); } void QLowEnergyController_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QLowEnergyController_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyController::disconnectNotify(*static_cast(sign)); } char QLowEnergyController_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QLowEnergyController_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QLowEnergyController::event(static_cast(e)); } char QLowEnergyController_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QLowEnergyController_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QLowEnergyController::eventFilter(static_cast(watched), static_cast(event)); } void* QLowEnergyController_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QLowEnergyController_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QLowEnergyController::metaObject()); } void* QLowEnergyDescriptor_NewQLowEnergyDescriptor() { return new QLowEnergyDescriptor(); } void* QLowEnergyDescriptor_NewQLowEnergyDescriptor2(void* other) { return new QLowEnergyDescriptor(*static_cast(other)); } char QLowEnergyDescriptor_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } 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 }; }); } long long QLowEnergyDescriptor_Type(void* ptr) { return static_cast(ptr)->type(); } void* QLowEnergyDescriptor_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyDescriptor_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } void QLowEnergyDescriptor_DestroyQLowEnergyDescriptor(void* ptr) { static_cast(ptr)->~QLowEnergyDescriptor(); } 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)); } 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(); } long long QLowEnergyDescriptorData_ReadConstraints(void* ptr) { return static_cast(ptr)->readConstraints(); } 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_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void* QLowEnergyDescriptorData_Value(void* ptr) { return new QByteArray(static_cast(ptr)->value()); } long long QLowEnergyDescriptorData_WriteConstraints(void* ptr) { return static_cast(ptr)->writeConstraints(); } void QLowEnergyDescriptorData_DestroyQLowEnergyDescriptorData(void* ptr) { static_cast(ptr)->~QLowEnergyDescriptorData(); } 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); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyService_TimerEvent(this, event); }; 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 disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyService_DisconnectNotify(this, const_cast(&sign)); }; bool event(QEvent * e) { return callbackQLowEnergyService_Event(this, e) != 0; }; bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyService_EventFilter(this, watched, event) != 0; }; const QMetaObject * metaObject() const { return static_cast(callbackQLowEnergyService_MetaObject(const_cast(this))); }; }; 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_ConnectError2(void* ptr) { 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_ConnectStateChanged(void* ptr) { 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_Characteristic(void* ptr, void* uuid) { return new QLowEnergyCharacteristic(static_cast(ptr)->characteristic(*static_cast(uuid))); } struct QtBluetooth_PackedList QLowEnergyService_Characteristics(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->characteristics()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } 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_DiscoverDetails(void* ptr) { static_cast(ptr)->discoverDetails(); } long long QLowEnergyService_Error(void* ptr) { return static_cast(ptr)->error(); } struct QtBluetooth_PackedList QLowEnergyService_IncludedServices(void* ptr) { return ({ QList* tmpValue = new QList(static_cast(ptr)->includedServices()); QtBluetooth_PackedList { tmpValue, tmpValue->size() }; }); } 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)); } 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 }; }); } void* QLowEnergyService_ServiceUuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->serviceUuid()); } long long QLowEnergyService_State(void* ptr) { return static_cast(ptr)->state(); } long long QLowEnergyService_Type(void* ptr) { return static_cast(ptr)->type(); } 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_characteristics_atList(void* ptr, int i) { return new QLowEnergyCharacteristic(static_cast*>(ptr)->at(i)); } void* QLowEnergyService_includedServices_atList(void* ptr, int i) { return new QBluetoothUuid(static_cast*>(ptr)->at(i)); } void QLowEnergyService_TimerEvent(void* ptr, void* event) { static_cast(ptr)->timerEvent(static_cast(event)); } void QLowEnergyService_TimerEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::timerEvent(static_cast(event)); } void QLowEnergyService_ChildEvent(void* ptr, void* event) { static_cast(ptr)->childEvent(static_cast(event)); } void QLowEnergyService_ChildEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::childEvent(static_cast(event)); } void QLowEnergyService_ConnectNotify(void* ptr, void* sign) { static_cast(ptr)->connectNotify(*static_cast(sign)); } void QLowEnergyService_ConnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyService::connectNotify(*static_cast(sign)); } void QLowEnergyService_CustomEvent(void* ptr, void* event) { static_cast(ptr)->customEvent(static_cast(event)); } void QLowEnergyService_CustomEventDefault(void* ptr, void* event) { static_cast(ptr)->QLowEnergyService::customEvent(static_cast(event)); } void QLowEnergyService_DeleteLater(void* ptr) { QMetaObject::invokeMethod(static_cast(ptr), "deleteLater"); } void QLowEnergyService_DeleteLaterDefault(void* ptr) { static_cast(ptr)->QLowEnergyService::deleteLater(); } void QLowEnergyService_DisconnectNotify(void* ptr, void* sign) { static_cast(ptr)->disconnectNotify(*static_cast(sign)); } void QLowEnergyService_DisconnectNotifyDefault(void* ptr, void* sign) { static_cast(ptr)->QLowEnergyService::disconnectNotify(*static_cast(sign)); } char QLowEnergyService_Event(void* ptr, void* e) { return static_cast(ptr)->event(static_cast(e)); } char QLowEnergyService_EventDefault(void* ptr, void* e) { return static_cast(ptr)->QLowEnergyService::event(static_cast(e)); } char QLowEnergyService_EventFilter(void* ptr, void* watched, void* event) { return static_cast(ptr)->eventFilter(static_cast(watched), static_cast(event)); } char QLowEnergyService_EventFilterDefault(void* ptr, void* watched, void* event) { return static_cast(ptr)->QLowEnergyService::eventFilter(static_cast(watched), static_cast(event)); } void* QLowEnergyService_MetaObject(void* ptr) { return const_cast(static_cast(ptr)->metaObject()); } void* QLowEnergyService_MetaObjectDefault(void* ptr) { return const_cast(static_cast(ptr)->QLowEnergyService::metaObject()); } 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)); } 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() }; }); } char QLowEnergyServiceData_IsValid(void* ptr) { return static_cast(ptr)->isValid(); } 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)); } long long QLowEnergyServiceData_Type(void* ptr) { return static_cast(ptr)->type(); } void* QLowEnergyServiceData_Uuid(void* ptr) { return new QBluetoothUuid(static_cast(ptr)->uuid()); } void QLowEnergyServiceData_DestroyQLowEnergyServiceData(void* ptr) { static_cast(ptr)->~QLowEnergyServiceData(); } void* QLowEnergyServiceData_characteristics_atList(void* ptr, int i) { return new QLowEnergyCharacteristicData(static_cast*>(ptr)->at(i)); } void* QLowEnergyServiceData_includedServices_atList(void* ptr, int i) { return const_cast(static_cast*>(ptr)->at(i)); }