[evolution-patches] (groupwise) patch to honour itemReference variable



Hi,
the attached patch honors the "itemReference" variable present for
attachments.

Thanks,
partha
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.130
diff -u -p -r1.130 ChangeLog
--- ChangeLog	17 Mar 2005 05:12:32 -0000	1.130
+++ ChangeLog	1 Apr 2005 13:08:50 -0000
@@ -1,3 +1,11 @@
+2005-04-01  Parthasarathi Susarla <sparthasarathi novell com>
+	
+	* e-gw-item.h: add a new element in the EGwItemAttachment
+	  structure for storing the itemRefernce value for an
+	  attachment
+	* e-gw-item.c: (e_gw_item_new_from_soap_parameter):
+	  check for the itemReference property for an attachment
+
 2005-03-16  Parthasarathi Susarla <sparthasarathi novell com>
 	
 	* e-gw-container.c: (e_gw_container_set_from_soap_parameter):
Index: e-gw-item.h
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.h,v
retrieving revision 1.29
diff -u -p -r1.29 e-gw-item.h
--- e-gw-item.h	8 Feb 2005 15:29:25 -0000	1.29
+++ e-gw-item.h	1 Apr 2005 13:08:50 -0000
@@ -50,9 +50,10 @@ typedef enum {
 	E_GW_ITEM_TYPE_CATEGORY,
 	E_GW_ITEM_TYPE_NOTIFICATION, 
 	E_GW_ITEM_TYPE_UNKNOWN
-	
+
 } EGwItemType;
 
+
 typedef enum {
 	E_GW_ITEM_CHANGE_TYPE_ADD,
 	E_GW_ITEM_CHANGE_TYPE_UPDATE,
@@ -120,6 +121,7 @@ typedef struct {
 
 typedef struct {
 	char *id ;
+	int reference;
 	char *name ;
 	char *contentType ;
 	int size ;
Index: e-gw-item.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/e-gw-item.c,v
retrieving revision 1.75
diff -u -p -r1.75 e-gw-item.c
--- e-gw-item.c	28 Feb 2005 15:30:58 -0000	1.75
+++ e-gw-item.c	1 Apr 2005 13:08:51 -0000
@@ -1780,8 +1780,13 @@ e_gw_item_new_from_soap_parameter (const
 				SoupSoapParameter *temp ;
 				EGwItemAttachment *attach = g_new0 (EGwItemAttachment, 1) ;
 				temp = soup_soap_parameter_get_first_child_by_name (attachment_param, "id") ;
-				if (temp)	
+				if (temp) {
+					char *ref = NULL;
 					attach->id = soup_soap_parameter_get_string_value (temp) ;
+					ref =  soup_soap_parameter_get_property (temp, "itemReference");
+					if (ref) 
+						attach->reference = atoi(ref), g_free (ref);
+				}
 				
 				temp = soup_soap_parameter_get_first_child_by_name (attachment_param, "name") ;
 				if (temp)


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