[evolution-patches] Groupwise connection - Change in prototype for get_items call



hi,

 This patch contains a change in the prototype of the
e_gw_connection_get_items call. The 'view' element which was embedded in
the body of the function is now an argument to the get_items call.
This enables the addressbook backend to use the function as well by
passing NULL as the view argument.
The callers of this function have been updated with the new prototype as
well.

harish

Index: servers/groupwise/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/servers/groupwise/ChangeLog,v
retrieving revision 1.10
diff -u -p -r1.10 ChangeLog
--- servers/groupwise/ChangeLog	11 Mar 2004 11:51:05 -0000	1.10
+++ servers/groupwise/ChangeLog	14 Mar 2004 07:31:07 -0000
@@ -1,3 +1,7 @@
+2004-03-14  Harish K <kharish novell com>
+	* e-gw-connection.[ch] : Make view element an argument to the 
+	get_items call so the addressbook component can use it as well.
+	
 2004-03-11  Rodrigo Moya <rodrigo ximian com>
 
 	* e-gw-connection.c (e_gw_connection_get_address_book_id): return
Index: servers/groupwise/e-gw-connection.h
===================================================================
RCS file:
/cvs/gnome/evolution-data-server/servers/groupwise/e-gw-connection.h,v
retrieving revision 1.24
diff -u -p -r1.24 e-gw-connection.h
--- servers/groupwise/e-gw-connection.h	11 Mar 2004 10:23:28 -0000	1.24
+++ servers/groupwise/e-gw-connection.h	14 Mar 2004 07:31:09 -0000
@@ -73,7 +73,7 @@ EGwConnectionStatus e_gw_connection_get_
 void                e_gw_connection_free_container_list (GList
*container_list);
 char               *e_gw_connection_get_container_id (EGwConnection
*cnc, const char *name);
 EGwConnectionStatus e_gw_connection_get_items (EGwConnection *cnc,
const char *container,
-					       EGwFilter *filter, GList **list);
+					       const char *view, EGwFilter *filter, GList **list);
 EGwConnectionStatus e_gw_connection_get_deltas ( EGwConnection *cnc,
GSList **adds, GSList **deletes, GSList **updates);
 EGwConnectionStatus e_gw_connection_send_item (EGwConnection *cnc,
EGwItem *item);
 EGwConnectionStatus e_gw_connection_remove_item (EGwConnection *cnc,
const char *container, const char *id);
Index: servers/groupwise/e-gw-connection.c
===================================================================
RCS file:
/cvs/gnome/evolution-data-server/servers/groupwise/e-gw-connection.c,v
retrieving revision 1.58
diff -u -p -r1.58 e-gw-connection.c
--- servers/groupwise/e-gw-connection.c	11 Mar 2004 11:51:05 -0000	1.58
+++ servers/groupwise/e-gw-connection.c	14 Mar 2004 07:31:10 -0000
@@ -469,7 +469,7 @@ e_gw_connection_get_container_id (EGwCon
 }
 
 EGwConnectionStatus
-e_gw_connection_get_items (EGwConnection *cnc, const char *container,
EGwFilter *filter, GList **list)
+e_gw_connection_get_items (EGwConnection *cnc, const char *container,
const char *view, EGwFilter *filter, GList **list)
 {
         SoupSoapMessage *msg;
         SoupSoapResponse *response;
@@ -486,6 +486,8 @@ e_gw_connection_get_items (EGwConnection
         }
 
         e_gw_message_write_string_parameter (msg, "container", NULL,
container);
+	if (view)
+		e_gw_message_write_string_parameter (msg, "view", NULL, view);
 	if (filter) 
 		e_gw_filter_append_to_soap_message (filter, msg);
 	e_gw_message_write_footer (msg);
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.203
diff -u -p -r1.203 ChangeLog
--- calendar/ChangeLog	11 Mar 2004 15:15:06 -0000	1.203
+++ calendar/ChangeLog	14 Mar 2004 07:31:11 -0000
@@ -1,3 +1,7 @@
+2004-03-14  Harish K <kharish novell com>
+	* calendar/backends/groupwise/e-cal-backend-groupwise.c :
+	Update calls to e_gw_connection_get_items with the new prototype.
+	
 2004-03-11  Rodrigo Moya <rodrigo ximian com>
 
 	* libedata-cal/e-data-cal.c (e_data_cal_notify_objects_sent): guard
Index: calendar/backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file:
/cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.49
diff -u -p -r1.49 e-cal-backend-groupwise.c
--- calendar/backends/groupwise/e-cal-backend-groupwise.c	5 Mar 2004
10:18:48 -0000	1.49
+++ calendar/backends/groupwise/e-cal-backend-groupwise.c	14 Mar 2004
07:31:11 -0000
@@ -76,7 +76,7 @@ populate_cache (ECalBackendGroupwise *cb
 	priv = cbgw->priv;
 
         /* get all the objects from the server */
-        status = e_gw_connection_get_items (priv->cnc,
priv->container_id, NULL, &list);
+        status = e_gw_connection_get_items (priv->cnc,
priv->container_id, "recipients", NULL, &list);
         if (status != E_GW_CONNECTION_STATUS_OK) {
                 g_list_free (list);
                 return status;
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/ChangeLog,v
retrieving revision 1.102
diff -u -p -r1.102 ChangeLog
--- addressbook/ChangeLog	13 Mar 2004 22:40:44 -0000	1.102
+++ addressbook/ChangeLog	14 Mar 2004 07:31:12 -0000
@@ -1,3 +1,7 @@
+2004-03-14  Harish K <kharish novell com>
+	* backends/groupwise/e-cal-backend-groupwise.c :
+	Update calls to e_gw_connection_get_items with the new prototype.
+
 2004-03-12  Chris Toshok  <toshok ximian com>
 
 	* libedata-book/e-data-book-view.h: add prototype for
Index: addressbook/backends/groupwise/e-book-backend-groupwise.c
===================================================================
RCS file:
/cvs/gnome/evolution-data-server/addressbook/backends/groupwise/e-book-backend-groupwise.c,v
retrieving revision 1.2
diff -u -p -r1.2 e-book-backend-groupwise.c
--- addressbook/backends/groupwise/e-book-backend-groupwise.c	11 Mar
2004 10:23:26 -0000	1.2
+++ addressbook/backends/groupwise/e-book-backend-groupwise.c	14 Mar
2004 07:31:13 -0000
@@ -906,7 +906,7 @@ e_book_backend_groupwise_get_contact_lis
 						      vcard_list);
 	}
 
-	status = e_gw_connection_get_items (egwb->priv->cnc,
egwb->priv->container_id, NULL, &gw_items);
+	status = e_gw_connection_get_items (egwb->priv->cnc,
egwb->priv->container_id, NULL, NULL, &gw_items);
 	if (status != E_GW_CONNECTION_STATUS_OK) {
 		e_data_book_respond_get_contact_list (book,
GNOME_Evolution_Addressbook_OtherError,
 						      NULL);
@@ -944,7 +944,7 @@ e_book_backend_groupwise_start_book_view
 	}
 		
 	e_data_book_view_notify_status_message (book_view, "Searching...");
-	status = e_gw_connection_get_items (gwb->priv->cnc,
gwb->priv->container_id, NULL, &gw_items);
+	status = e_gw_connection_get_items (gwb->priv->cnc,
gwb->priv->container_id, NULL, NULL, &gw_items);
     
 	if (status != E_GW_CONNECTION_STATUS_OK) {
 		e_data_book_view_notify_complete (book_view,
GNOME_Evolution_Addressbook_OtherError);






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