|
From: Andreas V. <li...@br...> - 2008-10-01 22:00:07
|
Am Tue, 9 Sep 2008 23:13:33 +0200 schrieb Andreas Volz: > Hello, > > now I found out about annotations in dbus-glib XML: > > http://dbus.freedesktop.org/doc/dbus-tutorial.html#glib-annotations > > So I've some questions: > > - Do you think we should use the same concept for dbus-c++? > > - Any ideas why the name is e.g. org.freedesktop.DBus.GLib.Async? I > think if the name would be org.freedesktop.DBus.Async it wouldn't be > GLib specific. > > - Refering to my proposal: > > <signal name="onButtonListener"> > <arg type="(inyb)" name="eventButton" direction="out" > object="KeyEvent"/> > </signal> > > This may better be written: > > <signal name="onButtonListener"> > <arg type="(inyb)" name="eventButton" direction="out"> > <annotation name="org.freedesktop.DBus.Object" > value="KeyEvent"/> > </arg> > </signal> I changed the code generator in the gitorious repo to the new behaviour with: <annotation name="org.freedesktop.DBus.Object" value="KeyEvent"/> It's tested in one application here and working well. But we need more testing to include this in the official distribution. You're invited to test the gitorious branch. regards Andreas |