PDA

View Full Version : Cannot configure D-Bus interface name to exports slots to



atessadri
27th November 2014, 13:37
I am trying to modify the example remotecontrollercar, found in Qt sources, where a Car is controlled via D-Bus by a remote controller.
In my situation I have this middleware.xml file to define the interface I would like to create on D-Bus


<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node name="/com/respa/webscanner/middleware">
<interface name="com.respa.webscanner.MiddlewareInterface">
<method name="destra"/>
<method name="sinistra"/>
<signal name="errore"/>
</interface>
</node>

Unfortunately when I compile my application I've never got on D-Bus session the interface with the name com.respa.webscanner.MiddlewareInterface
Since the executable file is called GuiWebScannerText, the interface that I see created on D-Bus is always local.GuiWebScannerTest.Middleware

The adaptor is properly generated but I cannot find where the interface name becomes local.Gui ... instead of com.respa.websc... like it should be.
Thank you in advance

Andrew
(Italy)