X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=bd3e381deaf6334510ebc533c0cfaf54d6d941a6;hb=11f30872f941f5bc7a2c7e666e7b4bc13db5fdc0;hp=8bc9bbf103aba18a6e616ece59abc4bc01a25fe1;hpb=271699adf62b6841495684d3f106108318211b62;p=modest diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index 8bc9bbf..bd3e381 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -230,6 +230,20 @@ typedef void (*CreateFolderUserCallback) (ModestMailOperation *mail_op, TnyFolder *new_folder, gpointer user_data); +/** + * SyncFolderCallback: + * + * @self: a #ModestMailOperation + * @folder: the #TnyFolder to sync + * @user_data: generic data passed to user defined function. + * + * This is the callback of the sync_folder operation. + */ +typedef void (*SyncFolderCallback) (ModestMailOperation *self, + TnyFolder *folder, + gpointer user_data); + + /* This struct represents the internal state of a mail operation in a given time */ typedef struct { @@ -679,7 +693,10 @@ void modest_mail_operation_queue_wakeup (ModestMailOperation *sel * running while we do that sync operation. */ void modest_mail_operation_sync_folder (ModestMailOperation *self, - TnyFolder *folder, gboolean expunge); + TnyFolder *folder, + gboolean expunge, + SyncFolderCallback callback, + gpointer user_data); /** * modest_mail_operation_shutdown: