diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-06-29 13:20:33 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-02 09:43:30 (GMT) |
commit | 8d4657764b0c4362dc25aa79a6e2853b8c98f0ad (patch) | |
tree | 51b61a6b7547168e7e64cd9c3b5574b10a33693b /src/dbus/qdbuspendingcall_p.h | |
parent | 6b0b1a3eefe60dbeed3f56770fb58d487852e45b (diff) | |
download | Qt-8d4657764b0c4362dc25aa79a6e2853b8c98f0ad.zip Qt-8d4657764b0c4362dc25aa79a6e2853b8c98f0ad.tar.gz Qt-8d4657764b0c4362dc25aa79a6e2853b8c98f0ad.tar.bz2 |
Keep creation failure errors for QDBusAbstractInterface.
In case the object creation fails, set isValid to false. This will
prevent any outgoing calls to be made with invalid information. In
that case, lastError will never change either.
This required adding a method to QDBusPendingCall, to be able to
create one such object from an existing QDBusError.
Reviewed-By: Marius Bugge Monsen
Diffstat (limited to 'src/dbus/qdbuspendingcall_p.h')
-rw-r--r-- | src/dbus/qdbuspendingcall_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbuspendingcall_p.h b/src/dbus/qdbuspendingcall_p.h index 7136f67..5577451 100644 --- a/src/dbus/qdbuspendingcall_p.h +++ b/src/dbus/qdbuspendingcall_p.h @@ -63,6 +63,7 @@ QT_BEGIN_NAMESPACE +class QDBusPendingCall; class QDBusPendingCallWatcher; class QDBusPendingCallWatcherHelper; class QDBusConnectionPrivate; @@ -94,6 +95,8 @@ public: void waitForFinished(); void setMetaTypes(int count, const int *types); void checkReceivedSignature(); + + static QDBusPendingCall fromMessage(const QDBusMessage &msg); }; class QDBusPendingCallWatcherHelper: public QObject |