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;
|
data->request = request;
|
||||||
message.setDelayedReply(true);
|
message.setDelayedReply(true);
|
||||||
data->reply = message.createReply();
|
data->reply = message.createReply();
|
||||||
QDBusConnection::sessionBus().send(data->reply);
|
|
||||||
|
|
||||||
appendRequest(data);
|
appendRequest(data);
|
||||||
return QString();
|
return QString();
|
||||||
|
@ -174,9 +174,6 @@
|
|||||||
|
|
||||||
\snippet code/doc_src_qdbusadaptors.cpp 10
|
\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
|
In this case, the return value is unimportant; we return an arbitrary value
|
||||||
to satisfy the compiler.
|
to satisfy the compiler.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user