[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:       Havoc Pennington <hp () redhat ! com>
Date:       2007-11-05 23:05:07
Message-ID: 472FA1A3.5080803 () redhat ! com
[Download RAW message or body]

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

_______________________________________________
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