Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pchenthill
evolution-data-server
bnc-292296-groupwise-purge-selected.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc-292296-groupwise-purge-selected.diff of Package evolution-data-server
--- servers/groupwise/e-gw-connection.c.ab 2007-09-11 14:56:29.000000000 +0530 +++ servers/groupwise/e-gw-connection.c 2007-09-11 16:41:47.000000000 +0530 @@ -2952,6 +2952,39 @@ e_gw_connection_purge_deleted_items (EGw } +EGwConnectionStatus +e_gw_connection_purge_selected_items (EGwConnection *cnc, GList *item_ids) +{ + + SoupSoapMessage *msg; + SoupSoapResponse *response; + EGwConnectionStatus status = E_GW_CONNECTION_STATUS_UNKNOWN; + + msg = e_gw_message_new_with_header (cnc->priv->uri, cnc->priv->session_id, "purgeRequest"); + /* Now write the elements that need to be deleted */ + soup_soap_message_start_element (msg, "items", NULL, NULL); + for (; item_ids != NULL; item_ids = g_list_next (item_ids)) + e_gw_message_write_string_parameter (msg, "item", NULL, item_ids->data); + soup_soap_message_end_element (msg); + /*End message*/ + e_gw_message_write_footer (msg); + /* Send to server */ + response = e_gw_connection_send_message (cnc, msg); + if (!response) { + g_object_unref (msg); + return E_GW_CONNECTION_STATUS_NO_RESPONSE; + } + status = e_gw_connection_parse_response_status (response); + if (status == E_GW_CONNECTION_STATUS_INVALID_CONNECTION) + reauthenticate (cnc); + /* free memory */ + g_object_unref (response); + g_object_unref (msg); + + return status; + +} + EGwConnectionStatus e_gw_connection_mark_read(EGwConnection *cnc, GList *item_ids) { --- servers/groupwise/e-gw-connection.h.ab 2007-09-11 14:56:29.000000000 +0530 +++ servers/groupwise/e-gw-connection.h 2007-09-11 16:42:30.000000000 +0530 @@ -156,6 +156,7 @@ EGwConnectionStatus e_gw_connection_rena EGwConnectionStatus e_gw_connection_share_folder (EGwConnection *cnc, gchar *id, GList *new_list, const char *sub, const char *mesg ,int flag); EGwConnectionStatus e_gw_connection_accept_shared_folder (EGwConnection *cnc, gchar *folder_name, gchar *container_id, gchar *item_id, gchar *desc); EGwConnectionStatus e_gw_connection_purge_deleted_items (EGwConnection *cnc); +EGwConnectionStatus e_gw_connection_purge_selected_items (EGwConnection *cnc, GList *item_ids); EGwConnectionStatus e_gw_connection_mark_read(EGwConnection *cnc, GList *item_ids) ; EGwConnectionStatus e_gw_connection_mark_unread(EGwConnection *cnc, GList *item_ids) ;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor