PDA

View Full Version : DBUS and Asynchronous slots



HERC
23rd February 2010, 09:15
Hello,

I want to setup an asynchronous call between an non QT appl and QT appli over DBUS. In the QT document I found:

Asynchronous slots are those that do not normally return any reply to the caller. For that reason, they cannot take any output parameters. In most cases, by the time the first line of the slot is run, the caller function has already resumed working.
Asynchronous slots are marked by the keyword Q_NOREPLY in the method signature, before the void return type and the slot name.


So it seems that normally QT sends an NO REPLY message before he executes the first line of the Slot. However I made some tests and the NO_REPLY messages is always send at the end of execution of the slot. So QT doesn't put the code for sending a NO_REPLY before the first line of the slot. Does somebody know how I can send the NO_REPLY message before the execution of the first line of my slot?