Only in qtbase-opensource-src-5.4.2/src/dbus/: Makefile Only in qtbase-opensource-src-5.4.2/src/dbus/: .moc Only in qtbase-opensource-src-5.4.2/src/dbus/: .obj Only in qtbase-opensource-src-5.4.2/src/dbus/: -p2 Only in qtbase-opensource-src-5.4.2/src/dbus/: .pch diff -rubB qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage.cpp qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage.cpp --- qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage.cpp 2015-02-10 17:57:16.000000000 +0100 +++ qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage.cpp 2015-02-13 23:42:04.810660730 +0100 @@ -56,7 +56,7 @@ QDBusMessagePrivate::QDBusMessagePrivate() : msg(0), reply(0), type(DBUS_MESSAGE_TYPE_INVALID), - timeout(-1), localReply(0), ref(1), delayedReply(false), localMessage(false), + timeout(-1), serial(0), localReply(0), ref(1), delayedReply(false), localMessage(false), parametersValidated(false), autoStartService(true) { } @@ -229,6 +229,7 @@ QString::fromUtf8(q_dbus_message_get_member(dmsg)); message.d_ptr->service = QString::fromUtf8(q_dbus_message_get_sender(dmsg)); message.d_ptr->signature = QString::fromUtf8(q_dbus_message_get_signature(dmsg)); + message.d_ptr->serial = q_dbus_message_get_reply_serial(dmsg); message.d_ptr->msg = q_dbus_message_ref(dmsg); QDBusDemarshaller demarshaller(capabilities); @@ -598,6 +599,14 @@ } /*! + Returns the serial of the message that was received or 0 if undefined. +*/ +uint QDBusMessage::serial() const +{ + return d_ptr->serial; +} + +/*! Returns the flag that indicates if this message should see a reply or not. This is only meaningful for \l {MethodCallMessage}{method call messages}: any other kind of message cannot have replies and @@ -789,6 +798,7 @@ dbg.nospace() << ", error name=" << msg.errorName() << ", error message=" << msg.errorMessage(); dbg.nospace() << ", signature=" << msg.signature() + << ", serial=" << msg.serial() << ", contents=("; debugVariantList(dbg, msg.arguments()); dbg.nospace() << ") )"; diff -rubB qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage.h qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage.h --- qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage.h 2015-02-10 17:57:16.000000000 +0100 +++ qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage.h 2015-02-13 23:36:00.447175961 +0100 @@ -93,6 +93,7 @@ QString errorMessage() const; MessageType type() const; QString signature() const; + uint serial() const; bool isReplyRequired() const; diff -rubB qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage_p.h qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage_p.h --- qtbase-opensource-src-5.4.2.orig/src/dbus/qdbusmessage_p.h 2015-02-10 17:57:16.000000000 +0100 +++ qtbase-opensource-src-5.4.2/src/dbus/qdbusmessage_p.h 2015-02-13 23:42:52.025113681 +0100 @@ -74,6 +74,7 @@ DBusMessage *reply; int type; int timeout; + uint serial; mutable QDBusMessage *localReply; QAtomicInt ref; diff -rubB qtbase-opensource-src-5.4.2.orig/src/dbus/qdbus_symbols_p.h qtbase-opensource-src-5.4.2/src/dbus/qdbus_symbols_p.h --- qtbase-opensource-src-5.4.2.orig/src/dbus/qdbus_symbols_p.h 2015-02-10 17:57:16.000000000 +0100 +++ qtbase-opensource-src-5.4.2/src/dbus/qdbus_symbols_p.h 2015-02-13 23:19:43.785519283 +0100 @@ -217,6 +217,8 @@ (message), return) DEFINEFUNC(dbus_uint32_t , dbus_message_get_serial, (DBusMessage *message), (message), return) +DEFINEFUNC(dbus_uint32_t , dbus_message_get_reply_serial, (DBusMessage *message), + (message), return) DEFINEFUNC(const char* , dbus_message_get_signature, (DBusMessage *message), (message), return) DEFINEFUNC(int , dbus_message_get_type, (DBusMessage *message),