n00b: signals with an extensible message
Ville M. Vainio
vivainio at gmail.com
Tue Feb 16 07:40:54 PST 2010
On Tue, Feb 16, 2010 at 5:04 PM, Tim Hockin <thockin at hockin.org> wrote:
> Are there examples of marshalling/unmarshalling an a{sv} payload?
> That might work..
If you are using qtdbus & qdbusxml2cpp, have this in your interface :
<method name="SetData">
<annotation name="com.trolltech.QtDBus.QtTypeName.In1"
value="QVariantMap"/>
<arg name="appletid" type="s" direction="in"/>
<arg name="data" type="a{sv}" direction="in"/>
</method>
In the generated code, you'll have the data in handy QVariantMap structure.
--
Ville M. Vainio
http://tinyurl.com/vainio
More information about the dbus
mailing list