Logo Search packages:      
Sourcecode: kdbus version File versions  Download package

int QDBusConnection::sendWithAsyncReply ( const QDBusMessage message,
QObject *  receiver,
const char *  slot 
) const

Sends a message over the bus, specifying a receiver object for replies.

Sends a message composed through the QDBusMessage API to the bus and returns an identifier number to associate with the reply once it is received by the given receiver. See QDBusMessage::replySerialNumber()

The required slot signature is

   void slotname(const QDBusMessage&);

Note:
for doing method calls it is more convenient to use QDBusProxy, see QDBusProxy::sendWithAsyncReply()
Parameters:
message the message to send
receiver the QObject to relay the reply to
slot the slot to invoke for the reply
Returns:
a numeric identifier for association with the reply or 0 if sending failed
See also:
lastError()

Definition at line 254 of file qdbusconnection.cpp.

{
    if (!d || !d->connection)
        return 0;

    return d->sendWithReplyAsync(message, receiver, method);
}


Generated by  Doxygen 1.6.0   Back to index