From d60d3727a4bfb7dc12f7169cd394c66becd73c3b Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Tue, 5 Oct 2004 11:27:30 +0000 Subject: [PATCH] Fixes #66484 Added a enum variable for the code error User not found error 2004-10-04 Chenthill Palanisamy Fixes #66484 * e-gw-connection.[ch] (EGwConnectionStatus): Added a enum variable for the code error User not found error message from the server. * e-gw-connection.c (e_gw_connection_parse_response_status), (e_gw_connection_get_error_message): Added the code 53505 and used the new enum variable. --- servers/groupwise/ChangeLog | 10 ++++++++++ servers/groupwise/e-gw-connection.c | 3 +++ servers/groupwise/e-gw-connection.h | 1 + 3 files changed, 14 insertions(+) diff --git a/servers/groupwise/ChangeLog b/servers/groupwise/ChangeLog index 4bccb5d..4105020 100644 --- a/servers/groupwise/ChangeLog +++ b/servers/groupwise/ChangeLog @@ -1,3 +1,13 @@ +2004-10-04 Chenthill Palanisamy + + Fixes #66484 + * e-gw-connection.[ch] (EGwConnectionStatus): + Added a enum variable for the code error User not + found error message from the server. + * e-gw-connection.c (e_gw_connection_parse_response_status), + (e_gw_connection_get_error_message): + Added the code 53505 and used the new enum variable. + 2004-10-01 Chenthill Palanisamy Fixes #62868 diff --git a/servers/groupwise/e-gw-connection.c b/servers/groupwise/e-gw-connection.c index 0cb8a0e..c6c7e7f 100644 --- a/servers/groupwise/e-gw-connection.c +++ b/servers/groupwise/e-gw-connection.c @@ -64,6 +64,7 @@ e_gw_connection_parse_response_status (SoupSoapResponse *response) switch (soup_soap_parameter_get_int_value (subparam)) { case 0 : return E_GW_CONNECTION_STATUS_OK; case 59905 : return E_GW_CONNECTION_STATUS_BAD_PARAMETER; + case 53505 : return E_GW_CONNECTION_STATUS_UNKNOWN_USER; case 59914: return E_GW_CONNECTION_STATUS_ITEM_ALREADY_ACCEPTED; /* FIXME: map all error codes */ } @@ -85,6 +86,8 @@ e_gw_connection_get_error_message (EGwConnectionStatus status) return _("Invalid response from server"); case E_GW_CONNECTION_STATUS_OBJECT_NOT_FOUND : return _("Object not found"); + case E_GW_CONNECTION_STATUS_UNKNOWN_USER : + return _("Unknown User"); case E_GW_CONNECTION_STATUS_BAD_PARAMETER : return _("Bad parameter"); case E_GW_CONNECTION_STATUS_OTHER : diff --git a/servers/groupwise/e-gw-connection.h b/servers/groupwise/e-gw-connection.h index 799d07e..656a1ad 100644 --- a/servers/groupwise/e-gw-connection.h +++ b/servers/groupwise/e-gw-connection.h @@ -60,6 +60,7 @@ typedef enum { E_GW_CONNECTION_STATUS_INVALID_OBJECT, E_GW_CONNECTION_STATUS_INVALID_RESPONSE, E_GW_CONNECTION_STATUS_OBJECT_NOT_FOUND, + E_GW_CONNECTION_STATUS_UNKNOWN_USER, E_GW_CONNECTION_STATUS_BAD_PARAMETER, E_GW_CONNECTION_STATUS_ITEM_ALREADY_ACCEPTED, E_GW_CONNECTION_STATUS_OTHER, -- 2.7.4