[Telepathy-commits] [telepathy-qt4/master] StatefulDBusProxy: add an inline version of invalidate() that takes QDBusError

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Jan 12 08:53:11 PST 2009


---
 TelepathyQt4/Client/dbus-proxy.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Client/dbus-proxy.h b/TelepathyQt4/Client/dbus-proxy.h
index 060f1f6..fba4c94 100644
--- a/TelepathyQt4/Client/dbus-proxy.h
+++ b/TelepathyQt4/Client/dbus-proxy.h
@@ -29,6 +29,7 @@
 // FIXME: What groups should this be in/define?
 
 #include <QDBusConnection>
+#include <QDBusError>
 
 namespace Telepathy
 {
@@ -176,6 +177,8 @@ protected:
      */
     void invalidate(const QString &reason, const QString &message);
 
+    inline void invalidate(const QDBusError &error);
+
 Q_SIGNALS:
     /**
      * Emitted when this object is no longer usable.
@@ -203,6 +206,11 @@ private:
     Private *mPriv;
 };
 
+void StatefulDBusProxy::invalidate(const QDBusError &error)
+{
+    invalidate(error.name(), error.message());
+}
+
 }
 }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list