I am trying to create programs that use D-Bus. Ive studied the examples included in Qt, about the same. One of them is called "D-Bus with remote control", there is a file called "car.xml" with the following contents:
<!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/trollech/examples/car">
<interface name="org.example.Examples.CarInterface">
<method name="accelerate"/>
<method name="decelerate"/>
<method name="turnLeft"/>
<method name="turnRight"/>
<signal name="crashed"/>
</interface>
</node>
If Im not mistaken, you are supposed to create this file using a tool named "qdbuscpp2xml". when i create xml with this command:
$ qdbuscpp2xml -A car.h -o car2.xml
I get the following content in the generated XML file:
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="local.Car">
<signal name="crashed">
</signal>
<method name="accelerate">
</method>
<method name="decelerate">
</method>
<method name="turnLeft">
</method>
<method name="turnRight">
</method>
</interface>
</node>
which differs from car.xml in the following lines:
<node name="/com/trollech/examples/car">
<interface name="org.example.Examples.CarInterface">
Why am I getting another file? was included a file (car.xml) with an example created manually?