#define protected 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 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_Clear(void* ptr){ static_cast(ptr)->clear(); } int QBluetoothAddress_IsNull(void* ptr){ return static_cast(ptr)->isNull(); } char* QBluetoothAddress_ToString(void* ptr){ return static_cast(ptr)->toString().toUtf8().data(); } void QBluetoothAddress_DestroyQBluetoothAddress(void* ptr){ static_cast(ptr)->~QBluetoothAddress(); } class MyQBluetoothDeviceDiscoveryAgent: public QBluetoothDeviceDiscoveryAgent { public: void Signal_Canceled() { callbackQBluetoothDeviceDiscoveryAgentCanceled(this, this->objectName().toUtf8().data()); }; void Signal_Error2(QBluetoothDeviceDiscoveryAgent::Error error) { callbackQBluetoothDeviceDiscoveryAgentError2(this, this->objectName().toUtf8().data(), error); }; void Signal_Finished() { callbackQBluetoothDeviceDiscoveryAgentFinished(this, this->objectName().toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothDeviceDiscoveryAgentTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothDeviceDiscoveryAgentChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothDeviceDiscoveryAgentCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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_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, int 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 QBluetoothDeviceDiscoveryAgent(static_cast(parent)); } void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent2(void* deviceAdapter, void* parent){ return new QBluetoothDeviceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } int QBluetoothDeviceDiscoveryAgent_Error(void* ptr){ return static_cast(ptr)->error(); } char* QBluetoothDeviceDiscoveryAgent_ErrorString(void* ptr){ return static_cast(ptr)->errorString().toUtf8().data(); } int QBluetoothDeviceDiscoveryAgent_InquiryType(void* ptr){ return static_cast(ptr)->inquiryType(); } int QBluetoothDeviceDiscoveryAgent_IsActive(void* ptr){ return static_cast(ptr)->isActive(); } void QBluetoothDeviceDiscoveryAgent_SetInquiryType(void* ptr, int ty){ static_cast(ptr)->setInquiryType(static_cast(ty)); } void QBluetoothDeviceDiscoveryAgent_Start(void* ptr){ QMetaObject::invokeMethod(static_cast(ptr), "start"); } void QBluetoothDeviceDiscoveryAgent_Stop(void* ptr){ QMetaObject::invokeMethod(static_cast(ptr), "stop"); } void QBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgent(void* ptr){ static_cast(ptr)->~QBluetoothDeviceDiscoveryAgent(); } 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_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* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo(){ return new QBluetoothDeviceInfo(); } void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo4(void* other){ return new QBluetoothDeviceInfo(*static_cast(other)); } int QBluetoothDeviceInfo_CoreConfigurations(void* ptr){ return static_cast(ptr)->coreConfigurations(); } int QBluetoothDeviceInfo_IsCached(void* ptr){ return static_cast(ptr)->isCached(); } int QBluetoothDeviceInfo_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } int QBluetoothDeviceInfo_MajorDeviceClass(void* ptr){ return static_cast(ptr)->majorDeviceClass(); } char* QBluetoothDeviceInfo_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } int QBluetoothDeviceInfo_ServiceClasses(void* ptr){ return static_cast(ptr)->serviceClasses(); } int QBluetoothDeviceInfo_ServiceUuidsCompleteness(void* ptr){ return static_cast(ptr)->serviceUuidsCompleteness(); } void QBluetoothDeviceInfo_SetCached(void* ptr, int cached){ static_cast(ptr)->setCached(cached != 0); } void QBluetoothDeviceInfo_SetCoreConfigurations(void* ptr, int coreConfigs){ static_cast(ptr)->setCoreConfigurations(static_cast(coreConfigs)); } void QBluetoothDeviceInfo_SetDeviceUuid(void* ptr, void* uuid){ static_cast(ptr)->setDeviceUuid(*static_cast(uuid)); } void QBluetoothDeviceInfo_DestroyQBluetoothDeviceInfo(void* ptr){ static_cast(ptr)->~QBluetoothDeviceInfo(); } void* QBluetoothHostInfo_NewQBluetoothHostInfo(){ return new QBluetoothHostInfo(); } void* QBluetoothHostInfo_NewQBluetoothHostInfo2(void* other){ return new QBluetoothHostInfo(*static_cast(other)); } char* QBluetoothHostInfo_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } 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_Error(QBluetoothLocalDevice::Error error) { callbackQBluetoothLocalDeviceError(this, this->objectName().toUtf8().data(), error); }; void Signal_HostModeStateChanged(QBluetoothLocalDevice::HostMode state) { callbackQBluetoothLocalDeviceHostModeStateChanged(this, this->objectName().toUtf8().data(), state); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothLocalDeviceTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothLocalDeviceChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothLocalDeviceCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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, int 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, int state){ static_cast(ptr)->hostModeStateChanged(static_cast(state)); } int QBluetoothLocalDevice_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } void QBluetoothLocalDevice_DestroyQBluetoothLocalDevice(void* ptr){ static_cast(ptr)->~QBluetoothLocalDevice(); } 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)); } int QBluetoothLocalDevice_HostMode(void* ptr){ return static_cast(ptr)->hostMode(); } char* QBluetoothLocalDevice_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } void QBluetoothLocalDevice_PairingConfirmation(void* ptr, int accept){ QMetaObject::invokeMethod(static_cast(ptr), "pairingConfirmation", Q_ARG(bool, accept != 0)); } int 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, int pairing){ static_cast(ptr)->requestPairing(*static_cast(address), static_cast(pairing)); } void QBluetoothLocalDevice_SetHostMode(void* ptr, int mode){ static_cast(ptr)->setHostMode(static_cast(mode)); } 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_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)); } class MyQBluetoothServer: public QBluetoothServer { public: void Signal_Error2(QBluetoothServer::Error error) { callbackQBluetoothServerError2(this, this->objectName().toUtf8().data(), error); }; void Signal_NewConnection() { callbackQBluetoothServerNewConnection(this, this->objectName().toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServerTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothServerChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothServerCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void* QBluetoothServer_NewQBluetoothServer(int serverType, void* parent){ return new QBluetoothServer(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, int 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(); } int QBluetoothServer_Error(void* ptr){ return static_cast(ptr)->error(); } int QBluetoothServer_IsListening(void* ptr){ return static_cast(ptr)->isListening(); } int QBluetoothServer_MaxPendingConnections(void* ptr){ return static_cast(ptr)->maxPendingConnections(); } int 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(); } int QBluetoothServer_HasPendingConnections(void* ptr){ return static_cast(ptr)->hasPendingConnections(); } void* QBluetoothServer_NextPendingConnection(void* ptr){ return static_cast(ptr)->nextPendingConnection(); } void QBluetoothServer_SetMaxPendingConnections(void* ptr, int numConnections){ static_cast(ptr)->setMaxPendingConnections(numConnections); } 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_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)); } class MyQBluetoothServiceDiscoveryAgent: public QBluetoothServiceDiscoveryAgent { public: void Signal_Canceled() { callbackQBluetoothServiceDiscoveryAgentCanceled(this, this->objectName().toUtf8().data()); }; void Signal_Error2(QBluetoothServiceDiscoveryAgent::Error error) { callbackQBluetoothServiceDiscoveryAgentError2(this, this->objectName().toUtf8().data(), error); }; void Signal_Finished() { callbackQBluetoothServiceDiscoveryAgentFinished(this, this->objectName().toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothServiceDiscoveryAgentTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothServiceDiscoveryAgentChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothServiceDiscoveryAgentCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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, int 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_NewQBluetoothServiceDiscoveryAgent(void* parent){ return new QBluetoothServiceDiscoveryAgent(static_cast(parent)); } void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent2(void* deviceAdapter, void* parent){ return new QBluetoothServiceDiscoveryAgent(*static_cast(deviceAdapter), static_cast(parent)); } void QBluetoothServiceDiscoveryAgent_Clear(void* ptr){ QMetaObject::invokeMethod(static_cast(ptr), "clear"); } int QBluetoothServiceDiscoveryAgent_Error(void* ptr){ return static_cast(ptr)->error(); } char* QBluetoothServiceDiscoveryAgent_ErrorString(void* ptr){ return static_cast(ptr)->errorString().toUtf8().data(); } int QBluetoothServiceDiscoveryAgent_IsActive(void* ptr){ return static_cast(ptr)->isActive(); } int 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, int mode){ QMetaObject::invokeMethod(static_cast(ptr), "start", Q_ARG(QBluetoothServiceDiscoveryAgent::DiscoveryMode, static_cast(mode))); } void QBluetoothServiceDiscoveryAgent_Stop(void* ptr){ QMetaObject::invokeMethod(static_cast(ptr), "stop"); } void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(void* ptr){ static_cast(ptr)->~QBluetoothServiceDiscoveryAgent(); } 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_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)); } int QBluetoothServiceInfo_ServiceName_Type(){ return QBluetoothServiceInfo::ServiceName; } int QBluetoothServiceInfo_ServiceDescription_Type(){ return QBluetoothServiceInfo::ServiceDescription; } int QBluetoothServiceInfo_ServiceProvider_Type(){ return QBluetoothServiceInfo::ServiceProvider; } char* QBluetoothServiceInfo_ServiceDescription(void* ptr){ return static_cast(ptr)->serviceDescription().toUtf8().data(); } char* QBluetoothServiceInfo_ServiceName(void* ptr){ return static_cast(ptr)->serviceName().toUtf8().data(); } char* QBluetoothServiceInfo_ServiceProvider(void* ptr){ return static_cast(ptr)->serviceProvider().toUtf8().data(); } 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)); } int QBluetoothServiceInfo_IsComplete(void* ptr){ return static_cast(ptr)->isComplete(); } int QBluetoothServiceInfo_IsRegistered(void* ptr){ return static_cast(ptr)->isRegistered(); } int QBluetoothServiceInfo_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } int QBluetoothServiceInfo_ProtocolServiceMultiplexer(void* ptr){ return static_cast(ptr)->protocolServiceMultiplexer(); } int QBluetoothServiceInfo_RegisterService(void* ptr, void* localAdapter){ return static_cast(ptr)->registerService(*static_cast(localAdapter)); } int QBluetoothServiceInfo_ServerChannel(void* ptr){ return static_cast(ptr)->serverChannel(); } void QBluetoothServiceInfo_SetDevice(void* ptr, void* device){ static_cast(ptr)->setDevice(*static_cast(device)); } int QBluetoothServiceInfo_SocketProtocol(void* ptr){ return static_cast(ptr)->socketProtocol(); } int QBluetoothServiceInfo_UnregisterService(void* ptr){ return static_cast(ptr)->unregisterService(); } void QBluetoothServiceInfo_DestroyQBluetoothServiceInfo(void* ptr){ static_cast(ptr)->~QBluetoothServiceInfo(); } class MyQBluetoothSocket: public QBluetoothSocket { public: MyQBluetoothSocket(QBluetoothServiceInfo::Protocol socketType, QObject *parent) : QBluetoothSocket(socketType, parent) {}; MyQBluetoothSocket(QObject *parent) : QBluetoothSocket(parent) {}; void Signal_Connected() { callbackQBluetoothSocketConnected(this, this->objectName().toUtf8().data()); }; void Signal_Disconnected() { callbackQBluetoothSocketDisconnected(this, this->objectName().toUtf8().data()); }; void Signal_Error2(QBluetoothSocket::SocketError error) { callbackQBluetoothSocketError2(this, this->objectName().toUtf8().data(), error); }; void Signal_StateChanged(QBluetoothSocket::SocketState state) { callbackQBluetoothSocketStateChanged(this, this->objectName().toUtf8().data(), state); }; void close() { callbackQBluetoothSocketClose(this, this->objectName().toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothSocketTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothSocketChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothSocketCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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, int 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, int state){ static_cast(ptr)->stateChanged(static_cast(state)); } void* QBluetoothSocket_NewQBluetoothSocket(int 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(static_cast(ptr)->bytesAvailable()); } long long QBluetoothSocket_BytesToWrite(void* ptr){ return static_cast(static_cast(ptr)->bytesToWrite()); } int QBluetoothSocket_CanReadLine(void* ptr){ return static_cast(ptr)->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, int openMode){ static_cast(ptr)->connectToService(*static_cast(address), *static_cast(uuid), static_cast(openMode)); } void QBluetoothSocket_ConnectToService(void* ptr, void* service, int openMode){ static_cast(ptr)->connectToService(*static_cast(service), static_cast(openMode)); } void QBluetoothSocket_DisconnectFromService(void* ptr){ static_cast(ptr)->disconnectFromService(); } int QBluetoothSocket_Error(void* ptr){ return static_cast(ptr)->error(); } char* QBluetoothSocket_ErrorString(void* ptr){ return static_cast(ptr)->errorString().toUtf8().data(); } int QBluetoothSocket_IsSequential(void* ptr){ return static_cast(ptr)->isSequential(); } char* QBluetoothSocket_LocalName(void* ptr){ return static_cast(ptr)->localName().toUtf8().data(); } char* QBluetoothSocket_PeerName(void* ptr){ return static_cast(ptr)->peerName().toUtf8().data(); } long long QBluetoothSocket_ReadData(void* ptr, char* data, long long maxSize){ return static_cast(static_cast(ptr)->readData(data, static_cast(maxSize))); } int QBluetoothSocket_SetSocketDescriptor(void* ptr, int socketDescriptor, int socketType, int socketState, int openMode){ return static_cast(ptr)->setSocketDescriptor(socketDescriptor, static_cast(socketType), static_cast(socketState), static_cast(openMode)); } int QBluetoothSocket_SocketDescriptor(void* ptr){ return static_cast(ptr)->socketDescriptor(); } int QBluetoothSocket_SocketType(void* ptr){ return static_cast(ptr)->socketType(); } int QBluetoothSocket_State(void* ptr){ return static_cast(ptr)->state(); } long long QBluetoothSocket_WriteData(void* ptr, char* data, long long maxSize){ return static_cast(static_cast(ptr)->writeData(const_cast(data), static_cast(maxSize))); } void QBluetoothSocket_DestroyQBluetoothSocket(void* ptr){ static_cast(ptr)->~QBluetoothSocket(); } 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_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)); } class MyQBluetoothTransferManager: public QBluetoothTransferManager { public: void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferManagerFinished(this, this->objectName().toUtf8().data(), reply); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferManagerTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothTransferManagerChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothTransferManagerCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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 QBluetoothTransferManager(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_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)); } class MyQBluetoothTransferReply: public QBluetoothTransferReply { public: void Signal_Error2(QBluetoothTransferReply::TransferError errorType) { callbackQBluetoothTransferReplyError2(this, this->objectName().toUtf8().data(), errorType); }; void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferReplyFinished(this, this->objectName().toUtf8().data(), reply); }; void Signal_TransferProgress(qint64 bytesTransferred, qint64 bytesTotal) { callbackQBluetoothTransferReplyTransferProgress(this, this->objectName().toUtf8().data(), static_cast(bytesTransferred), static_cast(bytesTotal)); }; void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferReplyTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQBluetoothTransferReplyChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQBluetoothTransferReplyCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void QBluetoothTransferReply_Abort(void* ptr){ QMetaObject::invokeMethod(static_cast(ptr), "abort"); } 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, int errorType){ static_cast(ptr)->error(static_cast(errorType)); } int QBluetoothTransferReply_Error(void* ptr){ return static_cast(ptr)->error(); } char* QBluetoothTransferReply_ErrorString(void* ptr){ return static_cast(ptr)->errorString().toUtf8().data(); } 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)); } int QBluetoothTransferReply_IsFinished(void* ptr){ return static_cast(ptr)->isFinished(); } int QBluetoothTransferReply_IsRunning(void* ptr){ return static_cast(ptr)->isRunning(); } void* QBluetoothTransferReply_Manager(void* ptr){ return static_cast(ptr)->manager(); } 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(static_cast(bytesTransferred), static_cast(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_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* QBluetoothTransferRequest_NewQBluetoothTransferRequest(void* address){ return new QBluetoothTransferRequest(*static_cast(address)); } void* QBluetoothTransferRequest_NewQBluetoothTransferRequest2(void* other){ return new QBluetoothTransferRequest(*static_cast(other)); } void* QBluetoothTransferRequest_Attribute(void* ptr, int code, void* defaultValue){ return new QVariant(static_cast(ptr)->attribute(static_cast(code), *static_cast(defaultValue))); } void QBluetoothTransferRequest_SetAttribute(void* ptr, int 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(int uuid){ return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid5(int uuid){ return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid2(int uuid){ return new QBluetoothUuid(static_cast(uuid)); } void* QBluetoothUuid_NewQBluetoothUuid3(int 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)); } char* QBluetoothUuid_QBluetoothUuid_CharacteristicToString(int uuid){ return QBluetoothUuid::characteristicToString(static_cast(uuid)).toUtf8().data(); } char* QBluetoothUuid_QBluetoothUuid_DescriptorToString(int uuid){ return QBluetoothUuid::descriptorToString(static_cast(uuid)).toUtf8().data(); } int QBluetoothUuid_MinimumSize(void* ptr){ return static_cast(ptr)->minimumSize(); } char* QBluetoothUuid_QBluetoothUuid_ProtocolToString(int uuid){ return QBluetoothUuid::protocolToString(static_cast(uuid)).toUtf8().data(); } char* QBluetoothUuid_QBluetoothUuid_ServiceClassToString(int uuid){ return QBluetoothUuid::serviceClassToString(static_cast(uuid)).toUtf8().data(); } void QBluetoothUuid_DestroyQBluetoothUuid(void* ptr){ static_cast(ptr)->~QBluetoothUuid(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic(){ return new QLowEnergyCharacteristic(); } void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic2(void* other){ return new QLowEnergyCharacteristic(*static_cast(other)); } int QLowEnergyCharacteristic_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } char* QLowEnergyCharacteristic_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } int QLowEnergyCharacteristic_Properties(void* ptr){ return static_cast(ptr)->properties(); } void* QLowEnergyCharacteristic_Value(void* ptr){ return new QByteArray(static_cast(ptr)->value()); } void QLowEnergyCharacteristic_DestroyQLowEnergyCharacteristic(void* ptr){ static_cast(ptr)->~QLowEnergyCharacteristic(); } class MyQLowEnergyController: public QLowEnergyController { public: void Signal_Connected() { callbackQLowEnergyControllerConnected(this, this->objectName().toUtf8().data()); }; void Signal_Disconnected() { callbackQLowEnergyControllerDisconnected(this, this->objectName().toUtf8().data()); }; void Signal_DiscoveryFinished() { callbackQLowEnergyControllerDiscoveryFinished(this, this->objectName().toUtf8().data()); }; void Signal_Error2(QLowEnergyController::Error newError) { callbackQLowEnergyControllerError2(this, this->objectName().toUtf8().data(), newError); }; void Signal_StateChanged(QLowEnergyController::ControllerState state) { callbackQLowEnergyControllerStateChanged(this, this->objectName().toUtf8().data(), state); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyControllerTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQLowEnergyControllerChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQLowEnergyControllerCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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_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, int newError){ static_cast(ptr)->error(static_cast(newError)); } 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, int state){ static_cast(ptr)->stateChanged(static_cast(state)); } void* QLowEnergyController_NewQLowEnergyController(void* remoteDeviceInfo, void* parent){ return new QLowEnergyController(*static_cast(remoteDeviceInfo), static_cast(parent)); } void QLowEnergyController_ConnectToDevice(void* ptr){ static_cast(ptr)->connectToDevice(); } 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(); } int QLowEnergyController_Error(void* ptr){ return static_cast(ptr)->error(); } char* QLowEnergyController_ErrorString(void* ptr){ return static_cast(ptr)->errorString().toUtf8().data(); } int QLowEnergyController_RemoteAddressType(void* ptr){ return static_cast(ptr)->remoteAddressType(); } char* QLowEnergyController_RemoteName(void* ptr){ return static_cast(ptr)->remoteName().toUtf8().data(); } void QLowEnergyController_SetRemoteAddressType(void* ptr, int ty){ static_cast(ptr)->setRemoteAddressType(static_cast(ty)); } int QLowEnergyController_State(void* ptr){ return static_cast(ptr)->state(); } void QLowEnergyController_DestroyQLowEnergyController(void* ptr){ static_cast(ptr)->~QLowEnergyController(); } 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_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* QLowEnergyDescriptor_NewQLowEnergyDescriptor(){ return new QLowEnergyDescriptor(); } void* QLowEnergyDescriptor_NewQLowEnergyDescriptor2(void* other){ return new QLowEnergyDescriptor(*static_cast(other)); } int QLowEnergyDescriptor_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } char* QLowEnergyDescriptor_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } int QLowEnergyDescriptor_Type(void* ptr){ return static_cast(ptr)->type(); } void* QLowEnergyDescriptor_Value(void* ptr){ return new QByteArray(static_cast(ptr)->value()); } void QLowEnergyDescriptor_DestroyQLowEnergyDescriptor(void* ptr){ static_cast(ptr)->~QLowEnergyDescriptor(); } class MyQLowEnergyService: public QLowEnergyService { public: void Signal_Error2(QLowEnergyService::ServiceError newError) { callbackQLowEnergyServiceError2(this, this->objectName().toUtf8().data(), newError); }; void Signal_StateChanged(QLowEnergyService::ServiceState newState) { callbackQLowEnergyServiceStateChanged(this, this->objectName().toUtf8().data(), newState); }; void timerEvent(QTimerEvent * event) { callbackQLowEnergyServiceTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQLowEnergyServiceChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQLowEnergyServiceCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; 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, int 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, int newState){ static_cast(ptr)->stateChanged(static_cast(newState)); } int QLowEnergyService_Contains(void* ptr, void* characteristic){ return static_cast(ptr)->contains(*static_cast(characteristic)); } int QLowEnergyService_Contains2(void* ptr, void* descriptor){ return static_cast(ptr)->contains(*static_cast(descriptor)); } void QLowEnergyService_DiscoverDetails(void* ptr){ static_cast(ptr)->discoverDetails(); } int QLowEnergyService_Error(void* ptr){ return static_cast(ptr)->error(); } 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)); } char* QLowEnergyService_ServiceName(void* ptr){ return static_cast(ptr)->serviceName().toUtf8().data(); } int QLowEnergyService_State(void* ptr){ return static_cast(ptr)->state(); } int QLowEnergyService_Type(void* ptr){ return static_cast(ptr)->type(); } void QLowEnergyService_WriteCharacteristic(void* ptr, void* characteristic, void* newValue, int 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_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_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)); }