[evolution-patches] (groupwise)patch to populate ids based on view



hi,
the attached patch populates ICallId or uid based on the view given for
the "All" filter.

Thanks and cheers,
partha
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.140
diff -u -p -r1.140 ChangeLog
--- ChangeLog	6 Jun 2005 12:20:20 -0000	1.140
+++ ChangeLog	7 Jun 2005 06:48:25 -0000
@@ -1,3 +1,7 @@
+2005-06-07  Parthasarathi Susarla <sparthasarathi novell com>
+	* e-gw-connection.c (e_gw_connection_get_quick_messages):
+	  get id or IcalId based on the view. 
+
 2005-06-06  Chenthill Palanisamy  <pchenthill novell com>
 
 	* e-gw-connection.[ch] (e_gw_connection_delegate_request): Added 	a function for sending a delegate request.
Index: e-gw-connection.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-connection.c,v
retrieving revision 1.117
diff -u -p -r1.117 e-gw-connection.c
--- e-gw-connection.c	6 Jun 2005 12:20:20 -0000	1.117
+++ e-gw-connection.c	7 Jun 2005 06:48:25 -0000
@@ -2224,6 +2224,9 @@ EGwConnectionStatus e_gw_connection_get_
 	}
 	
 	if (!strcmp (message_list, "All")) { 
+		gboolean view_is_id = FALSE;
+		if (!strcmp (view, "id")) 
+			view_is_id = TRUE;
 		/* We are  interested only in getting the ids */
 		for (subparam = soup_soap_parameter_get_first_child_by_name (param, "item");
 	     	     subparam != NULL;
@@ -2231,9 +2234,15 @@ EGwConnectionStatus e_gw_connection_get_
 			SoupSoapParameter *param_id;
 		     	char *id;
 			
-			param_id = soup_soap_parameter_get_first_child_by_name (subparam, "iCalId");
-			if (!param_id) {
+			if (view_is_id) {
 				param_id = soup_soap_parameter_get_first_child_by_name (subparam, "id");
+				if (!param_id) {
+					g_object_unref (response);
+					g_object_unref (msg);
+					return E_GW_CONNECTION_STATUS_INVALID_RESPONSE;
+				}
+			} else {
+				param_id = soup_soap_parameter_get_first_child_by_name (subparam, "iCalId");
 				if (!param_id) {
 					g_object_unref (response);
 					g_object_unref (msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]