[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: Annotation type for an asyncronous method using dbus qt3 binding
From: David Zeuthen <david () fubar ! dk>
Date: 2007-11-05 22:13:33
Message-ID: 1194300813.3388.8.camel () oneill ! fubar ! dk
[Download RAW message or body]
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
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic