[Telepathy-commits] [telepathy-qt4/master] Constants: add TELEPATHY_DBUS_ERROR_NAME_HAS_NO_OWNER

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Jan 12 07:31:22 PST 2009


QtDBus doesn't expose equivalents of all the DBUS_ERROR_* macros from
libdbus, and this one seems like the most appropriate mapping for
"the service tracked by this StatefulDBusProxy has gone away".
---
 TelepathyQt4/constants.h |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/constants.h b/TelepathyQt4/constants.h
index fc7c80c..f27869d 100644
--- a/TelepathyQt4/constants.h
+++ b/TelepathyQt4/constants.h
@@ -99,4 +99,19 @@
 
 #include <TelepathyQt4/_gen/constants.h>
 
+/**
+ * \ingroup errorstrconsts
+ *
+ * The error name "org.freedesktop.DBus.Error.NameHasNoOwner".
+ *
+ * Raised by the D-Bus daemon when looking up the owner of a well-known name,
+ * if no process owns that name.
+ *
+ * Also used by DBusProxy to indicate that the owner of a well-known name
+ * has disappeared (usually indicating that the process owning that name
+ * exited or crashed).
+ */
+#define TELEPATHY_DBUS_ERROR_NAME_HAS_NO_OWNER \
+    "org.freedesktop.DBus.Error.NameHasNoOwner"
+
 #endif
-- 
1.5.6.5




More information about the Telepathy-commits mailing list