evolution-data-server r9712 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- From: jjohnny svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9712 - branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi
- Date: Fri, 31 Oct 2008 03:34:25 +0000 (UTC)
Author: jjohnny
Date: Fri Oct 31 03:34:25 2008
New Revision: 9712
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9712&view=rev
Log:
camel/mapi : Added camel_operation_progres for summary fetching.
Modified:
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c
Modified: branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/camel/providers/mapi/camel-mapi-folder.c Fri Oct 31 03:34:25 2008
@@ -233,6 +233,10 @@
*slist = g_slist_prepend (*slist, item);
+ if (item_data->total > 0)
+ camel_operation_progress (NULL, (item_data->index * 100)/item_data->total);
+
+
return TRUE;
}
@@ -589,12 +593,15 @@
if (((CamelMapiFolder *)folder)->type == MAPI_FAVOURITE_FOLDER)
options |= MAPI_OPTIONS_USE_PFSTORE;
+ camel_operation_start (NULL, _("Fetching summary information for new messages in %s"), folder->name);
status = exchange_mapi_connection_fetch_items (temp_folder_id, res,
summary_prop_list, G_N_ELEMENTS (summary_prop_list),
NULL, NULL,
fetch_items_cb, fetch_data,
options);
+ camel_operation_end (NULL);
+
if (!status) {
camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_INVALID, _("Fetch items failed"));
goto end2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]