aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-05-15 20:39:17 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-05-15 20:39:17 +0800
commitbe2d7023bf9f5af1202e674e17978c75c08a6e7d (patch)
tree750e520d0dedbad45960eea63e79c8abb44007cb /mail/mail-ops.h
parentc1e8c1cf3a367d721973bd93d99be8279ab204de (diff)
downloadgsoc2013-evolution-be2d7023bf9f5af1202e674e17978c75c08a6e7d.tar.gz
gsoc2013-evolution-be2d7023bf9f5af1202e674e17978c75c08a6e7d.tar.zst
gsoc2013-evolution-be2d7023bf9f5af1202e674e17978c75c08a6e7d.zip
Implement prep_offline for an individual folder. (set_offline_do): Only
2002-05-15 Not Zed <NotZed@Ximian.com> * mail-ops.c (prep_offline_do): (prep_offline_done): (prep_offline_free): (mail_prep_offline): Implement prep_offline for an individual folder. (set_offline_do): Only call disco_store_set_status or disconnect for the store, dont do any offline prep stuff. * mail-offline-handler.c: Applied patch from Ettore to hook in extra offline interfaces. (impl_destroy): Dont free listener here anymore, its removed, but free sync table. (mail_offline_handler_init): Same for setup. (impl_syncFolder): Implement. (sync_done): handles finalising synchronisation of 1 folder. (sync_status): progress reporting, camel side. (sync_timeout): progress reporting, gmainloop side. (impl_cancelSyncFolder): Implement. (impl_goOffline, storage_go_offline, went_offline): Dont copy the listener to our struct - its an argument, not a member, so give each thread its own copy. svn path=/trunk/; revision=16799
Diffstat (limited to 'mail/mail-ops.h')
-rw-r--r--mail/mail-ops.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/mail-ops.h b/mail/mail-ops.h
index 6aa5627d61..a6631d6559 100644
--- a/mail/mail-ops.h
+++ b/mail/mail-ops.h
@@ -147,9 +147,12 @@ void mail_filter_folder (CamelFolder *source_folder, GPtrArray *uids,
void mail_filter_on_demand (CamelFolder *folder, GPtrArray *uids);
/* Work Offline */
-void mail_store_set_offline (CamelStore *store, gboolean offline,
- void (*done)(CamelStore *, void *data),
- void *data);
+void mail_prep_offline(const char *uri, CamelOperation *cancel,
+ void (*done)(const char *, void *data),
+ void *data);
+void mail_store_set_offline(CamelStore *store, gboolean offline,
+ void (*done)(CamelStore *, void *data),
+ void *data);
/* filter driver execute shell command async callback */
void mail_execute_shell_command (CamelFilterDriver *driver, const char *command, void *data);