Hello,
I implemented a org.freedesktop.DBus.NoReply annotation for the
dbusxx-xml2cpp in the gitorious reop.
Now this is possible:
<?xml version="1.0" ?>
<node name="/org/oicf/MapViewer">
<interface name="org.oicf.MapViewer">
<method name="moveMapSteps">
<annotation name="org.freedesktop.DBus.NoReply" value="yes"/>
<arg type="i" name="direction" direction="in"/>
<arg type="i" name="steps" direction="in"/>
</method>
<method name="incrementMapZoomLevel">
<annotation name="org.freedesktop.DBus.NoReply" value="yes"/>
</method>
<method name="decrementMapZoomLevel">
<annotation name="org.freedesktop.DBus.NoReply" value="yes"/>
</method>
<method name="updateGPSPositionWGS84Test">
<annotation name="org.freedesktop.DBus.NoReply" value="yes"/>
<arg type="(dddd)" name="pos" direction="in" object="CoordWGS84"/>
</method>
</interface>
</node>
It ignores the annotation and warns if any 'out' variables exists. This
features needs also the invoke_method_noreply() implementation in the
gitorious repo.
This way it's possible to implement async calls.
Hint: The object="..." syntax is deprecated. I'll change it soon to
annotations syntax.
regards
Andreas
|