Annotation type for an asyncronous method using dbus qt3 binding

Havoc Pennington hp at redhat.com
Mon Nov 5 15:05:07 PST 2007


Hi,

Thiago Macieira wrote:
> 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".
> 

More precisely, the spec for the "no reply" flag in a DBusMessage is 
that if the flag is set, the implementation of the method need not (but 
may) send a reply, because the caller of the method expects to ignore 
the reply. i.e. it's a hint from the caller to the method implementation 
that the caller doesn't care about the reply.

The NO_REPLY flag is a property of the specific invocation (or of code 
generated by a binding), not a property of the interface per se. That 
is, NO_REPLY is an aspect of how a method is invoked, not an aspect of 
the method.

(Hopefully this is what that annotation does in Qt also, otherwise I 
don't think stuff marked with it will be interoperable)

Havoc



More information about the dbus mailing list