#define protected public #include "dbus.h" #include "_cgo_export.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include void QDBusAbstractAdaptor_DestroyQDBusAbstractAdaptor(void* ptr){ static_cast(ptr)->~QDBusAbstractAdaptor(); } void QDBusAbstractAdaptor_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusAbstractAdaptor_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractAdaptor::timerEvent(static_cast(event)); } void QDBusAbstractAdaptor_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusAbstractAdaptor_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractAdaptor::childEvent(static_cast(event)); } void QDBusAbstractAdaptor_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusAbstractAdaptor_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractAdaptor::customEvent(static_cast(event)); } class MyQDBusAbstractInterface: public QDBusAbstractInterface { public: void timerEvent(QTimerEvent * event) { callbackQDBusAbstractInterfaceTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusAbstractInterfaceChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusAbstractInterfaceCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; char* QDBusAbstractInterface_Interface(void* ptr){ return static_cast(ptr)->interface().toUtf8().data(); } int QDBusAbstractInterface_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } char* QDBusAbstractInterface_Path(void* ptr){ return static_cast(ptr)->path().toUtf8().data(); } char* QDBusAbstractInterface_Service(void* ptr){ return static_cast(ptr)->service().toUtf8().data(); } void QDBusAbstractInterface_SetTimeout(void* ptr, int timeout){ static_cast(ptr)->setTimeout(timeout); } int QDBusAbstractInterface_Timeout(void* ptr){ return static_cast(ptr)->timeout(); } void QDBusAbstractInterface_DestroyQDBusAbstractInterface(void* ptr){ static_cast(ptr)->~QDBusAbstractInterface(); } void QDBusAbstractInterface_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusAbstractInterface_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractInterface::timerEvent(static_cast(event)); } void QDBusAbstractInterface_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusAbstractInterface_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractInterface::childEvent(static_cast(event)); } void QDBusAbstractInterface_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusAbstractInterface_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusAbstractInterface::customEvent(static_cast(event)); } void* QDBusArgument_NewQDBusArgument(){ return new QDBusArgument(); } void* QDBusArgument_NewQDBusArgument2(void* other){ return new QDBusArgument(*static_cast(other)); } void* QDBusArgument_AsVariant(void* ptr){ return new QVariant(static_cast(ptr)->asVariant()); } int QDBusArgument_AtEnd(void* ptr){ return static_cast(ptr)->atEnd(); } void QDBusArgument_BeginArray(void* ptr, int id){ static_cast(ptr)->beginArray(id); } void QDBusArgument_BeginArray2(void* ptr){ static_cast(ptr)->beginArray(); } void QDBusArgument_BeginMap(void* ptr, int kid, int vid){ static_cast(ptr)->beginMap(kid, vid); } void QDBusArgument_BeginMap2(void* ptr){ static_cast(ptr)->beginMap(); } void QDBusArgument_BeginMapEntry(void* ptr){ static_cast(ptr)->beginMapEntry(); } void QDBusArgument_BeginMapEntry2(void* ptr){ static_cast(ptr)->beginMapEntry(); } void QDBusArgument_BeginStructure(void* ptr){ static_cast(ptr)->beginStructure(); } void QDBusArgument_BeginStructure2(void* ptr){ static_cast(ptr)->beginStructure(); } int QDBusArgument_CurrentType(void* ptr){ return static_cast(ptr)->currentType(); } void QDBusArgument_EndArray(void* ptr){ static_cast(ptr)->endArray(); } void QDBusArgument_EndArray2(void* ptr){ static_cast(ptr)->endArray(); } void QDBusArgument_EndMap(void* ptr){ static_cast(ptr)->endMap(); } void QDBusArgument_EndMap2(void* ptr){ static_cast(ptr)->endMap(); } void QDBusArgument_EndMapEntry(void* ptr){ static_cast(ptr)->endMapEntry(); } void QDBusArgument_EndMapEntry2(void* ptr){ static_cast(ptr)->endMapEntry(); } void QDBusArgument_EndStructure(void* ptr){ static_cast(ptr)->endStructure(); } void QDBusArgument_EndStructure2(void* ptr){ static_cast(ptr)->endStructure(); } void QDBusArgument_DestroyQDBusArgument(void* ptr){ static_cast(ptr)->~QDBusArgument(); } void* QDBusConnection_NewQDBusConnection2(void* other){ return new QDBusConnection(*static_cast(other)); } void* QDBusConnection_NewQDBusConnection(char* name){ return new QDBusConnection(QString(name)); } char* QDBusConnection_BaseService(void* ptr){ return static_cast(ptr)->baseService().toUtf8().data(); } int QDBusConnection_CallWithCallback(void* ptr, void* message, void* receiver, char* returnMethod, char* errorMethod, int timeout){ return static_cast(ptr)->callWithCallback(*static_cast(message), static_cast(receiver), const_cast(returnMethod), const_cast(errorMethod), timeout); } int QDBusConnection_Connect(void* ptr, char* service, char* path, char* interfa, char* name, void* receiver, char* slot){ return static_cast(ptr)->connect(QString(service), QString(path), QString(interfa), QString(name), static_cast(receiver), const_cast(slot)); } int QDBusConnection_Connect2(void* ptr, char* service, char* path, char* interfa, char* name, char* signature, void* receiver, char* slot){ return static_cast(ptr)->connect(QString(service), QString(path), QString(interfa), QString(name), QString(signature), static_cast(receiver), const_cast(slot)); } int QDBusConnection_Connect3(void* ptr, char* service, char* path, char* interfa, char* name, char* argumentMatch, char* signature, void* receiver, char* slot){ return static_cast(ptr)->connect(QString(service), QString(path), QString(interfa), QString(name), QString(argumentMatch).split("|", QString::SkipEmptyParts), QString(signature), static_cast(receiver), const_cast(slot)); } int QDBusConnection_ConnectionCapabilities(void* ptr){ return static_cast(ptr)->connectionCapabilities(); } void QDBusConnection_QDBusConnection_DisconnectFromBus(char* name){ QDBusConnection::disconnectFromBus(QString(name)); } void QDBusConnection_QDBusConnection_DisconnectFromPeer(char* name){ QDBusConnection::disconnectFromPeer(QString(name)); } void* QDBusConnection_Interface(void* ptr){ return static_cast(ptr)->interface(); } int QDBusConnection_IsConnected(void* ptr){ return static_cast(ptr)->isConnected(); } void* QDBusConnection_QDBusConnection_LocalMachineId(){ return new QByteArray(QDBusConnection::localMachineId()); } char* QDBusConnection_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } void* QDBusConnection_ObjectRegisteredAt(void* ptr, char* path){ return static_cast(ptr)->objectRegisteredAt(QString(path)); } int QDBusConnection_RegisterObject(void* ptr, char* path, void* object, int options){ return static_cast(ptr)->registerObject(QString(path), static_cast(object), static_cast(options)); } int QDBusConnection_RegisterObject2(void* ptr, char* path, char* interfa, void* object, int options){ return static_cast(ptr)->registerObject(QString(path), QString(interfa), static_cast(object), static_cast(options)); } int QDBusConnection_RegisterService(void* ptr, char* serviceName){ return static_cast(ptr)->registerService(QString(serviceName)); } int QDBusConnection_Send(void* ptr, void* message){ return static_cast(ptr)->send(*static_cast(message)); } void QDBusConnection_UnregisterObject(void* ptr, char* path, int mode){ static_cast(ptr)->unregisterObject(QString(path), static_cast(mode)); } int QDBusConnection_UnregisterService(void* ptr, char* serviceName){ return static_cast(ptr)->unregisterService(QString(serviceName)); } void QDBusConnection_DestroyQDBusConnection(void* ptr){ static_cast(ptr)->~QDBusConnection(); } class MyQDBusConnectionInterface: public QDBusConnectionInterface { public: void Signal_ServiceRegistered(const QString & serviceName) { callbackQDBusConnectionInterfaceServiceRegistered(this, this->objectName().toUtf8().data(), serviceName.toUtf8().data()); }; void Signal_ServiceUnregistered(const QString & serviceName) { callbackQDBusConnectionInterfaceServiceUnregistered(this, this->objectName().toUtf8().data(), serviceName.toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQDBusConnectionInterfaceTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusConnectionInterfaceChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusConnectionInterfaceCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void QDBusConnectionInterface_ConnectServiceRegistered(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusConnectionInterface::serviceRegistered), static_cast(ptr), static_cast(&MyQDBusConnectionInterface::Signal_ServiceRegistered));; } void QDBusConnectionInterface_DisconnectServiceRegistered(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusConnectionInterface::serviceRegistered), static_cast(ptr), static_cast(&MyQDBusConnectionInterface::Signal_ServiceRegistered));; } void QDBusConnectionInterface_ServiceRegistered(void* ptr, char* serviceName){ static_cast(ptr)->serviceRegistered(QString(serviceName)); } void QDBusConnectionInterface_ConnectServiceUnregistered(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusConnectionInterface::serviceUnregistered), static_cast(ptr), static_cast(&MyQDBusConnectionInterface::Signal_ServiceUnregistered));; } void QDBusConnectionInterface_DisconnectServiceUnregistered(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusConnectionInterface::serviceUnregistered), static_cast(ptr), static_cast(&MyQDBusConnectionInterface::Signal_ServiceUnregistered));; } void QDBusConnectionInterface_ServiceUnregistered(void* ptr, char* serviceName){ static_cast(ptr)->serviceUnregistered(QString(serviceName)); } void QDBusConnectionInterface_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusConnectionInterface_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusConnectionInterface::timerEvent(static_cast(event)); } void QDBusConnectionInterface_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusConnectionInterface_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusConnectionInterface::childEvent(static_cast(event)); } void QDBusConnectionInterface_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusConnectionInterface_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusConnectionInterface::customEvent(static_cast(event)); } void* QDBusContext_NewQDBusContext(){ return new QDBusContext(); } int QDBusContext_CalledFromDBus(void* ptr){ return static_cast(ptr)->calledFromDBus(); } int QDBusContext_IsDelayedReply(void* ptr){ return static_cast(ptr)->isDelayedReply(); } void QDBusContext_SendErrorReply2(void* ptr, int ty, char* msg){ static_cast(ptr)->sendErrorReply(static_cast(ty), QString(msg)); } void QDBusContext_SendErrorReply(void* ptr, char* name, char* msg){ static_cast(ptr)->sendErrorReply(QString(name), QString(msg)); } void QDBusContext_SetDelayedReply(void* ptr, int enable){ static_cast(ptr)->setDelayedReply(enable != 0); } void QDBusContext_DestroyQDBusContext(void* ptr){ static_cast(ptr)->~QDBusContext(); } char* QDBusError_QDBusError_ErrorString(int error){ return QDBusError::errorString(static_cast(error)).toUtf8().data(); } int QDBusError_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } char* QDBusError_Message(void* ptr){ return static_cast(ptr)->message().toUtf8().data(); } char* QDBusError_Name(void* ptr){ return static_cast(ptr)->name().toUtf8().data(); } int QDBusError_Type(void* ptr){ return static_cast(ptr)->type(); } void* QDBusInterface_NewQDBusInterface(char* service, char* path, char* interfa, void* connection, void* parent){ return new QDBusInterface(QString(service), QString(path), QString(interfa), *static_cast(connection), static_cast(parent)); } void QDBusInterface_DestroyQDBusInterface(void* ptr){ static_cast(ptr)->~QDBusInterface(); } void QDBusInterface_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusInterface_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusInterface::timerEvent(static_cast(event)); } void QDBusInterface_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusInterface_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusInterface::childEvent(static_cast(event)); } void QDBusInterface_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusInterface_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusInterface::customEvent(static_cast(event)); } void* QDBusMessage_NewQDBusMessage(){ return new QDBusMessage(); } void* QDBusMessage_NewQDBusMessage2(void* other){ return new QDBusMessage(*static_cast(other)); } int QDBusMessage_AutoStartService(void* ptr){ return static_cast(ptr)->autoStartService(); } char* QDBusMessage_ErrorMessage(void* ptr){ return static_cast(ptr)->errorMessage().toUtf8().data(); } char* QDBusMessage_ErrorName(void* ptr){ return static_cast(ptr)->errorName().toUtf8().data(); } char* QDBusMessage_Interface(void* ptr){ return static_cast(ptr)->interface().toUtf8().data(); } int QDBusMessage_IsDelayedReply(void* ptr){ return static_cast(ptr)->isDelayedReply(); } int QDBusMessage_IsReplyRequired(void* ptr){ return static_cast(ptr)->isReplyRequired(); } char* QDBusMessage_Member(void* ptr){ return static_cast(ptr)->member().toUtf8().data(); } char* QDBusMessage_Path(void* ptr){ return static_cast(ptr)->path().toUtf8().data(); } char* QDBusMessage_Service(void* ptr){ return static_cast(ptr)->service().toUtf8().data(); } void QDBusMessage_SetAutoStartService(void* ptr, int enable){ static_cast(ptr)->setAutoStartService(enable != 0); } void QDBusMessage_SetDelayedReply(void* ptr, int enable){ static_cast(ptr)->setDelayedReply(enable != 0); } char* QDBusMessage_Signature(void* ptr){ return static_cast(ptr)->signature().toUtf8().data(); } int QDBusMessage_Type(void* ptr){ return static_cast(ptr)->type(); } void QDBusMessage_DestroyQDBusMessage(void* ptr){ static_cast(ptr)->~QDBusMessage(); } void* QDBusObjectPath_NewQDBusObjectPath(){ return new QDBusObjectPath(); } void* QDBusObjectPath_NewQDBusObjectPath3(void* path){ return new QDBusObjectPath(*static_cast(path)); } void* QDBusObjectPath_NewQDBusObjectPath4(char* path){ return new QDBusObjectPath(QString(path)); } void* QDBusObjectPath_NewQDBusObjectPath2(char* path){ return new QDBusObjectPath(const_cast(path)); } char* QDBusObjectPath_Path(void* ptr){ return static_cast(ptr)->path().toUtf8().data(); } void QDBusObjectPath_SetPath(void* ptr, char* path){ static_cast(ptr)->setPath(QString(path)); } void* QDBusPendingCall_NewQDBusPendingCall(void* other){ return new QDBusPendingCall(*static_cast(other)); } void QDBusPendingCall_Swap(void* ptr, void* other){ static_cast(ptr)->swap(*static_cast(other)); } void QDBusPendingCall_DestroyQDBusPendingCall(void* ptr){ static_cast(ptr)->~QDBusPendingCall(); } class MyQDBusPendingCallWatcher: public QDBusPendingCallWatcher { public: void Signal_Finished(QDBusPendingCallWatcher * self) { callbackQDBusPendingCallWatcherFinished(this, this->objectName().toUtf8().data(), self); }; void timerEvent(QTimerEvent * event) { callbackQDBusPendingCallWatcherTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusPendingCallWatcherChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusPendingCallWatcherCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void QDBusPendingCallWatcher_WaitForFinished(void* ptr){ static_cast(ptr)->waitForFinished(); } void* QDBusPendingCallWatcher_NewQDBusPendingCallWatcher(void* call, void* parent){ return new QDBusPendingCallWatcher(*static_cast(call), static_cast(parent)); } void QDBusPendingCallWatcher_ConnectFinished(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusPendingCallWatcher::finished), static_cast(ptr), static_cast(&MyQDBusPendingCallWatcher::Signal_Finished));; } void QDBusPendingCallWatcher_DisconnectFinished(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusPendingCallWatcher::finished), static_cast(ptr), static_cast(&MyQDBusPendingCallWatcher::Signal_Finished));; } void QDBusPendingCallWatcher_Finished(void* ptr, void* self){ static_cast(ptr)->finished(static_cast(self)); } int QDBusPendingCallWatcher_IsFinished(void* ptr){ return static_cast(ptr)->isFinished(); } void QDBusPendingCallWatcher_DestroyQDBusPendingCallWatcher(void* ptr){ static_cast(ptr)->~QDBusPendingCallWatcher(); } void QDBusPendingCallWatcher_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusPendingCallWatcher_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusPendingCallWatcher::timerEvent(static_cast(event)); } void QDBusPendingCallWatcher_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusPendingCallWatcher_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusPendingCallWatcher::childEvent(static_cast(event)); } void QDBusPendingCallWatcher_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusPendingCallWatcher_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusPendingCallWatcher::customEvent(static_cast(event)); } class MyQDBusServer: public QDBusServer { public: MyQDBusServer(QObject *parent) : QDBusServer(parent) {}; MyQDBusServer(const QString &address, QObject *parent) : QDBusServer(address, parent) {}; void timerEvent(QTimerEvent * event) { callbackQDBusServerTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusServerChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusServerCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void* QDBusServer_NewQDBusServer2(void* parent){ return new MyQDBusServer(static_cast(parent)); } void* QDBusServer_NewQDBusServer(char* address, void* parent){ return new MyQDBusServer(QString(address), static_cast(parent)); } char* QDBusServer_Address(void* ptr){ return static_cast(ptr)->address().toUtf8().data(); } int QDBusServer_IsAnonymousAuthenticationAllowed(void* ptr){ return static_cast(ptr)->isAnonymousAuthenticationAllowed(); } int QDBusServer_IsConnected(void* ptr){ return static_cast(ptr)->isConnected(); } void QDBusServer_SetAnonymousAuthenticationAllowed(void* ptr, int value){ static_cast(ptr)->setAnonymousAuthenticationAllowed(value != 0); } void QDBusServer_DestroyQDBusServer(void* ptr){ static_cast(ptr)->~QDBusServer(); } void QDBusServer_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusServer_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServer::timerEvent(static_cast(event)); } void QDBusServer_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusServer_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServer::childEvent(static_cast(event)); } void QDBusServer_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusServer_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServer::customEvent(static_cast(event)); } class MyQDBusServiceWatcher: public QDBusServiceWatcher { public: void Signal_ServiceOwnerChanged(const QString & serviceName, const QString & oldOwner, const QString & newOwner) { callbackQDBusServiceWatcherServiceOwnerChanged(this, this->objectName().toUtf8().data(), serviceName.toUtf8().data(), oldOwner.toUtf8().data(), newOwner.toUtf8().data()); }; void Signal_ServiceRegistered(const QString & serviceName) { callbackQDBusServiceWatcherServiceRegistered(this, this->objectName().toUtf8().data(), serviceName.toUtf8().data()); }; void Signal_ServiceUnregistered(const QString & serviceName) { callbackQDBusServiceWatcherServiceUnregistered(this, this->objectName().toUtf8().data(), serviceName.toUtf8().data()); }; void timerEvent(QTimerEvent * event) { callbackQDBusServiceWatcherTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusServiceWatcherChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusServiceWatcherCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; void QDBusServiceWatcher_SetWatchMode(void* ptr, int mode){ static_cast(ptr)->setWatchMode(static_cast(mode)); } int QDBusServiceWatcher_WatchMode(void* ptr){ return static_cast(ptr)->watchMode(); } void* QDBusServiceWatcher_NewQDBusServiceWatcher(void* parent){ return new QDBusServiceWatcher(static_cast(parent)); } void* QDBusServiceWatcher_NewQDBusServiceWatcher2(char* service, void* connection, int watchMode, void* parent){ return new QDBusServiceWatcher(QString(service), *static_cast(connection), static_cast(watchMode), static_cast(parent)); } void QDBusServiceWatcher_AddWatchedService(void* ptr, char* newService){ static_cast(ptr)->addWatchedService(QString(newService)); } int QDBusServiceWatcher_RemoveWatchedService(void* ptr, char* service){ return static_cast(ptr)->removeWatchedService(QString(service)); } void QDBusServiceWatcher_ConnectServiceOwnerChanged(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceOwnerChanged), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceOwnerChanged));; } void QDBusServiceWatcher_DisconnectServiceOwnerChanged(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceOwnerChanged), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceOwnerChanged));; } void QDBusServiceWatcher_ServiceOwnerChanged(void* ptr, char* serviceName, char* oldOwner, char* newOwner){ static_cast(ptr)->serviceOwnerChanged(QString(serviceName), QString(oldOwner), QString(newOwner)); } void QDBusServiceWatcher_ConnectServiceRegistered(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceRegistered), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceRegistered));; } void QDBusServiceWatcher_DisconnectServiceRegistered(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceRegistered), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceRegistered));; } void QDBusServiceWatcher_ServiceRegistered(void* ptr, char* serviceName){ static_cast(ptr)->serviceRegistered(QString(serviceName)); } void QDBusServiceWatcher_ConnectServiceUnregistered(void* ptr){ QObject::connect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceUnregistered), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceUnregistered));; } void QDBusServiceWatcher_DisconnectServiceUnregistered(void* ptr){ QObject::disconnect(static_cast(ptr), static_cast(&QDBusServiceWatcher::serviceUnregistered), static_cast(ptr), static_cast(&MyQDBusServiceWatcher::Signal_ServiceUnregistered));; } void QDBusServiceWatcher_ServiceUnregistered(void* ptr, char* serviceName){ static_cast(ptr)->serviceUnregistered(QString(serviceName)); } void QDBusServiceWatcher_SetConnection(void* ptr, void* connection){ static_cast(ptr)->setConnection(*static_cast(connection)); } void QDBusServiceWatcher_SetWatchedServices(void* ptr, char* services){ static_cast(ptr)->setWatchedServices(QString(services).split("|", QString::SkipEmptyParts)); } char* QDBusServiceWatcher_WatchedServices(void* ptr){ return static_cast(ptr)->watchedServices().join("|").toUtf8().data(); } void QDBusServiceWatcher_DestroyQDBusServiceWatcher(void* ptr){ static_cast(ptr)->~QDBusServiceWatcher(); } void QDBusServiceWatcher_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusServiceWatcher_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServiceWatcher::timerEvent(static_cast(event)); } void QDBusServiceWatcher_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusServiceWatcher_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServiceWatcher::childEvent(static_cast(event)); } void QDBusServiceWatcher_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusServiceWatcher_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusServiceWatcher::customEvent(static_cast(event)); } void* QDBusSignature_NewQDBusSignature(){ return new QDBusSignature(); } void* QDBusSignature_NewQDBusSignature3(void* signature){ return new QDBusSignature(*static_cast(signature)); } void* QDBusSignature_NewQDBusSignature4(char* signature){ return new QDBusSignature(QString(signature)); } void* QDBusSignature_NewQDBusSignature2(char* signature){ return new QDBusSignature(const_cast(signature)); } void QDBusSignature_SetSignature(void* ptr, char* signature){ static_cast(ptr)->setSignature(QString(signature)); } char* QDBusSignature_Signature(void* ptr){ return static_cast(ptr)->signature().toUtf8().data(); } void* QDBusUnixFileDescriptor_NewQDBusUnixFileDescriptor(){ return new QDBusUnixFileDescriptor(); } void* QDBusUnixFileDescriptor_NewQDBusUnixFileDescriptor3(void* other){ return new QDBusUnixFileDescriptor(*static_cast(other)); } void* QDBusUnixFileDescriptor_NewQDBusUnixFileDescriptor2(int fileDescriptor){ return new QDBusUnixFileDescriptor(fileDescriptor); } int QDBusUnixFileDescriptor_FileDescriptor(void* ptr){ return static_cast(ptr)->fileDescriptor(); } int QDBusUnixFileDescriptor_QDBusUnixFileDescriptor_IsSupported(){ return QDBusUnixFileDescriptor::isSupported(); } int QDBusUnixFileDescriptor_IsValid(void* ptr){ return static_cast(ptr)->isValid(); } void QDBusUnixFileDescriptor_SetFileDescriptor(void* ptr, int fileDescriptor){ static_cast(ptr)->setFileDescriptor(fileDescriptor); } void QDBusUnixFileDescriptor_Swap(void* ptr, void* other){ static_cast(ptr)->swap(*static_cast(other)); } void QDBusUnixFileDescriptor_DestroyQDBusUnixFileDescriptor(void* ptr){ static_cast(ptr)->~QDBusUnixFileDescriptor(); } void* QDBusVariant_NewQDBusVariant(){ return new QDBusVariant(); } void* QDBusVariant_NewQDBusVariant2(void* variant){ return new QDBusVariant(*static_cast(variant)); } void QDBusVariant_SetVariant(void* ptr, void* variant){ static_cast(ptr)->setVariant(*static_cast(variant)); } void* QDBusVariant_Variant(void* ptr){ return new QVariant(static_cast(ptr)->variant()); } class MyQDBusVirtualObject: public QDBusVirtualObject { public: void timerEvent(QTimerEvent * event) { callbackQDBusVirtualObjectTimerEvent(this, this->objectName().toUtf8().data(), event); }; void childEvent(QChildEvent * event) { callbackQDBusVirtualObjectChildEvent(this, this->objectName().toUtf8().data(), event); }; void customEvent(QEvent * event) { callbackQDBusVirtualObjectCustomEvent(this, this->objectName().toUtf8().data(), event); }; }; int QDBusVirtualObject_HandleMessage(void* ptr, void* message, void* connection){ return static_cast(ptr)->handleMessage(*static_cast(message), *static_cast(connection)); } char* QDBusVirtualObject_Introspect(void* ptr, char* path){ return static_cast(ptr)->introspect(QString(path)).toUtf8().data(); } void QDBusVirtualObject_DestroyQDBusVirtualObject(void* ptr){ static_cast(ptr)->~QDBusVirtualObject(); } void QDBusVirtualObject_TimerEvent(void* ptr, void* event){ static_cast(ptr)->timerEvent(static_cast(event)); } void QDBusVirtualObject_TimerEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusVirtualObject::timerEvent(static_cast(event)); } void QDBusVirtualObject_ChildEvent(void* ptr, void* event){ static_cast(ptr)->childEvent(static_cast(event)); } void QDBusVirtualObject_ChildEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusVirtualObject::childEvent(static_cast(event)); } void QDBusVirtualObject_CustomEvent(void* ptr, void* event){ static_cast(ptr)->customEvent(static_cast(event)); } void QDBusVirtualObject_CustomEventDefault(void* ptr, void* event){ static_cast(ptr)->QDBusVirtualObject::customEvent(static_cast(event)); }