Annotation type for an asyncronous method using dbus qt3 binding

David Zeuthen david at fubar.dk
Mon Nov 5 14:13:33 PST 2007


On Mon, 2007-11-05 at 17:27 +0200, Thiago Macieira wrote:
> Em Monday 05 November 2007 15:33:08 Gökçen Eraslan escreveu:
> > Hi,
> >
> > I am writing policykit-kde which is KDE counterpart of PolicyKit-gnome. I
> > use this[1] qt3 binding of dbus, but i couldn't find out what i should
> > write as annotation type of my asyncronous method in xml description file.
> >
> > PolicyKit-gnome application uses this for a similar method:
> > <annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
> >
> > Since name attribute includes "GLib" i couldn't be sure about using this.
> > Is this the suitable one for the binding i use and method i wrote, or what
> > else i can use as an annotation type of my asyncronous method?
> 
> I think you're looking for the annotation:
> 
> 	org.freedesktop.DBus.Method.NoReply
> 
> That is also what Qt 4 uses. It means the method will not post a reply -- 
> which is equivalent to DCOP's return type "ASYNC".
> 
> The GLib annotation you found is really GLib-specific: it means that the 
> binding tool will generate code for a method that replies asynchronously, but 
> still posts a reply. Or was it to receive a reply asynchronously? 

Yup, the reason for that glib-specific annotation is that the server
glue will be generated for the org.gnome.PolicyKit server to reply
asynchronously; the method itself sends a reply; see

 http://hal.freedesktop.org/docs/PolicyKit-gnome/ref-auth-daemon.html
 (these docs will eventually move to gnome.org)

for more information. Thanks.

       David




More information about the dbus mailing list