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

QDBusMessage QDBusMessage::methodReply ( const QDBusMessage other  )  [static]

Creates a message for replying to a DBus method call.

Replying to a DBus method call in the case of success requires a message of type ReplyMessage as well as the information to which method call it is replying to.

Parameters:
other the method call message it is replying to
Returns:
a message suitable for appending arguments and for sending
See also:
methodCall()

methodError()

QDBusConnection::send()

Definition at line 75 of file qdbusmessage.cpp.

References d.

{
    Q_ASSERT(other.d->msg);

    QDBusMessage message;
    message.d->type = DBUS_MESSAGE_TYPE_METHOD_RETURN;
    message.d->reply = dbus_message_ref(other.d->msg);

    return message;
}


Generated by  Doxygen 1.6.0   Back to index