[telepathy-glib/master] errors: add TP_ERROR_CONNECTION_REFUSED, TP_ERROR_CONNECTION_FAILED and TP_ERROR_CONNECTION_LOST

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue May 26 04:43:42 PDT 2009


---
 telepathy-glib/errors.c |    9 +++++++++
 telepathy-glib/errors.h |    3 +++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/errors.c b/telepathy-glib/errors.c
index 5cc8607..9f1a5d4 100644
--- a/telepathy-glib/errors.c
+++ b/telepathy-glib/errors.c
@@ -138,6 +138,12 @@
  *     particular, this error SHOULD be used whenever normal termination of a
  *     1-1 StreamedMedia call by the remote user is represented as a D-Bus
  *     error name.
+ * @TP_ERROR_CONNECTION_REFUSED: org.freedesktop.Telepathy.Error.ConnectionRefused:
+ *     Raised when a connection is refused.
+ * @TP_ERROR_CONNECTION_FAILED: org.freedesktop.Telepathy.Error.ConnectionFailed:
+ *     Raised when a connection can't be established.
+ * @TP_ERROR_CONNECTION_LOST: org.freedesktop.Telepathy.Error.ConnectionLost:
+ *     Raised when a connection is broken.
  *
  * Enumerated type representing the Telepathy D-Bus errors.
  */
@@ -247,6 +253,9 @@ tp_error_get_type (void)
         { TP_ERROR_NO_ANSWER, "TP_ERROR_NO_ANSWER", "NoAnswer" },
         { TP_ERROR_DOES_NOT_EXIST, "TP_ERROR_DOES_NOT_EXIST", "DoesNotExist" },
         { TP_ERROR_TERMINATED, "TP_ERROR_TERMINATED", "Terminated" },
+        { TP_ERROR_CONNECTION_REFUSED, "TP_ERROR_CONNECTION_REFUSED", "ConnectionRefused" },
+        { TP_ERROR_CONNECTION_FAILED, "TP_ERROR_CONNECTION_FAILED", "ConnectionFailed" },
+        { TP_ERROR_CONNECTION_LOST, "TP_ERROR_CONNECTION_LOST", "ConnectionLost" },
         { 0 }
       };
 
diff --git a/telepathy-glib/errors.h b/telepathy-glib/errors.h
index 4387645..fc5bc1d 100644
--- a/telepathy-glib/errors.h
+++ b/telepathy-glib/errors.h
@@ -71,6 +71,9 @@ typedef enum {
     TP_ERROR_NO_ANSWER,
     TP_ERROR_DOES_NOT_EXIST,
     TP_ERROR_TERMINATED,
+    TP_ERROR_CONNECTION_REFUSED,
+    TP_ERROR_CONNECTION_FAILED,
+    TP_ERROR_CONNECTION_LOST,
 } TpError;
 
 const gchar *tp_error_get_dbus_name (TpError error);
-- 
1.5.6.5




More information about the telepathy-commits mailing list