How to register an interface and register methods using QtDbus?

1.7k views Asked by At

I want to register an interface and methods on QtDbus.

In glib Dbus we have have a method g_dbus_register_interface(.. ,.. , .., ..).

Is there a way I can do the same using QtDbus?

1

There are 1 answers

0
Luca Carlon On

Yes, you have to use QDBusConnectionInterface::registerService and QDBusConnectionInterface::registerObject. Follow this manual for a complete guide: http://techbase.kde.org/Development/Tutorials/D-Bus/Creating_Interfaces.