cutego/bluetooth/bluetooth.cpp

1085 lines
44 KiB
C++
Raw Normal View History

2015-11-13 20:44:32 +03:00
#include "qbluetoothtransfermanager.h"
#include <QIODevice>
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QObject>
2015-11-13 20:44:32 +03:00
#include <QBluetoothTransferReply>
2015-11-19 21:29:30 +03:00
#include <QBluetoothTransferRequest>
2015-11-13 20:44:32 +03:00
#include <QBluetoothTransferManager>
#include "_cgo_export.h"
class MyQBluetoothTransferManager: public QBluetoothTransferManager {
public:
void Signal_Finished(QBluetoothTransferReply * reply){callbackQBluetoothTransferManagerFinished(this->objectName().toUtf8().data(), reply);};
};
void* QBluetoothTransferManager_Put(void* ptr, void* request, void* data){
return static_cast<QBluetoothTransferManager*>(ptr)->put(*static_cast<QBluetoothTransferRequest*>(request), static_cast<QIODevice*>(data));
}
void* QBluetoothTransferManager_NewQBluetoothTransferManager(void* parent){
return new QBluetoothTransferManager(static_cast<QObject*>(parent));
}
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));;
}
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));;
}
void QBluetoothTransferManager_DestroyQBluetoothTransferManager(void* ptr){
static_cast<QBluetoothTransferManager*>(ptr)->~QBluetoothTransferManager();
}
#include "qbluetoothtransferrequest.h"
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QBluetoothAddress>
#include <QBluetoothTransferRequest>
#include "_cgo_export.h"
class MyQBluetoothTransferRequest: public QBluetoothTransferRequest {
public:
};
void* QBluetoothTransferRequest_NewQBluetoothTransferRequest(void* address){
return new QBluetoothTransferRequest(*static_cast<QBluetoothAddress*>(address));
}
void* QBluetoothTransferRequest_NewQBluetoothTransferRequest2(void* other){
return new QBluetoothTransferRequest(*static_cast<QBluetoothTransferRequest*>(other));
}
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)));
}
void QBluetoothTransferRequest_SetAttribute(void* ptr, int code, void* value){
static_cast<QBluetoothTransferRequest*>(ptr)->setAttribute(static_cast<QBluetoothTransferRequest::Attribute>(code), *static_cast<QVariant*>(value));
}
void QBluetoothTransferRequest_DestroyQBluetoothTransferRequest(void* ptr){
static_cast<QBluetoothTransferRequest*>(ptr)->~QBluetoothTransferRequest();
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothserviceinfo.h"
#include <QBluetoothDeviceInfo>
2015-11-13 20:44:32 +03:00
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QBluetoothAddress>
2015-11-13 20:44:32 +03:00
#include <QBluetoothUuid>
2015-11-19 21:29:30 +03:00
#include <QBluetoothServiceInfo>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothServiceInfo: public QBluetoothServiceInfo {
2015-11-13 20:44:32 +03:00
public:
};
2015-11-19 21:29:30 +03:00
int QBluetoothServiceInfo_ServiceName_Type(){
return QBluetoothServiceInfo::ServiceName;
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceInfo_ServiceDescription_Type(){
return QBluetoothServiceInfo::ServiceDescription;
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceInfo_ServiceProvider_Type(){
return QBluetoothServiceInfo::ServiceProvider;
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothServiceInfo_ServiceDescription(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceDescription().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothServiceInfo_ServiceName(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceName().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothServiceInfo_ServiceProvider(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->serviceProvider().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceInfo_SetServiceDescription(void* ptr, char* description){
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceDescription(QString(description));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceInfo_SetServiceName(void* ptr, char* name){
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceName(QString(name));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceInfo_SetServiceProvider(void* ptr, char* provider){
static_cast<QBluetoothServiceInfo*>(ptr)->setServiceProvider(QString(provider));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void* QBluetoothServiceInfo_NewQBluetoothServiceInfo(){
return new QBluetoothServiceInfo();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothServiceInfo_NewQBluetoothServiceInfo2(void* other){
return new QBluetoothServiceInfo(*static_cast<QBluetoothServiceInfo*>(other));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceInfo_IsComplete(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->isComplete();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceInfo_IsRegistered(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->isRegistered();
}
int QBluetoothServiceInfo_IsValid(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->isValid();
}
int QBluetoothServiceInfo_ProtocolServiceMultiplexer(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->protocolServiceMultiplexer();
}
int QBluetoothServiceInfo_RegisterService(void* ptr, void* localAdapter){
return static_cast<QBluetoothServiceInfo*>(ptr)->registerService(*static_cast<QBluetoothAddress*>(localAdapter));
}
int QBluetoothServiceInfo_ServerChannel(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->serverChannel();
}
void QBluetoothServiceInfo_SetDevice(void* ptr, void* device){
static_cast<QBluetoothServiceInfo*>(ptr)->setDevice(*static_cast<QBluetoothDeviceInfo*>(device));
}
int QBluetoothServiceInfo_SocketProtocol(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->socketProtocol();
}
int QBluetoothServiceInfo_UnregisterService(void* ptr){
return static_cast<QBluetoothServiceInfo*>(ptr)->unregisterService();
}
void QBluetoothServiceInfo_DestroyQBluetoothServiceInfo(void* ptr){
static_cast<QBluetoothServiceInfo*>(ptr)->~QBluetoothServiceInfo();
2015-11-13 20:44:32 +03:00
}
#include "qbluetoothaddress.h"
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QBluetoothAddress>
#include "_cgo_export.h"
class MyQBluetoothAddress: public QBluetoothAddress {
public:
};
void* QBluetoothAddress_NewQBluetoothAddress(){
return new QBluetoothAddress();
}
void* QBluetoothAddress_NewQBluetoothAddress4(void* other){
return new QBluetoothAddress(*static_cast<QBluetoothAddress*>(other));
}
void* QBluetoothAddress_NewQBluetoothAddress3(char* address){
return new QBluetoothAddress(QString(address));
}
void QBluetoothAddress_Clear(void* ptr){
static_cast<QBluetoothAddress*>(ptr)->clear();
}
int QBluetoothAddress_IsNull(void* ptr){
return static_cast<QBluetoothAddress*>(ptr)->isNull();
}
char* QBluetoothAddress_ToString(void* ptr){
return static_cast<QBluetoothAddress*>(ptr)->toString().toUtf8().data();
}
void QBluetoothAddress_DestroyQBluetoothAddress(void* ptr){
static_cast<QBluetoothAddress*>(ptr)->~QBluetoothAddress();
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothsocket.h"
#include <QModelIndex>
#include <QIODevice>
#include <QBluetoothAddress>
2015-11-13 20:44:32 +03:00
#include <QString>
#include <QVariant>
#include <QUrl>
2015-11-19 21:29:30 +03:00
#include <QBluetoothServiceInfo>
2015-11-13 20:44:32 +03:00
#include <QObject>
2015-11-19 21:29:30 +03:00
#include <QBluetoothUuid>
#include <QBluetoothSocket>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothSocket: public QBluetoothSocket {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_Connected(){callbackQBluetoothSocketConnected(this->objectName().toUtf8().data());};
void Signal_Disconnected(){callbackQBluetoothSocketDisconnected(this->objectName().toUtf8().data());};
void Signal_StateChanged(QBluetoothSocket::SocketState state){callbackQBluetoothSocketStateChanged(this->objectName().toUtf8().data(), state);};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
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
}
2015-11-19 21:29:30 +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-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothSocket_NewQBluetoothSocket(int socketType, void* parent){
return new QBluetoothSocket(static_cast<QBluetoothServiceInfo::Protocol>(socketType), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothSocket_NewQBluetoothSocket2(void* parent){
return new QBluetoothSocket(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothSocket_Abort(void* ptr){
static_cast<QBluetoothSocket*>(ptr)->abort();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothSocket_CanReadLine(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->canReadLine();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothSocket_Close(void* ptr){
static_cast<QBluetoothSocket*>(ptr)->close();
2015-11-13 20:44:32 +03:00
}
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-13 20:44:32 +03:00
}
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-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothSocket_DisconnectFromService(void* ptr){
static_cast<QBluetoothSocket*>(ptr)->disconnectFromService();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothSocket_Error(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothSocket_ErrorString(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothSocket_IsSequential(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->isSequential();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothSocket_LocalName(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->localName().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothSocket_PeerName(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->peerName().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
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));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothSocket_SocketDescriptor(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->socketDescriptor();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothSocket_SocketType(void* ptr){
return static_cast<QBluetoothSocket*>(ptr)->socketType();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothSocket_DestroyQBluetoothSocket(void* ptr){
static_cast<QBluetoothSocket*>(ptr)->~QBluetoothSocket();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothserver.h"
2015-11-13 20:44:32 +03:00
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QBluetoothServiceInfo>
#include <QObject>
#include <QString>
#include <QBluetoothServer>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothServer: public QBluetoothServer {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_NewConnection(){callbackQBluetoothServerNewConnection(this->objectName().toUtf8().data());};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +03:00
void* QBluetoothServer_NewQBluetoothServer(int serverType, void* parent){
return new QBluetoothServer(static_cast<QBluetoothServiceInfo::Protocol>(serverType), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
int QBluetoothServer_Error(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServer_IsListening(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->isListening();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServer_MaxPendingConnections(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->maxPendingConnections();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServer_ServerType(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->serverType();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServer_DestroyQBluetoothServer(void* ptr){
static_cast<QBluetoothServer*>(ptr)->~QBluetoothServer();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServer_Close(void* ptr){
static_cast<QBluetoothServer*>(ptr)->close();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServer_HasPendingConnections(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->hasPendingConnections();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothServer_NextPendingConnection(void* ptr){
return static_cast<QBluetoothServer*>(ptr)->nextPendingConnection();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServer_SetMaxPendingConnections(void* ptr, int numConnections){
static_cast<QBluetoothServer*>(ptr)->setMaxPendingConnections(numConnections);
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
#include "qlowenergydescriptor.h"
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QByteArray>
#include <QLowEnergyDescriptor>
#include "_cgo_export.h"
class MyQLowEnergyDescriptor: public QLowEnergyDescriptor {
public:
};
void* QLowEnergyDescriptor_NewQLowEnergyDescriptor(){
return new QLowEnergyDescriptor();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
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_Value(void* ptr){
return new QByteArray(static_cast<QLowEnergyDescriptor*>(ptr)->value());
}
void QLowEnergyDescriptor_DestroyQLowEnergyDescriptor(void* ptr){
static_cast<QLowEnergyDescriptor*>(ptr)->~QLowEnergyDescriptor();
}
#include "qbluetoothservicediscoveryagent.h"
#include <QBluetoothUuid>
2015-11-13 20:44:32 +03:00
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QMetaObject>
#include <QBluetoothAddress>
#include <QObject>
#include <QBluetoothServiceDiscoveryAgent>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothServiceDiscoveryAgent: public QBluetoothServiceDiscoveryAgent {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_Canceled(){callbackQBluetoothServiceDiscoveryAgentCanceled(this->objectName().toUtf8().data());};
void Signal_Finished(){callbackQBluetoothServiceDiscoveryAgentFinished(this->objectName().toUtf8().data());};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent(void* parent){
return new QBluetoothServiceDiscoveryAgent(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothServiceDiscoveryAgent_NewQBluetoothServiceDiscoveryAgent2(void* deviceAdapter, void* parent){
return new QBluetoothServiceDiscoveryAgent(*static_cast<QBluetoothAddress*>(deviceAdapter), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceDiscoveryAgent_Clear(void* ptr){
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "clear");
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceDiscoveryAgent_Error(void* ptr){
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothServiceDiscoveryAgent_ErrorString(void* ptr){
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceDiscoveryAgent_IsActive(void* ptr){
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->isActive();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothServiceDiscoveryAgent_SetRemoteAddress(void* ptr, void* address){
return static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->setRemoteAddress(*static_cast<QBluetoothAddress*>(address));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceDiscoveryAgent_SetUuidFilter2(void* ptr, void* uuid){
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->setUuidFilter(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceDiscoveryAgent_Start(void* ptr, int mode){
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "start", Q_ARG(QBluetoothServiceDiscoveryAgent::DiscoveryMode, static_cast<QBluetoothServiceDiscoveryAgent::DiscoveryMode>(mode)));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceDiscoveryAgent_Stop(void* ptr){
QMetaObject::invokeMethod(static_cast<QBluetoothServiceDiscoveryAgent*>(ptr), "stop");
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothServiceDiscoveryAgent_DestroyQBluetoothServiceDiscoveryAgent(void* ptr){
static_cast<QBluetoothServiceDiscoveryAgent*>(ptr)->~QBluetoothServiceDiscoveryAgent();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothhostinfo.h"
2015-11-13 20:44:32 +03:00
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QBluetoothAddress>
2015-11-13 20:44:32 +03:00
#include <QString>
2015-11-19 21:29:30 +03:00
#include <QVariant>
#include <QBluetoothHostInfo>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothHostInfo: public QBluetoothHostInfo {
2015-11-13 20:44:32 +03:00
public:
};
2015-11-19 21:29:30 +03:00
void* QBluetoothHostInfo_NewQBluetoothHostInfo(){
return new QBluetoothHostInfo();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothHostInfo_NewQBluetoothHostInfo2(void* other){
return new QBluetoothHostInfo(*static_cast<QBluetoothHostInfo*>(other));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothHostInfo_Name(void* ptr){
return static_cast<QBluetoothHostInfo*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void QBluetoothHostInfo_SetName(void* ptr, char* name){
static_cast<QBluetoothHostInfo*>(ptr)->setName(QString(name));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothHostInfo_DestroyQBluetoothHostInfo(void* ptr){
static_cast<QBluetoothHostInfo*>(ptr)->~QBluetoothHostInfo();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothuuid.h"
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QUuid>
#include <QBluetoothUuid>
#include "_cgo_export.h"
2015-11-13 20:44:32 +03:00
2015-11-19 21:29:30 +03:00
class MyQBluetoothUuid: public QBluetoothUuid {
public:
};
2015-11-13 20:44:32 +03:00
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid(){
return new QBluetoothUuid();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid4(int uuid){
return new QBluetoothUuid(static_cast<QBluetoothUuid::CharacteristicType>(uuid));
2015-11-13 20:44:32 +03:00
}
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
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid2(int uuid){
return new QBluetoothUuid(static_cast<QBluetoothUuid::ProtocolUuid>(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid3(int uuid){
return new QBluetoothUuid(static_cast<QBluetoothUuid::ServiceClassUuid>(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid10(void* uuid){
return new QBluetoothUuid(*static_cast<QBluetoothUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid9(char* uuid){
return new QBluetoothUuid(QString(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothUuid_NewQBluetoothUuid11(void* uuid){
return new QBluetoothUuid(*static_cast<QUuid*>(uuid));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
int QBluetoothUuid_MinimumSize(void* ptr){
return static_cast<QBluetoothUuid*>(ptr)->minimumSize();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void QBluetoothUuid_DestroyQBluetoothUuid(void* ptr){
static_cast<QBluetoothUuid*>(ptr)->~QBluetoothUuid();
2015-11-13 20:44:32 +03:00
}
#include "qlowenergycharacteristic.h"
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QByteArray>
2015-11-19 21:29:30 +03:00
#include <QString>
2015-11-13 20:44:32 +03:00
#include <QLowEnergyCharacteristic>
#include "_cgo_export.h"
class MyQLowEnergyCharacteristic: public QLowEnergyCharacteristic {
public:
};
void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic(){
return new QLowEnergyCharacteristic();
}
void* QLowEnergyCharacteristic_NewQLowEnergyCharacteristic2(void* other){
return new QLowEnergyCharacteristic(*static_cast<QLowEnergyCharacteristic*>(other));
}
int QLowEnergyCharacteristic_IsValid(void* ptr){
return static_cast<QLowEnergyCharacteristic*>(ptr)->isValid();
}
char* QLowEnergyCharacteristic_Name(void* ptr){
return static_cast<QLowEnergyCharacteristic*>(ptr)->name().toUtf8().data();
}
int QLowEnergyCharacteristic_Properties(void* ptr){
return static_cast<QLowEnergyCharacteristic*>(ptr)->properties();
}
void* QLowEnergyCharacteristic_Value(void* ptr){
return new QByteArray(static_cast<QLowEnergyCharacteristic*>(ptr)->value());
}
void QLowEnergyCharacteristic_DestroyQLowEnergyCharacteristic(void* ptr){
static_cast<QLowEnergyCharacteristic*>(ptr)->~QLowEnergyCharacteristic();
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothtransferreply.h"
#include <QObject>
#include <QString>
2015-11-13 20:44:32 +03:00
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QMetaObject>
#include <QBluetoothTransferReply>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothTransferReply: public QBluetoothTransferReply {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_Finished(QBluetoothTransferReply * reply){callbackQBluetoothTransferReplyFinished(this->objectName().toUtf8().data(), reply);};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +03:00
void QBluetoothTransferReply_Abort(void* ptr){
QMetaObject::invokeMethod(static_cast<QBluetoothTransferReply*>(ptr), "abort");
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothTransferReply_Error(void* ptr){
return static_cast<QBluetoothTransferReply*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothTransferReply_ErrorString(void* ptr){
return static_cast<QBluetoothTransferReply*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
int QBluetoothTransferReply_IsFinished(void* ptr){
return static_cast<QBluetoothTransferReply*>(ptr)->isFinished();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothTransferReply_IsRunning(void* ptr){
return static_cast<QBluetoothTransferReply*>(ptr)->isRunning();
}
void* QBluetoothTransferReply_Manager(void* ptr){
return static_cast<QBluetoothTransferReply*>(ptr)->manager();
}
void QBluetoothTransferReply_DestroyQBluetoothTransferReply(void* ptr){
static_cast<QBluetoothTransferReply*>(ptr)->~QBluetoothTransferReply();
}
#include "qbluetoothlocaldevice.h"
#include <QModelIndex>
#include <QBluetoothAddress>
#include <QObject>
#include <QMetaObject>
2015-11-13 20:44:32 +03:00
#include <QString>
#include <QVariant>
#include <QUrl>
2015-11-19 21:29:30 +03:00
#include <QBluetoothLocalDevice>
#include "_cgo_export.h"
class MyQBluetoothLocalDevice: public QBluetoothLocalDevice {
public:
void Signal_Error(QBluetoothLocalDevice::Error error){callbackQBluetoothLocalDeviceError(this->objectName().toUtf8().data(), error);};
void Signal_HostModeStateChanged(QBluetoothLocalDevice::HostMode state){callbackQBluetoothLocalDeviceHostModeStateChanged(this->objectName().toUtf8().data(), state);};
};
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));;
}
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));;
}
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));;
}
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));;
}
int QBluetoothLocalDevice_IsValid(void* ptr){
return static_cast<QBluetoothLocalDevice*>(ptr)->isValid();
}
void QBluetoothLocalDevice_DestroyQBluetoothLocalDevice(void* ptr){
static_cast<QBluetoothLocalDevice*>(ptr)->~QBluetoothLocalDevice();
}
void* QBluetoothLocalDevice_NewQBluetoothLocalDevice(void* parent){
return new QBluetoothLocalDevice(static_cast<QObject*>(parent));
}
void* QBluetoothLocalDevice_NewQBluetoothLocalDevice2(void* address, void* parent){
return new QBluetoothLocalDevice(*static_cast<QBluetoothAddress*>(address), static_cast<QObject*>(parent));
}
int QBluetoothLocalDevice_HostMode(void* ptr){
return static_cast<QBluetoothLocalDevice*>(ptr)->hostMode();
}
char* QBluetoothLocalDevice_Name(void* ptr){
return static_cast<QBluetoothLocalDevice*>(ptr)->name().toUtf8().data();
}
void QBluetoothLocalDevice_PairingConfirmation(void* ptr, int accept){
QMetaObject::invokeMethod(static_cast<QBluetoothLocalDevice*>(ptr), "pairingConfirmation", Q_ARG(bool, accept != 0));
}
int QBluetoothLocalDevice_PairingStatus(void* ptr, void* address){
return static_cast<QBluetoothLocalDevice*>(ptr)->pairingStatus(*static_cast<QBluetoothAddress*>(address));
}
void QBluetoothLocalDevice_PowerOn(void* ptr){
static_cast<QBluetoothLocalDevice*>(ptr)->powerOn();
}
void QBluetoothLocalDevice_RequestPairing(void* ptr, void* address, int pairing){
static_cast<QBluetoothLocalDevice*>(ptr)->requestPairing(*static_cast<QBluetoothAddress*>(address), static_cast<QBluetoothLocalDevice::Pairing>(pairing));
}
void QBluetoothLocalDevice_SetHostMode(void* ptr, int mode){
static_cast<QBluetoothLocalDevice*>(ptr)->setHostMode(static_cast<QBluetoothLocalDevice::HostMode>(mode));
}
#include "qbluetoothdevicediscoveryagent.h"
#include <QUrl>
2015-11-13 20:44:32 +03:00
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QBluetoothAddress>
2015-11-13 20:44:32 +03:00
#include <QObject>
2015-11-19 21:29:30 +03:00
#include <QMetaObject>
#include <QString>
#include <QVariant>
#include <QBluetoothDeviceDiscoveryAgent>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQBluetoothDeviceDiscoveryAgent: public QBluetoothDeviceDiscoveryAgent {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_Canceled(){callbackQBluetoothDeviceDiscoveryAgentCanceled(this->objectName().toUtf8().data());};
void Signal_Finished(){callbackQBluetoothDeviceDiscoveryAgentFinished(this->objectName().toUtf8().data());};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent(void* parent){
return new QBluetoothDeviceDiscoveryAgent(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothDeviceDiscoveryAgent_NewQBluetoothDeviceDiscoveryAgent2(void* deviceAdapter, void* parent){
return new QBluetoothDeviceDiscoveryAgent(*static_cast<QBluetoothAddress*>(deviceAdapter), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceDiscoveryAgent_Error(void* ptr){
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->error();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
char* QBluetoothDeviceDiscoveryAgent_ErrorString(void* ptr){
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->errorString().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceDiscoveryAgent_InquiryType(void* ptr){
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->inquiryType();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceDiscoveryAgent_IsActive(void* ptr){
return static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->isActive();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void QBluetoothDeviceDiscoveryAgent_Start(void* ptr){
QMetaObject::invokeMethod(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), "start");
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothDeviceDiscoveryAgent_Stop(void* ptr){
QMetaObject::invokeMethod(static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr), "stop");
}
void QBluetoothDeviceDiscoveryAgent_DestroyQBluetoothDeviceDiscoveryAgent(void* ptr){
static_cast<QBluetoothDeviceDiscoveryAgent*>(ptr)->~QBluetoothDeviceDiscoveryAgent();
}
#include "qlowenergyservice.h"
2015-11-13 20:44:32 +03:00
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QObject>
#include <QLowEnergyCharacteristic>
#include <QByteArray>
#include <QLowEnergyDescriptor>
#include <QString>
#include <QLowEnergyService>
2015-11-13 20:44:32 +03:00
#include "_cgo_export.h"
2015-11-19 21:29:30 +03:00
class MyQLowEnergyService: public QLowEnergyService {
2015-11-13 20:44:32 +03:00
public:
2015-11-19 21:29:30 +03:00
void Signal_StateChanged(QLowEnergyService::ServiceState newState){callbackQLowEnergyServiceStateChanged(this->objectName().toUtf8().data(), newState);};
2015-11-13 20:44:32 +03:00
};
2015-11-19 21:29:30 +03:00
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));;
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
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));;
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QLowEnergyService_Contains(void* ptr, void* characteristic){
return static_cast<QLowEnergyService*>(ptr)->contains(*static_cast<QLowEnergyCharacteristic*>(characteristic));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QLowEnergyService_Contains2(void* ptr, void* descriptor){
return static_cast<QLowEnergyService*>(ptr)->contains(*static_cast<QLowEnergyDescriptor*>(descriptor));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
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();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QLowEnergyService_Type(void* ptr){
return static_cast<QLowEnergyService*>(ptr)->type();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QLowEnergyService_WriteCharacteristic(void* ptr, void* characteristic, void* newValue, int mode){
static_cast<QLowEnergyService*>(ptr)->writeCharacteristic(*static_cast<QLowEnergyCharacteristic*>(characteristic), *static_cast<QByteArray*>(newValue), static_cast<QLowEnergyService::WriteMode>(mode));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QLowEnergyService_WriteDescriptor(void* ptr, void* descriptor, void* newValue){
static_cast<QLowEnergyService*>(ptr)->writeDescriptor(*static_cast<QLowEnergyDescriptor*>(descriptor), *static_cast<QByteArray*>(newValue));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QLowEnergyService_DestroyQLowEnergyService(void* ptr){
static_cast<QLowEnergyService*>(ptr)->~QLowEnergyService();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
#include "qbluetoothdeviceinfo.h"
#include <QString>
#include <QVariant>
#include <QUrl>
#include <QModelIndex>
#include <QBluetoothUuid>
#include <QBluetoothDeviceInfo>
#include "_cgo_export.h"
class MyQBluetoothDeviceInfo: public QBluetoothDeviceInfo {
public:
};
void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo(){
return new QBluetoothDeviceInfo();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void* QBluetoothDeviceInfo_NewQBluetoothDeviceInfo4(void* other){
return new QBluetoothDeviceInfo(*static_cast<QBluetoothDeviceInfo*>(other));
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceInfo_CoreConfigurations(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->coreConfigurations();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceInfo_IsCached(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->isCached();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceInfo_IsValid(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->isValid();
2015-11-13 20:44:32 +03:00
}
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
}
2015-11-19 21:29:30 +03:00
char* QBluetoothDeviceInfo_Name(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->name().toUtf8().data();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceInfo_ServiceClasses(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->serviceClasses();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
int QBluetoothDeviceInfo_ServiceUuidsCompleteness(void* ptr){
return static_cast<QBluetoothDeviceInfo*>(ptr)->serviceUuidsCompleteness();
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +03:00
void QBluetoothDeviceInfo_SetCached(void* ptr, int cached){
static_cast<QBluetoothDeviceInfo*>(ptr)->setCached(cached != 0);
2015-11-13 20:44:32 +03:00
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +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
}
2015-11-19 21:29:30 +03:00
void QBluetoothDeviceInfo_DestroyQBluetoothDeviceInfo(void* ptr){
static_cast<QBluetoothDeviceInfo*>(ptr)->~QBluetoothDeviceInfo();
2015-11-13 20:44:32 +03:00
}
#include "qlowenergycontroller.h"
2015-11-19 21:29:30 +03:00
#include <QUrl>
2015-11-13 20:44:32 +03:00
#include <QModelIndex>
2015-11-19 21:29:30 +03:00
#include <QObject>
2015-11-13 20:44:32 +03:00
#include <QBluetoothUuid>
#include <QBluetoothDeviceInfo>
#include <QString>
#include <QVariant>
#include <QLowEnergyController>
#include "_cgo_export.h"
class MyQLowEnergyController: public QLowEnergyController {
public:
void Signal_Connected(){callbackQLowEnergyControllerConnected(this->objectName().toUtf8().data());};
void Signal_Disconnected(){callbackQLowEnergyControllerDisconnected(this->objectName().toUtf8().data());};
void Signal_DiscoveryFinished(){callbackQLowEnergyControllerDiscoveryFinished(this->objectName().toUtf8().data());};
void Signal_StateChanged(QLowEnergyController::ControllerState state){callbackQLowEnergyControllerStateChanged(this->objectName().toUtf8().data(), state);};
};
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));;
}
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));;
}
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));;
}
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));;
}
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));;
}
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));;
}
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));;
}
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));;
}
void* QLowEnergyController_NewQLowEnergyController(void* remoteDeviceInfo, void* parent){
return new QLowEnergyController(*static_cast<QBluetoothDeviceInfo*>(remoteDeviceInfo), static_cast<QObject*>(parent));
}
void QLowEnergyController_ConnectToDevice(void* ptr){
static_cast<QLowEnergyController*>(ptr)->connectToDevice();
}
void* QLowEnergyController_CreateServiceObject(void* ptr, void* serviceUuid, void* parent){
return static_cast<QLowEnergyController*>(ptr)->createServiceObject(*static_cast<QBluetoothUuid*>(serviceUuid), static_cast<QObject*>(parent));
}
void QLowEnergyController_DisconnectFromDevice(void* ptr){
static_cast<QLowEnergyController*>(ptr)->disconnectFromDevice();
}
void QLowEnergyController_DiscoverServices(void* ptr){
static_cast<QLowEnergyController*>(ptr)->discoverServices();
}
int QLowEnergyController_Error(void* ptr){
return static_cast<QLowEnergyController*>(ptr)->error();
}
char* QLowEnergyController_ErrorString(void* ptr){
return static_cast<QLowEnergyController*>(ptr)->errorString().toUtf8().data();
}
int QLowEnergyController_RemoteAddressType(void* ptr){
return static_cast<QLowEnergyController*>(ptr)->remoteAddressType();
}
char* QLowEnergyController_RemoteName(void* ptr){
return static_cast<QLowEnergyController*>(ptr)->remoteName().toUtf8().data();
}
void QLowEnergyController_SetRemoteAddressType(void* ptr, int ty){
static_cast<QLowEnergyController*>(ptr)->setRemoteAddressType(static_cast<QLowEnergyController::RemoteAddressType>(ty));
}
void QLowEnergyController_DestroyQLowEnergyController(void* ptr){
static_cast<QLowEnergyController*>(ptr)->~QLowEnergyController();
}