From freedesktop-dbus Mon Nov 05 22:13:33 2007 From: David Zeuthen Date: Mon, 05 Nov 2007 22:13:33 +0000 To: freedesktop-dbus Subject: Re: Annotation type for an asyncronous method using dbus qt3 binding Message-Id: <1194300813.3388.8.camel () oneill ! fubar ! dk> X-MARC-Message: https://marc.info/?l=freedesktop-dbus&m=119430099127264 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: > > > > > > 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 _______________________________________________ dbus mailing list dbus@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dbus