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

QDBusMessage::MessageType QDBusMessage::type (  )  const

Returns which kind of message this is.

Returns:
the message's type

Definition at line 242 of file qdbusmessage.cpp.

References ErrorMessage, InvalidMessage, MethodCallMessage, ReplyMessage, and SignalMessage.

Referenced by DBusDispatcher::executeMethod(), and DBusService::populate().

{
    switch (d->type) {
    case DBUS_MESSAGE_TYPE_METHOD_CALL:
        return MethodCallMessage;
    case DBUS_MESSAGE_TYPE_METHOD_RETURN:
        return ReplyMessage;
    case DBUS_MESSAGE_TYPE_ERROR:
        return ErrorMessage;
    case DBUS_MESSAGE_TYPE_SIGNAL:
        return SignalMessage;
    default:
        return InvalidMessage;
    }
}


Generated by  Doxygen 1.6.0   Back to index