Doc: remove wrong documentation for Qt D-Bus delayed replies
People implementing D-Bus services *should not* immediately call QDBusConnection::send() when intending to delay their reply, as this indeed causes a reply to be sent to the client. Change-Id: I50817f6b91ac1a02a2a25f6d31e73ad9832f1092 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
13e0a36626
commit
20b823f5a7
@ -62,7 +62,6 @@ QString processRequest(const QString &request, const QDBusMessage &message)
|
||||
data->request = request;
|
||||
message.setDelayedReply(true);
|
||||
data->reply = message.createReply();
|
||||
QDBusConnection::sessionBus().send(data->reply);
|
||||
|
||||
appendRequest(data);
|
||||
return QString();
|
||||
|
@ -174,9 +174,6 @@
|
||||
|
||||
\snippet code/doc_src_qdbusadaptors.cpp 10
|
||||
|
||||
The use of
|
||||
\l{QDBusConnection::send()}{QDBusConnection::sessionBus().send(data->reply)}
|
||||
is needed to explicitly inform the caller that the response will be delayed.
|
||||
In this case, the return value is unimportant; we return an arbitrary value
|
||||
to satisfy the compiler.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user