PDA

View Full Version : qdbuscpp2xml



Bookmarc
4th April 2008, 22:27
Hi,

I'm trying to use the qdbuscpp2xml program to generate a very simple application that can "transfert" a simple array of bytes through DBus.

Here's the Xml file that I'm using :


<!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="com.harfang.testdataxfer">
<signal name="message">
<arg name="name" type="s" direction="out"/>
<arg name="data" type="ai" direction="out"/>
</signal>
<signal name="action">
<arg name="name" type="s" direction="out"/>
<arg name="data" type="ai" direction="out"/>
</signal>
</interface>
</node>


I'm trying to generate the code using this cmd :


qdbusxml2cpp -a adaptor.h: com.harfang.testxfer.xml

And I get the following :



Got unknown type `ai'
You should add <annotation name="com.trolltech.QtDBus.QtTypeName.In1" value="<type>"/> to the XML description


I've lookup in the DBus documentation, and the "ai" seems to be the correct way to describe the data. Also, the Qt documentation says the basic arrays are supported. I've also tried to add the "annotation" line with no success. I'm missing something here !

Any help would be greatly appreciated!

Thanks,

Marc