cutego/bluetooth/bluetooth.cpp

2756 lines
122 KiB
C++
Raw Normal View History

2016-05-28 19:18:42 +03:00
// +build !minimal
#define protected public
#define private public
#include "bluetooth.h"
#include "_cgo_export.h"
#include <QBluetoothAddress>
#include <QBluetoothDeviceDiscoveryAgent>
#include <QBluetoothDeviceInfo>
#include <QBluetoothHostInfo>
#include <QBluetoothLocalDevice>
#include <QBluetoothServer>
#include <QBluetoothServiceDiscoveryAgent>
#include <QBluetoothServiceInfo>
#include <QBluetoothSocket>
#include <QBluetoothTransferManager>
#include <QBluetoothTransferReply>
#include <QBluetoothTransferRequest>
#include <QBluetoothUuid>
#include <QByteArray>
#include <QChildEvent>
#include <QEvent>
2015-11-13 20:44:32 +03:00
#include <QIODevice>
#include <QLowEnergyCharacteristic>
#include <QLowEnergyController>
#include <QLowEnergyDescriptor>
#include <QLowEnergyService>
#include <QMetaMethod>
#include <QMetaObject>
#include <QObject>
2015-11-13 20:44:32 +03:00
#include <QString>
#include <QTime>
#include <QTimer>
#include <QTimerEvent>
#include <QUuid>
2015-11-13 20:44:32 +03:00
#include <QVariant>
void* QBluetoothAddress_NewQBluetoothAddress()
{
return new QBluetoothAddress();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothAddress_NewQBluetoothAddress4(void* other)
{
return new QBluetoothAddress(*static_cast<QBluetoothAddress*>(other));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothAddress_NewQBluetoothAddress3(char* address)
{
return new QBluetoothAddress(QString(address));
2015-11-13 20:44:32 +03:00
}
void QBluetoothAddress_Clear(void* ptr)
{
static_cast<QBluetoothAddress*>(ptr)->clear();
2015-11-13 20:44:32 +03:00
}
int QBluetoothAddress_IsNull(void* ptr)
{
return static_cast<QBluetoothAddress*>(ptr)->isNull();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothAddress_ToString(void* ptr)
{
return static_cast<QBluetoothAddress*>(ptr)->toString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QBluetoothAddress_DestroyQBluetoothAddress(void* ptr)
{
static_cast<QBluetoothAddress*>(ptr)->~QBluetoothAddress();
2015-11-13 20:44:32 +03:00
}
class MyQBluetoothDeviceDiscoveryAgent: public QBluetoothDeviceDiscoveryAgent
{
2015-11-13 20:44:32 +03:00
public:
MyQBluetoothDeviceDiscoveryAgent(QObject *parent) : QBluetoothDeviceDiscoveryAgent(parent) {};
MyQBluetoothDeviceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent) : QBluetoothDeviceDiscoveryAgent(deviceAdapter, parent) {};
void Signal_Canceled() { callbackQBluetoothDeviceDiscoveryAgent_Canceled(this, this->objectName().toUtf8().data()); };
void Signal_DeviceDiscovered(const QBluetoothDeviceInfo & info) { callbackQBluetoothDeviceDiscoveryAgent_DeviceDiscovered(this, this->objectName().toUtf8().data(), new QBluetoothDeviceInfo(info)); };
void Signal_Error2(QBluetoothDeviceDiscoveryAgent::Error error) { callbackQBluetoothDeviceDiscoveryAgent_Error2(this, this->objectName().toUtf8().data(), error); };
void Signal_Finished() { callbackQBluetoothDeviceDiscoveryAgent_Finished(this, this->objectName().toUtf8().data()); };
void start() { callbackQBluetoothDeviceDiscoveryAgent_Start(this, this->objectName().toUtf8().data()); };
void stop() { callbackQBluetoothDeviceDiscoveryAgent_Stop(this, this->objectName().toUtf8().data()); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothDeviceDiscoveryAgent_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothDeviceDiscoveryAgent_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothDeviceDiscoveryAgent_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothDeviceDiscoveryAgent_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothDeviceDiscoveryAgent_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothDeviceDiscoveryAgent_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothDeviceDiscoveryAgent_MetaObject(const_cast<MyQBluetoothDeviceDiscoveryAgent*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void QBluetoothDeviceDiscoveryAgent_ConnectCanceled(void* ptr)
{
QObject::connect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)()>(&QBluetoothDeviceDiscoveryAgent::canceled), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)()>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Canceled));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_DisconnectCanceled(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)()>(&QBluetoothDeviceDiscoveryAgent::canceled), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)()>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Canceled));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_Canceled(void* ptr)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->canceled();
}
void QBluetoothDeviceDiscoveryAgent_ConnectDeviceDiscovered(void* ptr)
{
QObject::connect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)(const QBluetoothDeviceInfo &)>(&QBluetoothDeviceDiscoveryAgent::deviceDiscovered), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)(const QBluetoothDeviceInfo &)>(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QBluetoothDeviceDiscoveryAgent_DisconnectDeviceDiscovered(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)(const QBluetoothDeviceInfo &)>(&QBluetoothDeviceDiscoveryAgent::deviceDiscovered), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)(const QBluetoothDeviceInfo &)>(&MyQBluetoothDeviceDiscoveryAgent::Signal_DeviceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QBluetoothDeviceDiscoveryAgent_DeviceDiscovered(void* ptr, void* info)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->deviceDiscovered(*static_cast<QBluetoothDeviceInfo*>(info));
}
void QBluetoothDeviceDiscoveryAgent_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)(QBluetoothDeviceDiscoveryAgent::Error)>(&QBluetoothDeviceDiscoveryAgent::error), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)(QBluetoothDeviceDiscoveryAgent::Error)>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Error2));
}
void QBluetoothDeviceDiscoveryAgent_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)(QBluetoothDeviceDiscoveryAgent::Error)>(&QBluetoothDeviceDiscoveryAgent::error), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)(QBluetoothDeviceDiscoveryAgent::Error)>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Error2));
}
void QBluetoothDeviceDiscoveryAgent_Error2(void* ptr, int error)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->error(static_cast<QBluetoothDeviceDiscoveryAgent::Error>(error));
}
void QBluetoothDeviceDiscoveryAgent_ConnectFinished(void* ptr)
{
QObject::connect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)()>(&QBluetoothDeviceDiscoveryAgent::finished), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)()>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_DisconnectFinished(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothDeviceDiscoveryAgent::*)()>(&QBluetoothDeviceDiscoveryAgent::finished), static_cast<MyQBluetoothDeviceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothDeviceDiscoveryAgent::*)()>(&MyQBluetoothDeviceDiscoveryAgent::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_Finished(void* ptr)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->finished();
}
void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent(void* parent)
{
return new MyQBluetoothDeviceDiscoveryAgent(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent2(void* deviceAdapter, void* parent)
{
return new MyQBluetoothDeviceDiscoveryAgent(*static_cast<QBluetoothAddress*>(deviceAdapter), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
int QBluetoothDeviceDiscoveryAgent_Error(void* ptr)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothDeviceDiscoveryAgent_ErrorString(void* ptr)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
int QBluetoothDeviceDiscoveryAgent_InquiryType(void* ptr)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->inquiryType();
2015-11-13 20:44:32 +03:00
}
int QBluetoothDeviceDiscoveryAgent_IsActive(void* ptr)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->isActive();
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_SetInquiryType(void* ptr, int ty)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->setInquiryType(static_cast<QBluetoothDeviceDiscoveryAgent::InquiryType>(ty));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_Start(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), "start");
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceDiscoveryAgent_Stop(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), "stop");
2015-11-19 21:29:30 +03:00
}
void QBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgent(void* ptr)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->~QBluetoothDeviceDiscoveryAgent();
2015-11-19 21:29:30 +03:00
}
void QBluetoothDeviceDiscoveryAgent_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothDeviceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothDeviceDiscoveryAgent_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothDeviceDiscoveryAgent_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), "deleteLater");
}
void QBluetoothDeviceDiscoveryAgent_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::deleteLater();
}
void QBluetoothDeviceDiscoveryAgent_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothDeviceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothDeviceDiscoveryAgent_Event(void* ptr, void* e)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothDeviceDiscoveryAgent_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::event(static_cast<QEvent*>(e));
}
int QBluetoothDeviceDiscoveryAgent_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothDeviceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothDeviceDiscoveryAgent_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->metaObject());
}
void* QBluetoothDeviceDiscoveryAgent_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->QBluetoothDeviceDiscoveryAgent::metaObject());
}
void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo()
{
return new QBluetoothDeviceInfo();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo4(void* other)
{
return new QBluetoothDeviceInfo(*static_cast<QBluetoothDeviceInfo*>(other));
2015-11-19 21:29:30 +03:00
}
void* QBluetoothDeviceInfo_Address(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothDeviceInfo*>(ptr)->address());
}
int QBluetoothDeviceInfo_CoreConfigurations(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->coreConfigurations();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothDeviceInfo_DeviceUuid(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothUuid(static_cast<QBluetoothDeviceInfo*>(ptr)->deviceUuid());
}
int QBluetoothDeviceInfo_IsCached(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->isCached();
2015-11-19 21:29:30 +03:00
}
int QBluetoothDeviceInfo_IsValid(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->isValid();
2015-11-19 21:29:30 +03:00
}
int QBluetoothDeviceInfo_MajorDeviceClass(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->majorDeviceClass();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothDeviceInfo_Name(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
int QBluetoothDeviceInfo_ServiceClasses(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->serviceClasses();
2015-11-13 20:44:32 +03:00
}
int QBluetoothDeviceInfo_ServiceUuidsCompleteness(void* ptr)
{
return static_cast<QBluetoothDeviceInfo*>(ptr)->serviceUuidsCompleteness();
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceInfo_SetCached(void* ptr, int cached)
{
static_cast<QBluetoothDeviceInfo*>(ptr)->setCached(cached != 0);
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceInfo_SetCoreConfigurations(void* ptr, int coreConfigs)
{
static_cast<QBluetoothDeviceInfo*>(ptr)->setCoreConfigurations(static_cast<QBluetoothDeviceInfo::CoreConfiguration>(coreConfigs));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceInfo_SetDeviceUuid(void* ptr, void* uuid)
{
static_cast<QBluetoothDeviceInfo*>(ptr)->setDeviceUuid(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
void QBluetoothDeviceInfo_DestroyQBluetoothDeviceInfo(void* ptr)
{
static_cast<QBluetoothDeviceInfo*>(ptr)->~QBluetoothDeviceInfo();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothHostInfo_NewQBluetoothHostInfo()
{
return new QBluetoothHostInfo();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothHostInfo_NewQBluetoothHostInfo2(void* other)
{
return new QBluetoothHostInfo(*static_cast<QBluetoothHostInfo*>(other));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothHostInfo_Address(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothHostInfo*>(ptr)->address());
}
char* QBluetoothHostInfo_Name(void* ptr)
{
return static_cast<QBluetoothHostInfo*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QBluetoothHostInfo_SetAddress(void* ptr, void* address)
{
static_cast<QBluetoothHostInfo*>(ptr)->setAddress(*static_cast<QBluetoothAddress*>(address));
2015-11-13 20:44:32 +03:00
}
void QBluetoothHostInfo_SetName(void* ptr, char* name)
{
static_cast<QBluetoothHostInfo*>(ptr)->setName(QString(name));
2015-11-13 20:44:32 +03:00
}
void QBluetoothHostInfo_DestroyQBluetoothHostInfo(void* ptr)
{
static_cast<QBluetoothHostInfo*>(ptr)->~QBluetoothHostInfo();
2015-11-13 20:44:32 +03:00
}
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, this->objectName().toUtf8().data(), new QBluetoothAddress(address)); };
void Signal_DeviceDisconnected(const QBluetoothAddress & address) { callbackQBluetoothLocalDevice_DeviceDisconnected(this, this->objectName().toUtf8().data(), new QBluetoothAddress(address)); };
void Signal_Error(QBluetoothLocalDevice::Error error) { callbackQBluetoothLocalDevice_Error(this, this->objectName().toUtf8().data(), error); };
void Signal_HostModeStateChanged(QBluetoothLocalDevice::HostMode state) { callbackQBluetoothLocalDevice_HostModeStateChanged(this, this->objectName().toUtf8().data(), state); };
void Signal_PairingDisplayConfirmation(const QBluetoothAddress & address, QString pin) { callbackQBluetoothLocalDevice_PairingDisplayConfirmation(this, this->objectName().toUtf8().data(), new QBluetoothAddress(address), pin.toUtf8().data()); };
void Signal_PairingDisplayPinCode(const QBluetoothAddress & address, QString pin) { callbackQBluetoothLocalDevice_PairingDisplayPinCode(this, this->objectName().toUtf8().data(), new QBluetoothAddress(address), pin.toUtf8().data()); };
void Signal_PairingFinished(const QBluetoothAddress & address, QBluetoothLocalDevice::Pairing pairing) { callbackQBluetoothLocalDevice_PairingFinished(this, this->objectName().toUtf8().data(), new QBluetoothAddress(address), pairing); };
void pairingConfirmation(bool accept) { callbackQBluetoothLocalDevice_PairingConfirmation(this, this->objectName().toUtf8().data(), accept); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothLocalDevice_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothLocalDevice_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothLocalDevice_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothLocalDevice_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothLocalDevice_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothLocalDevice_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothLocalDevice_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothLocalDevice_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothLocalDevice_MetaObject(const_cast<MyQBluetoothLocalDevice*>(this), this->objectName().toUtf8().data())); };
};
2015-11-13 20:44:32 +03:00
void QBluetoothLocalDevice_ConnectDeviceConnected(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&QBluetoothLocalDevice::deviceConnected), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&MyQBluetoothLocalDevice::Signal_DeviceConnected));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DisconnectDeviceConnected(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&QBluetoothLocalDevice::deviceConnected), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&MyQBluetoothLocalDevice::Signal_DeviceConnected));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DeviceConnected(void* ptr, void* address)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothLocalDevice*>(ptr)->deviceConnected(*static_cast<QBluetoothAddress*>(address));
}
void QBluetoothLocalDevice_ConnectDeviceDisconnected(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&QBluetoothLocalDevice::deviceDisconnected), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&MyQBluetoothLocalDevice::Signal_DeviceDisconnected));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DisconnectDeviceDisconnected(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&QBluetoothLocalDevice::deviceDisconnected), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &)>(&MyQBluetoothLocalDevice::Signal_DeviceDisconnected));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DeviceDisconnected(void* ptr, void* address)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothLocalDevice*>(ptr)->deviceDisconnected(*static_cast<QBluetoothAddress*>(address));
}
void QBluetoothLocalDevice_ConnectError(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(QBluetoothLocalDevice::Error)>(&QBluetoothLocalDevice::error), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(QBluetoothLocalDevice::Error)>(&MyQBluetoothLocalDevice::Signal_Error));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_DisconnectError(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(QBluetoothLocalDevice::Error)>(&QBluetoothLocalDevice::error), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(QBluetoothLocalDevice::Error)>(&MyQBluetoothLocalDevice::Signal_Error));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_Error(void* ptr, int error)
{
static_cast<QBluetoothLocalDevice*>(ptr)->error(static_cast<QBluetoothLocalDevice::Error>(error));
}
void QBluetoothLocalDevice_ConnectHostModeStateChanged(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(QBluetoothLocalDevice::HostMode)>(&QBluetoothLocalDevice::hostModeStateChanged), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(QBluetoothLocalDevice::HostMode)>(&MyQBluetoothLocalDevice::Signal_HostModeStateChanged));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_DisconnectHostModeStateChanged(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(QBluetoothLocalDevice::HostMode)>(&QBluetoothLocalDevice::hostModeStateChanged), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(QBluetoothLocalDevice::HostMode)>(&MyQBluetoothLocalDevice::Signal_HostModeStateChanged));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_HostModeStateChanged(void* ptr, int state)
{
static_cast<QBluetoothLocalDevice*>(ptr)->hostModeStateChanged(static_cast<QBluetoothLocalDevice::HostMode>(state));
}
void QBluetoothLocalDevice_ConnectPairingDisplayConfirmation(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&QBluetoothLocalDevice::pairingDisplayConfirmation), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&MyQBluetoothLocalDevice::Signal_PairingDisplayConfirmation));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DisconnectPairingDisplayConfirmation(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&QBluetoothLocalDevice::pairingDisplayConfirmation), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&MyQBluetoothLocalDevice::Signal_PairingDisplayConfirmation));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_PairingDisplayConfirmation(void* ptr, void* address, char* pin)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothLocalDevice*>(ptr)->pairingDisplayConfirmation(*static_cast<QBluetoothAddress*>(address), QString(pin));
}
void QBluetoothLocalDevice_ConnectPairingDisplayPinCode(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&QBluetoothLocalDevice::pairingDisplayPinCode), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&MyQBluetoothLocalDevice::Signal_PairingDisplayPinCode));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DisconnectPairingDisplayPinCode(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&QBluetoothLocalDevice::pairingDisplayPinCode), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QString)>(&MyQBluetoothLocalDevice::Signal_PairingDisplayPinCode));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_PairingDisplayPinCode(void* ptr, void* address, char* pin)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothLocalDevice*>(ptr)->pairingDisplayPinCode(*static_cast<QBluetoothAddress*>(address), QString(pin));
}
void QBluetoothLocalDevice_ConnectPairingFinished(void* ptr)
{
QObject::connect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)>(&QBluetoothLocalDevice::pairingFinished), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)>(&MyQBluetoothLocalDevice::Signal_PairingFinished));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_DisconnectPairingFinished(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothLocalDevice*>(ptr), static_cast<void (QBluetoothLocalDevice::*)(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)>(&QBluetoothLocalDevice::pairingFinished), static_cast<MyQBluetoothLocalDevice*>(ptr), static_cast<void (MyQBluetoothLocalDevice::*)(const QBluetoothAddress &, QBluetoothLocalDevice::Pairing)>(&MyQBluetoothLocalDevice::Signal_PairingFinished));
2016-04-17 00:38:16 +03:00
}
void QBluetoothLocalDevice_PairingFinished(void* ptr, void* address, int pairing)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothLocalDevice*>(ptr)->pairingFinished(*static_cast<QBluetoothAddress*>(address), static_cast<QBluetoothLocalDevice::Pairing>(pairing));
}
int QBluetoothLocalDevice_IsValid(void* ptr)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->isValid();
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_DestroyQBluetoothLocalDevice(void* ptr)
{
static_cast<QBluetoothLocalDevice*>(ptr)->~QBluetoothLocalDevice();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothLocalDevice_NewQBluetoothLocalDevice(void* parent)
{
return new MyQBluetoothLocalDevice(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothLocalDevice_NewQBluetoothLocalDevice2(void* address, void* parent)
{
return new MyQBluetoothLocalDevice(*static_cast<QBluetoothAddress*>(address), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothLocalDevice_Address(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothLocalDevice*>(ptr)->address());
}
int QBluetoothLocalDevice_HostMode(void* ptr)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->hostMode();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothLocalDevice_Name(void* ptr)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_PairingConfirmation(void* ptr, int accept)
{
QMetaObject::invokeMethod(static_cast<QBluetoothLocalDevice*>(ptr), "pairingConfirmation", Q_ARG(bool, accept != 0));
2015-11-13 20:44:32 +03:00
}
int QBluetoothLocalDevice_PairingStatus(void* ptr, void* address)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->pairingStatus(*static_cast<QBluetoothAddress*>(address));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_PowerOn(void* ptr)
{
static_cast<QBluetoothLocalDevice*>(ptr)->powerOn();
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_RequestPairing(void* ptr, void* address, int pairing)
{
static_cast<QBluetoothLocalDevice*>(ptr)->requestPairing(*static_cast<QBluetoothAddress*>(address), static_cast<QBluetoothLocalDevice::Pairing>(pairing));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_SetHostMode(void* ptr, int mode)
{
static_cast<QBluetoothLocalDevice*>(ptr)->setHostMode(static_cast<QBluetoothLocalDevice::HostMode>(mode));
2015-11-13 20:44:32 +03:00
}
void QBluetoothLocalDevice_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothLocalDevice_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothLocalDevice_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothLocalDevice_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothLocalDevice_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothLocalDevice*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothLocalDevice_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothLocalDevice_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothLocalDevice_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothLocalDevice_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothLocalDevice*>(ptr), "deleteLater");
}
void QBluetoothLocalDevice_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::deleteLater();
}
void QBluetoothLocalDevice_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothLocalDevice*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothLocalDevice_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothLocalDevice_Event(void* ptr, void* e)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothLocalDevice_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::event(static_cast<QEvent*>(e));
}
int QBluetoothLocalDevice_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothLocalDevice_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothLocalDevice_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothLocalDevice*>(ptr)->metaObject());
}
void* QBluetoothLocalDevice_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothLocalDevice*>(ptr)->QBluetoothLocalDevice::metaObject());
}
class MyQBluetoothServer: public QBluetoothServer
{
2015-11-13 20:44:32 +03:00
public:
MyQBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent) : QBluetoothServer(serverType, parent) {};
void Signal_Error2(QBluetoothServer::Error error) { callbackQBluetoothServer_Error2(this, this->objectName().toUtf8().data(), error); };
void Signal_NewConnection() { callbackQBluetoothServer_NewConnection(this, this->objectName().toUtf8().data()); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothServer_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothServer_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothServer_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothServer_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothServer_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServer_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothServer_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServer_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothServer_MetaObject(const_cast<MyQBluetoothServer*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void* QBluetoothServer_NewQBluetoothServer(int serverType, void* parent)
{
return new MyQBluetoothServer(static_cast<QBluetoothServiceInfo::Protocol>(serverType), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QBluetoothServer*>(ptr), static_cast<void (QBluetoothServer::*)(QBluetoothServer::Error)>(&QBluetoothServer::error), static_cast<MyQBluetoothServer*>(ptr), static_cast<void (MyQBluetoothServer::*)(QBluetoothServer::Error)>(&MyQBluetoothServer::Signal_Error2));
}
void QBluetoothServer_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServer*>(ptr), static_cast<void (QBluetoothServer::*)(QBluetoothServer::Error)>(&QBluetoothServer::error), static_cast<MyQBluetoothServer*>(ptr), static_cast<void (MyQBluetoothServer::*)(QBluetoothServer::Error)>(&MyQBluetoothServer::Signal_Error2));
}
void QBluetoothServer_Error2(void* ptr, int error)
{
static_cast<QBluetoothServer*>(ptr)->error(static_cast<QBluetoothServer::Error>(error));
}
void QBluetoothServer_ConnectNewConnection(void* ptr)
{
QObject::connect(static_cast<QBluetoothServer*>(ptr), static_cast<void (QBluetoothServer::*)()>(&QBluetoothServer::newConnection), static_cast<MyQBluetoothServer*>(ptr), static_cast<void (MyQBluetoothServer::*)()>(&MyQBluetoothServer::Signal_NewConnection));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_DisconnectNewConnection(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServer*>(ptr), static_cast<void (QBluetoothServer::*)()>(&QBluetoothServer::newConnection), static_cast<MyQBluetoothServer*>(ptr), static_cast<void (MyQBluetoothServer::*)()>(&MyQBluetoothServer::Signal_NewConnection));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_NewConnection(void* ptr)
{
static_cast<QBluetoothServer*>(ptr)->newConnection();
}
int QBluetoothServer_Error(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServer_IsListening(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->isListening();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServer_Listen2(void* ptr, void* uuid, char* serviceName)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothServiceInfo(static_cast<QBluetoothServer*>(ptr)->listen(*static_cast<QBluetoothUuid*>(uuid), QString(serviceName)));
}
int QBluetoothServer_MaxPendingConnections(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->maxPendingConnections();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServer_ServerType(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->serverType();
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_DestroyQBluetoothServer(void* ptr)
{
2015-11-19 21:29:30 +03:00
static_cast<QBluetoothServer*>(ptr)->~QBluetoothServer();
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_Close(void* ptr)
{
2015-11-19 21:29:30 +03:00
static_cast<QBluetoothServer*>(ptr)->close();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServer_HasPendingConnections(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->hasPendingConnections();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServer_NextPendingConnection(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServer*>(ptr)->nextPendingConnection();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServer_ServerAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothServer*>(ptr)->serverAddress());
}
void QBluetoothServer_SetMaxPendingConnections(void* ptr, int numConnections)
{
2015-11-19 21:29:30 +03:00
static_cast<QBluetoothServer*>(ptr)->setMaxPendingConnections(numConnections);
2015-11-13 20:44:32 +03:00
}
void QBluetoothServer_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothServer_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothServer_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothServer_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothServer_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothServer*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServer_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServer_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothServer_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothServer_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothServer*>(ptr), "deleteLater");
}
void QBluetoothServer_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::deleteLater();
}
void QBluetoothServer_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothServer*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServer_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothServer_Event(void* ptr, void* e)
{
return static_cast<QBluetoothServer*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothServer_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::event(static_cast<QEvent*>(e));
}
int QBluetoothServer_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothServer*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothServer_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothServer_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothServer*>(ptr)->metaObject());
}
void* QBluetoothServer_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothServer*>(ptr)->QBluetoothServer::metaObject());
}
class MyQBluetoothServiceDiscoveryAgent: public QBluetoothServiceDiscoveryAgent
{
2015-11-13 20:44:32 +03:00
public:
MyQBluetoothServiceDiscoveryAgent(QObject *parent) : QBluetoothServiceDiscoveryAgent(parent) {};
MyQBluetoothServiceDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent) : QBluetoothServiceDiscoveryAgent(deviceAdapter, parent) {};
void Signal_Canceled() { callbackQBluetoothServiceDiscoveryAgent_Canceled(this, this->objectName().toUtf8().data()); };
void Signal_Error2(QBluetoothServiceDiscoveryAgent::Error error) { callbackQBluetoothServiceDiscoveryAgent_Error2(this, this->objectName().toUtf8().data(), error); };
void Signal_Finished() { callbackQBluetoothServiceDiscoveryAgent_Finished(this, this->objectName().toUtf8().data()); };
void Signal_ServiceDiscovered(const QBluetoothServiceInfo & info) { callbackQBluetoothServiceDiscoveryAgent_ServiceDiscovered(this, this->objectName().toUtf8().data(), new QBluetoothServiceInfo(info)); };
void clear() { callbackQBluetoothServiceDiscoveryAgent_Clear(this, this->objectName().toUtf8().data()); };
void start(QBluetoothServiceDiscoveryAgent::DiscoveryMode mode) { callbackQBluetoothServiceDiscoveryAgent_Start(this, this->objectName().toUtf8().data(), mode); };
void stop() { callbackQBluetoothServiceDiscoveryAgent_Stop(this, this->objectName().toUtf8().data()); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothServiceDiscoveryAgent_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothServiceDiscoveryAgent_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothServiceDiscoveryAgent_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothServiceDiscoveryAgent_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothServiceDiscoveryAgent_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothServiceDiscoveryAgent_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothServiceDiscoveryAgent_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothServiceDiscoveryAgent_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothServiceDiscoveryAgent_MetaObject(const_cast<MyQBluetoothServiceDiscoveryAgent*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void QBluetoothServiceDiscoveryAgent_ConnectCanceled(void* ptr)
{
QObject::connect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)()>(&QBluetoothServiceDiscoveryAgent::canceled), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)()>(&MyQBluetoothServiceDiscoveryAgent::Signal_Canceled));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_DisconnectCanceled(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)()>(&QBluetoothServiceDiscoveryAgent::canceled), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)()>(&MyQBluetoothServiceDiscoveryAgent::Signal_Canceled));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_Canceled(void* ptr)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->canceled();
}
void QBluetoothServiceDiscoveryAgent_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)(QBluetoothServiceDiscoveryAgent::Error)>(&QBluetoothServiceDiscoveryAgent::error), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)(QBluetoothServiceDiscoveryAgent::Error)>(&MyQBluetoothServiceDiscoveryAgent::Signal_Error2));
}
void QBluetoothServiceDiscoveryAgent_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)(QBluetoothServiceDiscoveryAgent::Error)>(&QBluetoothServiceDiscoveryAgent::error), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)(QBluetoothServiceDiscoveryAgent::Error)>(&MyQBluetoothServiceDiscoveryAgent::Signal_Error2));
}
void QBluetoothServiceDiscoveryAgent_Error2(void* ptr, int error)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->error(static_cast<QBluetoothServiceDiscoveryAgent::Error>(error));
}
void QBluetoothServiceDiscoveryAgent_ConnectFinished(void* ptr)
{
QObject::connect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)()>(&QBluetoothServiceDiscoveryAgent::finished), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)()>(&MyQBluetoothServiceDiscoveryAgent::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_DisconnectFinished(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)()>(&QBluetoothServiceDiscoveryAgent::finished), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)()>(&MyQBluetoothServiceDiscoveryAgent::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_Finished(void* ptr)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->finished();
}
void QBluetoothServiceDiscoveryAgent_ConnectServiceDiscovered(void* ptr)
{
QObject::connect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)(const QBluetoothServiceInfo &)>(&QBluetoothServiceDiscoveryAgent::serviceDiscovered), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)(const QBluetoothServiceInfo &)>(&MyQBluetoothServiceDiscoveryAgent::Signal_ServiceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QBluetoothServiceDiscoveryAgent_DisconnectServiceDiscovered(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (QBluetoothServiceDiscoveryAgent::*)(const QBluetoothServiceInfo &)>(&QBluetoothServiceDiscoveryAgent::serviceDiscovered), static_cast<MyQBluetoothServiceDiscoveryAgent*>(ptr), static_cast<void (MyQBluetoothServiceDiscoveryAgent::*)(const QBluetoothServiceInfo &)>(&MyQBluetoothServiceDiscoveryAgent::Signal_ServiceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QBluetoothServiceDiscoveryAgent_ServiceDiscovered(void* ptr, void* info)
{
2016-04-17 00:38:16 +03:00
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->serviceDiscovered(*static_cast<QBluetoothServiceInfo*>(info));
}
void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent(void* parent)
{
return new MyQBluetoothServiceDiscoveryAgent(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent2(void* deviceAdapter, void* parent)
{
return new MyQBluetoothServiceDiscoveryAgent(*static_cast<QBluetoothAddress*>(deviceAdapter), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_Clear(void* ptr)
{
2015-11-19 21:29:30 +03:00
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "clear");
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceDiscoveryAgent_Error(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothServiceDiscoveryAgent_ErrorString(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceDiscoveryAgent_IsActive(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->isActive();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceDiscoveryAgent_RemoteAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->remoteAddress());
}
int QBluetoothServiceDiscoveryAgent_SetRemoteAddress(void* ptr, void* address)
{
2015-11-19 21:29:30 +03:00
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->setRemoteAddress(*static_cast<QBluetoothAddress*>(address));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_SetUuidFilter2(void* ptr, void* uuid)
{
2015-11-19 21:29:30 +03:00
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->setUuidFilter(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_Start(void* ptr, int mode)
{
2015-11-19 21:29:30 +03:00
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "start", Q_ARG(QBluetoothServiceDiscoveryAgent::DiscoveryMode, static_cast<QBluetoothServiceDiscoveryAgent::DiscoveryMode>(mode)));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_Stop(void* ptr)
{
2015-11-19 21:29:30 +03:00
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "stop");
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(void* ptr)
{
2015-11-19 21:29:30 +03:00
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->~QBluetoothServiceDiscoveryAgent();
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceDiscoveryAgent_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServiceDiscoveryAgent_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServiceDiscoveryAgent_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothServiceDiscoveryAgent_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "deleteLater");
}
void QBluetoothServiceDiscoveryAgent_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::deleteLater();
}
void QBluetoothServiceDiscoveryAgent_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothServiceDiscoveryAgent_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothServiceDiscoveryAgent_Event(void* ptr, void* e)
{
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothServiceDiscoveryAgent_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::event(static_cast<QEvent*>(e));
}
int QBluetoothServiceDiscoveryAgent_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothServiceDiscoveryAgent_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothServiceDiscoveryAgent_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->metaObject());
}
void* QBluetoothServiceDiscoveryAgent_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->QBluetoothServiceDiscoveryAgent::metaObject());
}
int QBluetoothServiceInfo_ServiceName_Type()
{
return QBluetoothServiceInfo::ServiceName;
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_ServiceDescription_Type()
{
return QBluetoothServiceInfo::ServiceDescription;
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_ServiceProvider_Type()
{
return QBluetoothServiceInfo::ServiceProvider;
2015-11-13 20:44:32 +03:00
}
char* QBluetoothServiceInfo_ServiceDescription(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceDescription().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothServiceInfo_ServiceName(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceName().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothServiceInfo_ServiceProvider(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceProvider().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceInfo_ServiceUuid(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothUuid(static_cast<QBluetoothServiceInfo*>(ptr)->serviceUuid());
}
void QBluetoothServiceInfo_SetServiceDescription(void* ptr, char* description)
{
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceDescription(QString(description));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceInfo_SetServiceName(void* ptr, char* name)
{
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceName(QString(name));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceInfo_SetServiceProvider(void* ptr, char* provider)
{
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceProvider(QString(provider));
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceInfo_SetServiceUuid(void* ptr, void* uuid)
{
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceUuid(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceInfo_NewQBluetoothServiceInfo()
{
return new QBluetoothServiceInfo();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceInfo_NewQBluetoothServiceInfo2(void* other)
{
return new QBluetoothServiceInfo(*static_cast<QBluetoothServiceInfo*>(other));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothServiceInfo_Device(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothDeviceInfo(static_cast<QBluetoothServiceInfo*>(ptr)->device());
}
int QBluetoothServiceInfo_IsComplete(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->isComplete();
}
2015-11-13 20:44:32 +03:00
int QBluetoothServiceInfo_IsRegistered(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->isRegistered();
}
2015-11-13 20:44:32 +03:00
int QBluetoothServiceInfo_IsValid(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->isValid();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_ProtocolServiceMultiplexer(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->protocolServiceMultiplexer();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_RegisterService(void* ptr, void* localAdapter)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->registerService(*static_cast<QBluetoothAddress*>(localAdapter));
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_ServerChannel(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->serverChannel();
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceInfo_SetDevice(void* ptr, void* device)
{
static_cast<QBluetoothServiceInfo*>(ptr)->setDevice(*static_cast<QBluetoothDeviceInfo*>(device));
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_SocketProtocol(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->socketProtocol();
2015-11-13 20:44:32 +03:00
}
int QBluetoothServiceInfo_UnregisterService(void* ptr)
{
return static_cast<QBluetoothServiceInfo*>(ptr)->unregisterService();
2015-11-13 20:44:32 +03:00
}
void QBluetoothServiceInfo_DestroyQBluetoothServiceInfo(void* ptr)
{
static_cast<QBluetoothServiceInfo*>(ptr)->~QBluetoothServiceInfo();
}
2015-11-13 20:44:32 +03:00
class MyQBluetoothSocket: public QBluetoothSocket
{
2015-11-13 20:44:32 +03:00
public:
MyQBluetoothSocket(QBluetoothServiceInfo::Protocol socketType, QObject *parent) : QBluetoothSocket(socketType, parent) {};
MyQBluetoothSocket(QObject *parent) : QBluetoothSocket(parent) {};
void Signal_Connected() { callbackQBluetoothSocket_Connected(this, this->objectName().toUtf8().data()); };
void Signal_Disconnected() { callbackQBluetoothSocket_Disconnected(this, this->objectName().toUtf8().data()); };
void Signal_Error2(QBluetoothSocket::SocketError error) { callbackQBluetoothSocket_Error2(this, this->objectName().toUtf8().data(), error); };
void Signal_StateChanged(QBluetoothSocket::SocketState state) { callbackQBluetoothSocket_StateChanged(this, this->objectName().toUtf8().data(), state); };
qint64 bytesAvailable() const { return static_cast<long long>(callbackQBluetoothSocket_BytesAvailable(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data())); };
qint64 bytesToWrite() const { return static_cast<long long>(callbackQBluetoothSocket_BytesToWrite(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data())); };
bool canReadLine() const { return callbackQBluetoothSocket_CanReadLine(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data()) != 0; };
void close() { callbackQBluetoothSocket_Close(this, this->objectName().toUtf8().data()); };
qint64 writeData(const char * data, qint64 maxSize) { return static_cast<long long>(callbackQBluetoothSocket_WriteData(this, this->objectName().toUtf8().data(), QString(data).toUtf8().data(), static_cast<long long>(maxSize))); };
bool atEnd() const { return callbackQBluetoothSocket_AtEnd(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data()) != 0; };
bool open(QIODevice::OpenMode mode) { return callbackQBluetoothSocket_Open(this, this->objectName().toUtf8().data(), mode) != 0; };
qint64 pos() const { return static_cast<long long>(callbackQBluetoothSocket_Pos(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data())); };
qint64 readLineData(char * data, qint64 maxSize) { return static_cast<long long>(callbackQBluetoothSocket_ReadLineData(this, this->objectName().toUtf8().data(), QString(data).toUtf8().data(), static_cast<long long>(maxSize))); };
bool reset() { return callbackQBluetoothSocket_Reset(this, this->objectName().toUtf8().data()) != 0; };
bool seek(qint64 pos) { return callbackQBluetoothSocket_Seek(this, this->objectName().toUtf8().data(), static_cast<long long>(pos)) != 0; };
qint64 size() const { return static_cast<long long>(callbackQBluetoothSocket_Size(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data())); };
bool waitForBytesWritten(int msecs) { return callbackQBluetoothSocket_WaitForBytesWritten(this, this->objectName().toUtf8().data(), msecs) != 0; };
bool waitForReadyRead(int msecs) { return callbackQBluetoothSocket_WaitForReadyRead(this, this->objectName().toUtf8().data(), msecs) != 0; };
void timerEvent(QTimerEvent * event) { callbackQBluetoothSocket_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothSocket_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothSocket_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothSocket_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothSocket_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothSocket_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothSocket_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothSocket_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothSocket_MetaObject(const_cast<MyQBluetoothSocket*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void QBluetoothSocket_ConnectConnected(void* ptr)
{
QObject::connect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)()>(&QBluetoothSocket::connected), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)()>(&MyQBluetoothSocket::Signal_Connected));
2015-11-13 20:44:32 +03:00
}
void QBluetoothSocket_DisconnectConnected(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)()>(&QBluetoothSocket::connected), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)()>(&MyQBluetoothSocket::Signal_Connected));
2015-11-13 20:44:32 +03:00
}
void QBluetoothSocket_Connected(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->connected();
}
void QBluetoothSocket_ConnectDisconnected(void* ptr)
{
QObject::connect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)()>(&QBluetoothSocket::disconnected), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)()>(&MyQBluetoothSocket::Signal_Disconnected));
2015-11-13 20:44:32 +03:00
}
void QBluetoothSocket_DisconnectDisconnected(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)()>(&QBluetoothSocket::disconnected), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)()>(&MyQBluetoothSocket::Signal_Disconnected));
2015-11-13 20:44:32 +03:00
}
void QBluetoothSocket_Disconnected(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->disconnected();
}
void QBluetoothSocket_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)(QBluetoothSocket::SocketError)>(&QBluetoothSocket::error), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)(QBluetoothSocket::SocketError)>(&MyQBluetoothSocket::Signal_Error2));
}
void QBluetoothSocket_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)(QBluetoothSocket::SocketError)>(&QBluetoothSocket::error), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)(QBluetoothSocket::SocketError)>(&MyQBluetoothSocket::Signal_Error2));
}
void QBluetoothSocket_Error2(void* ptr, int error)
{
static_cast<QBluetoothSocket*>(ptr)->error(static_cast<QBluetoothSocket::SocketError>(error));
}
void QBluetoothSocket_ConnectStateChanged(void* ptr)
{
QObject::connect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)(QBluetoothSocket::SocketState)>(&QBluetoothSocket::stateChanged), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)(QBluetoothSocket::SocketState)>(&MyQBluetoothSocket::Signal_StateChanged));
2015-11-13 20:44:32 +03:00
}
void QBluetoothSocket_DisconnectStateChanged(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothSocket*>(ptr), static_cast<void (QBluetoothSocket::*)(QBluetoothSocket::SocketState)>(&QBluetoothSocket::stateChanged), static_cast<MyQBluetoothSocket*>(ptr), static_cast<void (MyQBluetoothSocket::*)(QBluetoothSocket::SocketState)>(&MyQBluetoothSocket::Signal_StateChanged));
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_StateChanged(void* ptr, int state)
{
static_cast<QBluetoothSocket*>(ptr)->stateChanged(static_cast<QBluetoothSocket::SocketState>(state));
}
void* QBluetoothSocket_NewQBluetoothSocket(int socketType, void* parent)
{
return new MyQBluetoothSocket(static_cast<QBluetoothServiceInfo::Protocol>(socketType), static_cast<QObject*>(parent));
2015-11-19 21:29:30 +03:00
}
void* QBluetoothSocket_NewQBluetoothSocket2(void* parent)
{
return new MyQBluetoothSocket(static_cast<QObject*>(parent));
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_Abort(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->abort();
2015-11-19 21:29:30 +03:00
}
long long QBluetoothSocket_BytesAvailable(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->bytesAvailable());
}
long long QBluetoothSocket_BytesAvailableDefault(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::bytesAvailable());
}
long long QBluetoothSocket_BytesToWrite(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->bytesToWrite());
}
long long QBluetoothSocket_BytesToWriteDefault(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::bytesToWrite());
}
int QBluetoothSocket_CanReadLine(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->canReadLine();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_CanReadLineDefault(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::canReadLine();
}
void QBluetoothSocket_Close(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->close();
}
void QBluetoothSocket_CloseDefault(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::close();
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_ConnectToService2(void* ptr, void* address, void* uuid, int openMode)
{
static_cast<QBluetoothSocket*>(ptr)->connectToService(*static_cast<QBluetoothAddress*>(address), *static_cast<QBluetoothUuid*>(uuid), static_cast<QIODevice::OpenModeFlag>(openMode));
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_ConnectToService(void* ptr, void* service, int openMode)
{
static_cast<QBluetoothSocket*>(ptr)->connectToService(*static_cast<QBluetoothServiceInfo*>(service), static_cast<QIODevice::OpenModeFlag>(openMode));
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_DisconnectFromService(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->disconnectFromService();
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_DoDeviceDiscovery(void* ptr, void* service, int openMode)
{
static_cast<QBluetoothSocket*>(ptr)->doDeviceDiscovery(*static_cast<QBluetoothServiceInfo*>(service), static_cast<QIODevice::OpenModeFlag>(openMode));
}
int QBluetoothSocket_Error(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->error();
2015-11-19 21:29:30 +03:00
}
char* QBluetoothSocket_ErrorString(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->errorString().toUtf8().data();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_IsSequential(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->isSequential();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothSocket_LocalAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothSocket*>(ptr)->localAddress());
}
char* QBluetoothSocket_LocalName(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->localName().toUtf8().data();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothSocket_PeerAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothSocket*>(ptr)->peerAddress());
}
char* QBluetoothSocket_PeerName(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->peerName().toUtf8().data();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_SetSocketDescriptor(void* ptr, int socketDescriptor, int socketType, int socketState, int openMode)
{
return static_cast<QBluetoothSocket*>(ptr)->setSocketDescriptor(socketDescriptor, static_cast<QBluetoothServiceInfo::Protocol>(socketType), static_cast<QBluetoothSocket::SocketState>(socketState), static_cast<QIODevice::OpenModeFlag>(openMode));
}
void QBluetoothSocket_SetSocketError(void* ptr, int error_)
{
static_cast<QBluetoothSocket*>(ptr)->setSocketError(static_cast<QBluetoothSocket::SocketError>(error_));
2015-11-19 21:29:30 +03:00
}
void QBluetoothSocket_SetSocketState(void* ptr, int state)
{
static_cast<QBluetoothSocket*>(ptr)->setSocketState(static_cast<QBluetoothSocket::SocketState>(state));
}
int QBluetoothSocket_SocketDescriptor(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->socketDescriptor();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_SocketType(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->socketType();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_State(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->state();
}
long long QBluetoothSocket_WriteData(void* ptr, char* data, long long maxSize)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->writeData(const_cast<const char*>(data), static_cast<long long>(maxSize)));
}
long long QBluetoothSocket_WriteDataDefault(void* ptr, char* data, long long maxSize)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::writeData(const_cast<const char*>(data), static_cast<long long>(maxSize)));
}
void QBluetoothSocket_DestroyQBluetoothSocket(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->~QBluetoothSocket();
2015-11-19 21:29:30 +03:00
}
int QBluetoothSocket_AtEnd(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->atEnd();
}
int QBluetoothSocket_AtEndDefault(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::atEnd();
}
int QBluetoothSocket_Open(void* ptr, int mode)
{
return static_cast<QBluetoothSocket*>(ptr)->open(static_cast<QIODevice::OpenModeFlag>(mode));
}
int QBluetoothSocket_OpenDefault(void* ptr, int mode)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::open(static_cast<QIODevice::OpenModeFlag>(mode));
}
long long QBluetoothSocket_Pos(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->pos());
}
long long QBluetoothSocket_PosDefault(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::pos());
}
long long QBluetoothSocket_ReadLineData(void* ptr, char* data, long long maxSize)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->readLineData(data, static_cast<long long>(maxSize)));
}
long long QBluetoothSocket_ReadLineDataDefault(void* ptr, char* data, long long maxSize)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::readLineData(data, static_cast<long long>(maxSize)));
}
int QBluetoothSocket_Reset(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->reset();
}
int QBluetoothSocket_ResetDefault(void* ptr)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::reset();
}
int QBluetoothSocket_Seek(void* ptr, long long pos)
{
return static_cast<QBluetoothSocket*>(ptr)->seek(static_cast<long long>(pos));
}
int QBluetoothSocket_SeekDefault(void* ptr, long long pos)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::seek(static_cast<long long>(pos));
}
long long QBluetoothSocket_Size(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->size());
}
long long QBluetoothSocket_SizeDefault(void* ptr)
{
return static_cast<long long>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::size());
}
int QBluetoothSocket_WaitForBytesWritten(void* ptr, int msecs)
{
return static_cast<QBluetoothSocket*>(ptr)->waitForBytesWritten(msecs);
}
int QBluetoothSocket_WaitForBytesWrittenDefault(void* ptr, int msecs)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::waitForBytesWritten(msecs);
}
int QBluetoothSocket_WaitForReadyRead(void* ptr, int msecs)
{
return static_cast<QBluetoothSocket*>(ptr)->waitForReadyRead(msecs);
}
int QBluetoothSocket_WaitForReadyReadDefault(void* ptr, int msecs)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::waitForReadyRead(msecs);
}
void QBluetoothSocket_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothSocket_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothSocket_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothSocket_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothSocket_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothSocket*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothSocket_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothSocket_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothSocket_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothSocket_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothSocket*>(ptr), "deleteLater");
}
void QBluetoothSocket_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::deleteLater();
}
void QBluetoothSocket_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothSocket*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothSocket_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothSocket_Event(void* ptr, void* e)
{
return static_cast<QBluetoothSocket*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothSocket_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::event(static_cast<QEvent*>(e));
}
int QBluetoothSocket_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothSocket*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothSocket_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothSocket_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothSocket*>(ptr)->metaObject());
}
void* QBluetoothSocket_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothSocket*>(ptr)->QBluetoothSocket::metaObject());
}
class MyQBluetoothTransferManager: public QBluetoothTransferManager
{
2015-11-13 20:44:32 +03:00
public:
MyQBluetoothTransferManager(QObject *parent) : QBluetoothTransferManager(parent) {};
void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferManager_Finished(this, this->objectName().toUtf8().data(), reply); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferManager_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothTransferManager_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferManager_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothTransferManager_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothTransferManager_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferManager_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothTransferManager_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferManager_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothTransferManager_MetaObject(const_cast<MyQBluetoothTransferManager*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void* QBluetoothTransferManager_Put(void* ptr, void* request, void* data)
{
return static_cast<QBluetoothTransferManager*>(ptr)->put(*static_cast<QBluetoothTransferRequest*>(request), static_cast<QIODevice*>(data));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothTransferManager_NewQBluetoothTransferManager(void* parent)
{
return new MyQBluetoothTransferManager(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferManager_ConnectFinished(void* ptr)
{
QObject::connect(static_cast<QBluetoothTransferManager*>(ptr), static_cast<void (QBluetoothTransferManager::*)(QBluetoothTransferReply *)>(&QBluetoothTransferManager::finished), static_cast<MyQBluetoothTransferManager*>(ptr), static_cast<void (MyQBluetoothTransferManager::*)(QBluetoothTransferReply *)>(&MyQBluetoothTransferManager::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferManager_DisconnectFinished(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothTransferManager*>(ptr), static_cast<void (QBluetoothTransferManager::*)(QBluetoothTransferReply *)>(&QBluetoothTransferManager::finished), static_cast<MyQBluetoothTransferManager*>(ptr), static_cast<void (MyQBluetoothTransferManager::*)(QBluetoothTransferReply *)>(&MyQBluetoothTransferManager::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferManager_Finished(void* ptr, void* reply)
{
static_cast<QBluetoothTransferManager*>(ptr)->finished(static_cast<QBluetoothTransferReply*>(reply));
}
void QBluetoothTransferManager_DestroyQBluetoothTransferManager(void* ptr)
{
static_cast<QBluetoothTransferManager*>(ptr)->~QBluetoothTransferManager();
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferManager_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothTransferManager_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothTransferManager_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothTransferManager_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothTransferManager_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothTransferManager*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferManager_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferManager_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothTransferManager_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothTransferManager_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothTransferManager*>(ptr), "deleteLater");
}
void QBluetoothTransferManager_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::deleteLater();
}
void QBluetoothTransferManager_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothTransferManager*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferManager_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothTransferManager_Event(void* ptr, void* e)
{
return static_cast<QBluetoothTransferManager*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothTransferManager_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::event(static_cast<QEvent*>(e));
}
int QBluetoothTransferManager_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothTransferManager*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothTransferManager_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothTransferManager_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothTransferManager*>(ptr)->metaObject());
}
void* QBluetoothTransferManager_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothTransferManager*>(ptr)->QBluetoothTransferManager::metaObject());
}
class MyQBluetoothTransferReply: public QBluetoothTransferReply
{
public:
MyQBluetoothTransferReply(QObject *parent) : QBluetoothTransferReply(parent) {};
void abort() { callbackQBluetoothTransferReply_Abort(this, this->objectName().toUtf8().data()); };
void Signal_Error2(QBluetoothTransferReply::TransferError errorType) { callbackQBluetoothTransferReply_Error2(this, this->objectName().toUtf8().data(), errorType); };
TransferError error() const { return static_cast<QBluetoothTransferReply::TransferError>(callbackQBluetoothTransferReply_Error(const_cast<MyQBluetoothTransferReply*>(this), this->objectName().toUtf8().data())); };
QString errorString() const { return QString(callbackQBluetoothTransferReply_ErrorString(const_cast<MyQBluetoothTransferReply*>(this), this->objectName().toUtf8().data())); };
void Signal_Finished(QBluetoothTransferReply * reply) { callbackQBluetoothTransferReply_Finished(this, this->objectName().toUtf8().data(), reply); };
bool isFinished() const { return callbackQBluetoothTransferReply_IsFinished(const_cast<MyQBluetoothTransferReply*>(this), this->objectName().toUtf8().data()) != 0; };
bool isRunning() const { return callbackQBluetoothTransferReply_IsRunning(const_cast<MyQBluetoothTransferReply*>(this), this->objectName().toUtf8().data()) != 0; };
void Signal_TransferProgress(qint64 bytesTransferred, qint64 bytesTotal) { callbackQBluetoothTransferReply_TransferProgress(this, this->objectName().toUtf8().data(), static_cast<long long>(bytesTransferred), static_cast<long long>(bytesTotal)); };
void timerEvent(QTimerEvent * event) { callbackQBluetoothTransferReply_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQBluetoothTransferReply_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferReply_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQBluetoothTransferReply_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQBluetoothTransferReply_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQBluetoothTransferReply_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQBluetoothTransferReply_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQBluetoothTransferReply_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQBluetoothTransferReply_MetaObject(const_cast<MyQBluetoothTransferReply*>(this), this->objectName().toUtf8().data())); };
};
void QBluetoothTransferReply_Abort(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothTransferReply*>(ptr), "abort");
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferReply_SetManager(void* ptr, void* manager)
{
static_cast<QBluetoothTransferReply*>(ptr)->setManager(static_cast<QBluetoothTransferManager*>(manager));
}
void QBluetoothTransferReply_SetRequest(void* ptr, void* request)
{
static_cast<QBluetoothTransferReply*>(ptr)->setRequest(*static_cast<QBluetoothTransferRequest*>(request));
}
void* QBluetoothTransferReply_NewQBluetoothTransferReply(void* parent)
{
return new MyQBluetoothTransferReply(static_cast<QObject*>(parent));
}
void QBluetoothTransferReply_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(QBluetoothTransferReply::TransferError)>(&QBluetoothTransferReply::error), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(QBluetoothTransferReply::TransferError)>(&MyQBluetoothTransferReply::Signal_Error2));
}
void QBluetoothTransferReply_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(QBluetoothTransferReply::TransferError)>(&QBluetoothTransferReply::error), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(QBluetoothTransferReply::TransferError)>(&MyQBluetoothTransferReply::Signal_Error2));
}
void QBluetoothTransferReply_Error2(void* ptr, int errorType)
{
static_cast<QBluetoothTransferReply*>(ptr)->error(static_cast<QBluetoothTransferReply::TransferError>(errorType));
}
int QBluetoothTransferReply_Error(void* ptr)
{
return static_cast<QBluetoothTransferReply*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothTransferReply_ErrorString(void* ptr)
{
return static_cast<QBluetoothTransferReply*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferReply_ConnectFinished(void* ptr)
{
QObject::connect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(QBluetoothTransferReply *)>(&QBluetoothTransferReply::finished), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(QBluetoothTransferReply *)>(&MyQBluetoothTransferReply::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferReply_DisconnectFinished(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(QBluetoothTransferReply *)>(&QBluetoothTransferReply::finished), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(QBluetoothTransferReply *)>(&MyQBluetoothTransferReply::Signal_Finished));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferReply_Finished(void* ptr, void* reply)
{
static_cast<QBluetoothTransferReply*>(ptr)->finished(static_cast<QBluetoothTransferReply*>(reply));
}
int QBluetoothTransferReply_IsFinished(void* ptr)
{
return static_cast<QBluetoothTransferReply*>(ptr)->isFinished();
2015-11-13 20:44:32 +03:00
}
int QBluetoothTransferReply_IsRunning(void* ptr)
{
return static_cast<QBluetoothTransferReply*>(ptr)->isRunning();
2015-11-13 20:44:32 +03:00
}
void* QBluetoothTransferReply_Manager(void* ptr)
{
return static_cast<QBluetoothTransferReply*>(ptr)->manager();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothTransferReply_Request(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothTransferRequest(static_cast<QBluetoothTransferReply*>(ptr)->request());
}
void QBluetoothTransferReply_ConnectTransferProgress(void* ptr)
{
QObject::connect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(qint64, qint64)>(&QBluetoothTransferReply::transferProgress), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(qint64, qint64)>(&MyQBluetoothTransferReply::Signal_TransferProgress));
}
void QBluetoothTransferReply_DisconnectTransferProgress(void* ptr)
{
QObject::disconnect(static_cast<QBluetoothTransferReply*>(ptr), static_cast<void (QBluetoothTransferReply::*)(qint64, qint64)>(&QBluetoothTransferReply::transferProgress), static_cast<MyQBluetoothTransferReply*>(ptr), static_cast<void (MyQBluetoothTransferReply::*)(qint64, qint64)>(&MyQBluetoothTransferReply::Signal_TransferProgress));
}
void QBluetoothTransferReply_TransferProgress(void* ptr, long long bytesTransferred, long long bytesTotal)
{
static_cast<QBluetoothTransferReply*>(ptr)->transferProgress(static_cast<long long>(bytesTransferred), static_cast<long long>(bytesTotal));
}
void QBluetoothTransferReply_DestroyQBluetoothTransferReply(void* ptr)
{
static_cast<QBluetoothTransferReply*>(ptr)->~QBluetoothTransferReply();
2015-11-19 21:29:30 +03:00
}
void QBluetoothTransferReply_TimerEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothTransferReply_TimerEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::timerEvent(static_cast<QTimerEvent*>(event));
}
void QBluetoothTransferReply_ChildEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothTransferReply_ChildEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::childEvent(static_cast<QChildEvent*>(event));
}
void QBluetoothTransferReply_ConnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothTransferReply*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferReply_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferReply_CustomEvent(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QBluetoothTransferReply_CustomEventDefault(void* ptr, void* event)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::customEvent(static_cast<QEvent*>(event));
}
void QBluetoothTransferReply_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QBluetoothTransferReply*>(ptr), "deleteLater");
}
void QBluetoothTransferReply_DeleteLaterDefault(void* ptr)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::deleteLater();
}
void QBluetoothTransferReply_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QBluetoothTransferReply*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QBluetoothTransferReply_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QBluetoothTransferReply_Event(void* ptr, void* e)
{
return static_cast<QBluetoothTransferReply*>(ptr)->event(static_cast<QEvent*>(e));
}
int QBluetoothTransferReply_EventDefault(void* ptr, void* e)
{
return static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::event(static_cast<QEvent*>(e));
}
int QBluetoothTransferReply_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothTransferReply*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QBluetoothTransferReply_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QBluetoothTransferReply_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothTransferReply*>(ptr)->metaObject());
}
void* QBluetoothTransferReply_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QBluetoothTransferReply*>(ptr)->QBluetoothTransferReply::metaObject());
}
void* QBluetoothTransferRequest_NewQBluetoothTransferRequest(void* address)
{
return new QBluetoothTransferRequest(*static_cast<QBluetoothAddress*>(address));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothTransferRequest_NewQBluetoothTransferRequest2(void* other)
{
return new QBluetoothTransferRequest(*static_cast<QBluetoothTransferRequest*>(other));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothTransferRequest_Address(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QBluetoothTransferRequest*>(ptr)->address());
}
void* QBluetoothTransferRequest_Attribute(void* ptr, int code, void* defaultValue)
{
return new QVariant(static_cast<QBluetoothTransferRequest*>(ptr)->attribute(static_cast<QBluetoothTransferRequest::Attribute>(code), *static_cast<QVariant*>(defaultValue)));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferRequest_SetAttribute(void* ptr, int code, void* value)
{
static_cast<QBluetoothTransferRequest*>(ptr)->setAttribute(static_cast<QBluetoothTransferRequest::Attribute>(code), *static_cast<QVariant*>(value));
2015-11-13 20:44:32 +03:00
}
void QBluetoothTransferRequest_DestroyQBluetoothTransferRequest(void* ptr)
{
static_cast<QBluetoothTransferRequest*>(ptr)->~QBluetoothTransferRequest();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid()
{
return new QBluetoothUuid();
2015-11-19 21:29:30 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid4(int uuid)
{
return new QBluetoothUuid(static_cast<QBluetoothUuid::CharacteristicType>(uuid));
2015-11-19 21:29:30 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid5(int uuid)
{
return new QBluetoothUuid(static_cast<QBluetoothUuid::DescriptorType>(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid2(int uuid)
{
return new QBluetoothUuid(static_cast<QBluetoothUuid::ProtocolUuid>(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid3(int uuid)
{
return new QBluetoothUuid(static_cast<QBluetoothUuid::ServiceClassUuid>(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid10(void* uuid)
{
return new QBluetoothUuid(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid9(char* uuid)
{
return new QBluetoothUuid(QString(uuid));
2015-11-13 20:44:32 +03:00
}
void* QBluetoothUuid_NewQBluetoothUuid11(void* uuid)
{
return new QBluetoothUuid(*static_cast<QUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
char* QBluetoothUuid_QBluetoothUuid_CharacteristicToString(int uuid)
{
return QBluetoothUuid::characteristicToString(static_cast<QBluetoothUuid::CharacteristicType>(uuid)).toUtf8().data();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothUuid_QBluetoothUuid_DescriptorToString(int uuid)
{
return QBluetoothUuid::descriptorToString(static_cast<QBluetoothUuid::DescriptorType>(uuid)).toUtf8().data();
2015-11-13 20:44:32 +03:00
}
int QBluetoothUuid_MinimumSize(void* ptr)
{
return static_cast<QBluetoothUuid*>(ptr)->minimumSize();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothUuid_QBluetoothUuid_ProtocolToString(int uuid)
{
return QBluetoothUuid::protocolToString(static_cast<QBluetoothUuid::ProtocolUuid>(uuid)).toUtf8().data();
2015-11-13 20:44:32 +03:00
}
char* QBluetoothUuid_QBluetoothUuid_ServiceClassToString(int uuid)
{
return QBluetoothUuid::serviceClassToString(static_cast<QBluetoothUuid::ServiceClassUuid>(uuid)).toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QBluetoothUuid_DestroyQBluetoothUuid(void* ptr)
{
static_cast<QBluetoothUuid*>(ptr)->~QBluetoothUuid();
2015-11-13 20:44:32 +03:00
}
void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic()
{
return new QLowEnergyCharacteristic();
2015-11-13 20:44:32 +03:00
}
void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic2(void* other)
{
return new QLowEnergyCharacteristic(*static_cast<QLowEnergyCharacteristic*>(other));
2015-11-13 20:44:32 +03:00
}
void* QLowEnergyCharacteristic_Descriptor(void* ptr, void* uuid)
{
2016-04-17 00:38:16 +03:00
return new QLowEnergyDescriptor(static_cast<QLowEnergyCharacteristic*>(ptr)->descriptor(*static_cast<QBluetoothUuid*>(uuid)));
}
int QLowEnergyCharacteristic_IsValid(void* ptr)
{
return static_cast<QLowEnergyCharacteristic*>(ptr)->isValid();
2015-11-13 20:44:32 +03:00
}
char* QLowEnergyCharacteristic_Name(void* ptr)
{
return static_cast<QLowEnergyCharacteristic*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
int QLowEnergyCharacteristic_Properties(void* ptr)
{
return static_cast<QLowEnergyCharacteristic*>(ptr)->properties();
2015-11-13 20:44:32 +03:00
}
void* QLowEnergyCharacteristic_Uuid(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothUuid(static_cast<QLowEnergyCharacteristic*>(ptr)->uuid());
}
char* QLowEnergyCharacteristic_Value(void* ptr)
{
2016-04-17 00:38:16 +03:00
return QString(static_cast<QLowEnergyCharacteristic*>(ptr)->value()).toUtf8().data();
2015-11-13 20:44:32 +03:00
}
void QLowEnergyCharacteristic_DestroyQLowEnergyCharacteristic(void* ptr)
{
static_cast<QLowEnergyCharacteristic*>(ptr)->~QLowEnergyCharacteristic();
}
2015-11-13 20:44:32 +03:00
class MyQLowEnergyController: public QLowEnergyController
{
2015-11-13 20:44:32 +03:00
public:
MyQLowEnergyController(const QBluetoothDeviceInfo &remoteDeviceInfo, QObject *parent) : QLowEnergyController(remoteDeviceInfo, parent) {};
void Signal_Connected() { callbackQLowEnergyController_Connected(this, this->objectName().toUtf8().data()); };
void Signal_Disconnected() { callbackQLowEnergyController_Disconnected(this, this->objectName().toUtf8().data()); };
void Signal_DiscoveryFinished() { callbackQLowEnergyController_DiscoveryFinished(this, this->objectName().toUtf8().data()); };
void Signal_Error2(QLowEnergyController::Error newError) { callbackQLowEnergyController_Error2(this, this->objectName().toUtf8().data(), newError); };
void Signal_ServiceDiscovered(const QBluetoothUuid & newService) { callbackQLowEnergyController_ServiceDiscovered(this, this->objectName().toUtf8().data(), new QBluetoothUuid(newService)); };
void Signal_StateChanged(QLowEnergyController::ControllerState state) { callbackQLowEnergyController_StateChanged(this, this->objectName().toUtf8().data(), state); };
void timerEvent(QTimerEvent * event) { callbackQLowEnergyController_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQLowEnergyController_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQLowEnergyController_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQLowEnergyController_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQLowEnergyController_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyController_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQLowEnergyController_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyController_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQLowEnergyController_MetaObject(const_cast<MyQLowEnergyController*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
void QLowEnergyController_ConnectConnected(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::connected), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_Connected));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_DisconnectConnected(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::connected), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_Connected));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_Connected(void* ptr)
{
static_cast<QLowEnergyController*>(ptr)->connected();
}
void QLowEnergyController_ConnectDisconnected(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::disconnected), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_Disconnected));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_DisconnectDisconnected(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::disconnected), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_Disconnected));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_Disconnected(void* ptr)
{
static_cast<QLowEnergyController*>(ptr)->disconnected();
}
void QLowEnergyController_ConnectDiscoveryFinished(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::discoveryFinished), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_DiscoveryFinished));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_DisconnectDiscoveryFinished(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)()>(&QLowEnergyController::discoveryFinished), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)()>(&MyQLowEnergyController::Signal_DiscoveryFinished));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_DiscoveryFinished(void* ptr)
{
static_cast<QLowEnergyController*>(ptr)->discoveryFinished();
}
void QLowEnergyController_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(QLowEnergyController::Error)>(&QLowEnergyController::error), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(QLowEnergyController::Error)>(&MyQLowEnergyController::Signal_Error2));
}
void QLowEnergyController_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(QLowEnergyController::Error)>(&QLowEnergyController::error), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(QLowEnergyController::Error)>(&MyQLowEnergyController::Signal_Error2));
}
void QLowEnergyController_Error2(void* ptr, int newError)
{
static_cast<QLowEnergyController*>(ptr)->error(static_cast<QLowEnergyController::Error>(newError));
}
void QLowEnergyController_ConnectServiceDiscovered(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(const QBluetoothUuid &)>(&QLowEnergyController::serviceDiscovered), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(const QBluetoothUuid &)>(&MyQLowEnergyController::Signal_ServiceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyController_DisconnectServiceDiscovered(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(const QBluetoothUuid &)>(&QLowEnergyController::serviceDiscovered), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(const QBluetoothUuid &)>(&MyQLowEnergyController::Signal_ServiceDiscovered));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyController_ServiceDiscovered(void* ptr, void* newService)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyController*>(ptr)->serviceDiscovered(*static_cast<QBluetoothUuid*>(newService));
}
void QLowEnergyController_ConnectStateChanged(void* ptr)
{
QObject::connect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(QLowEnergyController::ControllerState)>(&QLowEnergyController::stateChanged), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(QLowEnergyController::ControllerState)>(&MyQLowEnergyController::Signal_StateChanged));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_DisconnectStateChanged(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyController*>(ptr), static_cast<void (QLowEnergyController::*)(QLowEnergyController::ControllerState)>(&QLowEnergyController::stateChanged), static_cast<MyQLowEnergyController*>(ptr), static_cast<void (MyQLowEnergyController::*)(QLowEnergyController::ControllerState)>(&MyQLowEnergyController::Signal_StateChanged));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_StateChanged(void* ptr, int state)
{
static_cast<QLowEnergyController*>(ptr)->stateChanged(static_cast<QLowEnergyController::ControllerState>(state));
}
void* QLowEnergyController_NewQLowEnergyController(void* remoteDeviceInfo, void* parent)
{
return new MyQLowEnergyController(*static_cast<QBluetoothDeviceInfo*>(remoteDeviceInfo), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void QLowEnergyController_ConnectToDevice(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QLowEnergyController*>(ptr)->connectToDevice();
}
void* QLowEnergyController_CreateServiceObject(void* ptr, void* serviceUuid, void* parent)
{
2015-11-13 20:44:32 +03:00
return static_cast<QLowEnergyController*>(ptr)->createServiceObject(*static_cast<QBluetoothUuid*>(serviceUuid), static_cast<QObject*>(parent));
}
void QLowEnergyController_DisconnectFromDevice(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QLowEnergyController*>(ptr)->disconnectFromDevice();
}
void QLowEnergyController_DiscoverServices(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QLowEnergyController*>(ptr)->discoverServices();
}
int QLowEnergyController_Error(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QLowEnergyController*>(ptr)->error();
}
char* QLowEnergyController_ErrorString(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QLowEnergyController*>(ptr)->errorString().toUtf8().data();
}
void* QLowEnergyController_LocalAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QLowEnergyController*>(ptr)->localAddress());
}
void* QLowEnergyController_RemoteAddress(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothAddress(static_cast<QLowEnergyController*>(ptr)->remoteAddress());
}
int QLowEnergyController_RemoteAddressType(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QLowEnergyController*>(ptr)->remoteAddressType();
}
char* QLowEnergyController_RemoteName(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QLowEnergyController*>(ptr)->remoteName().toUtf8().data();
}
void QLowEnergyController_SetRemoteAddressType(void* ptr, int ty)
{
2015-11-13 20:44:32 +03:00
static_cast<QLowEnergyController*>(ptr)->setRemoteAddressType(static_cast<QLowEnergyController::RemoteAddressType>(ty));
}
int QLowEnergyController_State(void* ptr)
{
return static_cast<QLowEnergyController*>(ptr)->state();
}
void QLowEnergyController_DestroyQLowEnergyController(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QLowEnergyController*>(ptr)->~QLowEnergyController();
}
void QLowEnergyController_TimerEvent(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QLowEnergyController_TimerEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::timerEvent(static_cast<QTimerEvent*>(event));
}
void QLowEnergyController_ChildEvent(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QLowEnergyController_ChildEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::childEvent(static_cast<QChildEvent*>(event));
}
void QLowEnergyController_ConnectNotify(void* ptr, void* sign)
{
static_cast<QLowEnergyController*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyController_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyController_CustomEvent(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QLowEnergyController_CustomEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::customEvent(static_cast<QEvent*>(event));
}
void QLowEnergyController_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QLowEnergyController*>(ptr), "deleteLater");
}
void QLowEnergyController_DeleteLaterDefault(void* ptr)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::deleteLater();
}
void QLowEnergyController_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QLowEnergyController*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyController_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QLowEnergyController_Event(void* ptr, void* e)
{
return static_cast<QLowEnergyController*>(ptr)->event(static_cast<QEvent*>(e));
}
int QLowEnergyController_EventDefault(void* ptr, void* e)
{
return static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::event(static_cast<QEvent*>(e));
}
int QLowEnergyController_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QLowEnergyController*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QLowEnergyController_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QLowEnergyController_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QLowEnergyController*>(ptr)->metaObject());
}
void* QLowEnergyController_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QLowEnergyController*>(ptr)->QLowEnergyController::metaObject());
}
void* QLowEnergyDescriptor_NewQLowEnergyDescriptor()
{
return new QLowEnergyDescriptor();
}
void* QLowEnergyDescriptor_NewQLowEnergyDescriptor2(void* other)
{
return new QLowEnergyDescriptor(*static_cast<QLowEnergyDescriptor*>(other));
}
int QLowEnergyDescriptor_IsValid(void* ptr)
{
return static_cast<QLowEnergyDescriptor*>(ptr)->isValid();
}
char* QLowEnergyDescriptor_Name(void* ptr)
{
return static_cast<QLowEnergyDescriptor*>(ptr)->name().toUtf8().data();
}
int QLowEnergyDescriptor_Type(void* ptr)
{
return static_cast<QLowEnergyDescriptor*>(ptr)->type();
}
void* QLowEnergyDescriptor_Uuid(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothUuid(static_cast<QLowEnergyDescriptor*>(ptr)->uuid());
}
char* QLowEnergyDescriptor_Value(void* ptr)
{
2016-04-17 00:38:16 +03:00
return QString(static_cast<QLowEnergyDescriptor*>(ptr)->value()).toUtf8().data();
}
void QLowEnergyDescriptor_DestroyQLowEnergyDescriptor(void* ptr)
{
static_cast<QLowEnergyDescriptor*>(ptr)->~QLowEnergyDescriptor();
}
class MyQLowEnergyService: public QLowEnergyService
{
public:
void Signal_CharacteristicChanged(const QLowEnergyCharacteristic & characteristic, const QByteArray & newValue) { callbackQLowEnergyService_CharacteristicChanged(this, this->objectName().toUtf8().data(), new QLowEnergyCharacteristic(characteristic), QString(newValue).toUtf8().data()); };
void Signal_CharacteristicRead(const QLowEnergyCharacteristic & characteristic, const QByteArray & value) { callbackQLowEnergyService_CharacteristicRead(this, this->objectName().toUtf8().data(), new QLowEnergyCharacteristic(characteristic), QString(value).toUtf8().data()); };
void Signal_CharacteristicWritten(const QLowEnergyCharacteristic & characteristic, const QByteArray & newValue) { callbackQLowEnergyService_CharacteristicWritten(this, this->objectName().toUtf8().data(), new QLowEnergyCharacteristic(characteristic), QString(newValue).toUtf8().data()); };
void Signal_DescriptorRead(const QLowEnergyDescriptor & descriptor, const QByteArray & value) { callbackQLowEnergyService_DescriptorRead(this, this->objectName().toUtf8().data(), new QLowEnergyDescriptor(descriptor), QString(value).toUtf8().data()); };
void Signal_DescriptorWritten(const QLowEnergyDescriptor & descriptor, const QByteArray & newValue) { callbackQLowEnergyService_DescriptorWritten(this, this->objectName().toUtf8().data(), new QLowEnergyDescriptor(descriptor), QString(newValue).toUtf8().data()); };
void Signal_Error2(QLowEnergyService::ServiceError newError) { callbackQLowEnergyService_Error2(this, this->objectName().toUtf8().data(), newError); };
void Signal_StateChanged(QLowEnergyService::ServiceState newState) { callbackQLowEnergyService_StateChanged(this, this->objectName().toUtf8().data(), newState); };
void timerEvent(QTimerEvent * event) { callbackQLowEnergyService_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQLowEnergyService_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQLowEnergyService_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQLowEnergyService_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQLowEnergyService_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQLowEnergyService_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQLowEnergyService_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQLowEnergyService_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQLowEnergyService_MetaObject(const_cast<MyQLowEnergyService*>(this), this->objectName().toUtf8().data())); };
};
void QLowEnergyService_ConnectCharacteristicChanged(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicChanged), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicChanged));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DisconnectCharacteristicChanged(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicChanged), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicChanged));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_CharacteristicChanged(void* ptr, void* characteristic, char* newValue)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->characteristicChanged(*static_cast<QLowEnergyCharacteristic*>(characteristic), QByteArray(newValue));
}
void QLowEnergyService_ConnectCharacteristicRead(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicRead), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicRead));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DisconnectCharacteristicRead(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicRead), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicRead));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_CharacteristicRead(void* ptr, void* characteristic, char* value)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->characteristicRead(*static_cast<QLowEnergyCharacteristic*>(characteristic), QByteArray(value));
}
void QLowEnergyService_ConnectCharacteristicWritten(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicWritten), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicWritten));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DisconnectCharacteristicWritten(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&QLowEnergyService::characteristicWritten), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyCharacteristic &, const QByteArray &)>(&MyQLowEnergyService::Signal_CharacteristicWritten));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_CharacteristicWritten(void* ptr, void* characteristic, char* newValue)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->characteristicWritten(*static_cast<QLowEnergyCharacteristic*>(characteristic), QByteArray(newValue));
}
void QLowEnergyService_ConnectDescriptorRead(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&QLowEnergyService::descriptorRead), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&MyQLowEnergyService::Signal_DescriptorRead));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DisconnectDescriptorRead(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&QLowEnergyService::descriptorRead), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&MyQLowEnergyService::Signal_DescriptorRead));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DescriptorRead(void* ptr, void* descriptor, char* value)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->descriptorRead(*static_cast<QLowEnergyDescriptor*>(descriptor), QByteArray(value));
}
void QLowEnergyService_ConnectDescriptorWritten(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&QLowEnergyService::descriptorWritten), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&MyQLowEnergyService::Signal_DescriptorWritten));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DisconnectDescriptorWritten(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&QLowEnergyService::descriptorWritten), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(const QLowEnergyDescriptor &, const QByteArray &)>(&MyQLowEnergyService::Signal_DescriptorWritten));
2016-04-17 00:38:16 +03:00
}
void QLowEnergyService_DescriptorWritten(void* ptr, void* descriptor, char* newValue)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->descriptorWritten(*static_cast<QLowEnergyDescriptor*>(descriptor), QByteArray(newValue));
}
void QLowEnergyService_ConnectError2(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(QLowEnergyService::ServiceError)>(&QLowEnergyService::error), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(QLowEnergyService::ServiceError)>(&MyQLowEnergyService::Signal_Error2));
}
void QLowEnergyService_DisconnectError2(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(QLowEnergyService::ServiceError)>(&QLowEnergyService::error), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(QLowEnergyService::ServiceError)>(&MyQLowEnergyService::Signal_Error2));
}
void QLowEnergyService_Error2(void* ptr, int newError)
{
static_cast<QLowEnergyService*>(ptr)->error(static_cast<QLowEnergyService::ServiceError>(newError));
}
void QLowEnergyService_ConnectStateChanged(void* ptr)
{
QObject::connect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(QLowEnergyService::ServiceState)>(&QLowEnergyService::stateChanged), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(QLowEnergyService::ServiceState)>(&MyQLowEnergyService::Signal_StateChanged));
}
void QLowEnergyService_DisconnectStateChanged(void* ptr)
{
QObject::disconnect(static_cast<QLowEnergyService*>(ptr), static_cast<void (QLowEnergyService::*)(QLowEnergyService::ServiceState)>(&QLowEnergyService::stateChanged), static_cast<MyQLowEnergyService*>(ptr), static_cast<void (MyQLowEnergyService::*)(QLowEnergyService::ServiceState)>(&MyQLowEnergyService::Signal_StateChanged));
}
void QLowEnergyService_StateChanged(void* ptr, int newState)
{
static_cast<QLowEnergyService*>(ptr)->stateChanged(static_cast<QLowEnergyService::ServiceState>(newState));
}
void* QLowEnergyService_Characteristic(void* ptr, void* uuid)
{
2016-04-17 00:38:16 +03:00
return new QLowEnergyCharacteristic(static_cast<QLowEnergyService*>(ptr)->characteristic(*static_cast<QBluetoothUuid*>(uuid)));
}
int QLowEnergyService_Contains(void* ptr, void* characteristic)
{
return static_cast<QLowEnergyService*>(ptr)->contains(*static_cast<QLowEnergyCharacteristic*>(characteristic));
}
int QLowEnergyService_Contains2(void* ptr, void* descriptor)
{
return static_cast<QLowEnergyService*>(ptr)->contains(*static_cast<QLowEnergyDescriptor*>(descriptor));
}
void QLowEnergyService_DiscoverDetails(void* ptr)
{
static_cast<QLowEnergyService*>(ptr)->discoverDetails();
}
int QLowEnergyService_Error(void* ptr)
{
return static_cast<QLowEnergyService*>(ptr)->error();
}
void QLowEnergyService_ReadCharacteristic(void* ptr, void* characteristic)
{
static_cast<QLowEnergyService*>(ptr)->readCharacteristic(*static_cast<QLowEnergyCharacteristic*>(characteristic));
}
void QLowEnergyService_ReadDescriptor(void* ptr, void* descriptor)
{
static_cast<QLowEnergyService*>(ptr)->readDescriptor(*static_cast<QLowEnergyDescriptor*>(descriptor));
}
char* QLowEnergyService_ServiceName(void* ptr)
{
return static_cast<QLowEnergyService*>(ptr)->serviceName().toUtf8().data();
}
void* QLowEnergyService_ServiceUuid(void* ptr)
{
2016-04-17 00:38:16 +03:00
return new QBluetoothUuid(static_cast<QLowEnergyService*>(ptr)->serviceUuid());
}
int QLowEnergyService_State(void* ptr)
{
return static_cast<QLowEnergyService*>(ptr)->state();
}
int QLowEnergyService_Type(void* ptr)
{
return static_cast<QLowEnergyService*>(ptr)->type();
}
void QLowEnergyService_WriteCharacteristic(void* ptr, void* characteristic, char* newValue, int mode)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->writeCharacteristic(*static_cast<QLowEnergyCharacteristic*>(characteristic), QByteArray(newValue), static_cast<QLowEnergyService::WriteMode>(mode));
}
void QLowEnergyService_WriteDescriptor(void* ptr, void* descriptor, char* newValue)
{
2016-04-17 00:38:16 +03:00
static_cast<QLowEnergyService*>(ptr)->writeDescriptor(*static_cast<QLowEnergyDescriptor*>(descriptor), QByteArray(newValue));
}
void QLowEnergyService_DestroyQLowEnergyService(void* ptr)
{
static_cast<QLowEnergyService*>(ptr)->~QLowEnergyService();
}
void QLowEnergyService_TimerEvent(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QLowEnergyService_TimerEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::timerEvent(static_cast<QTimerEvent*>(event));
}
void QLowEnergyService_ChildEvent(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QLowEnergyService_ChildEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::childEvent(static_cast<QChildEvent*>(event));
}
void QLowEnergyService_ConnectNotify(void* ptr, void* sign)
{
static_cast<QLowEnergyService*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyService_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyService_CustomEvent(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QLowEnergyService_CustomEventDefault(void* ptr, void* event)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::customEvent(static_cast<QEvent*>(event));
}
void QLowEnergyService_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QLowEnergyService*>(ptr), "deleteLater");
}
void QLowEnergyService_DeleteLaterDefault(void* ptr)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::deleteLater();
}
void QLowEnergyService_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QLowEnergyService*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QLowEnergyService_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QLowEnergyService_Event(void* ptr, void* e)
{
return static_cast<QLowEnergyService*>(ptr)->event(static_cast<QEvent*>(e));
}
int QLowEnergyService_EventDefault(void* ptr, void* e)
{
return static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::event(static_cast<QEvent*>(e));
}
int QLowEnergyService_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QLowEnergyService*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QLowEnergyService_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QLowEnergyService_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QLowEnergyService*>(ptr)->metaObject());
}
void* QLowEnergyService_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QLowEnergyService*>(ptr)->QLowEnergyService::metaObject());
}