X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=abbdc9a9c38c9a084e5857ceaed54785438565b3;hp=41ef7ab4474eb2b43da6c7a202231f8fd8747394;hb=444d56e917d8781e145aeac96576811fdaa17809;hpb=dea4769f063385bdac0a25850e2b991938164eb6 diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index 41ef7ab..abbdc9a 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -76,6 +76,7 @@ typedef enum { MODEST_MAIL_OPERATION_TYPE_DELETE, MODEST_MAIL_OPERATION_TYPE_INFO, MODEST_MAIL_OPERATION_TYPE_RUN_QUEUE, + MODEST_MAIL_OPERATION_TYPE_SYNC_FOLDER, MODEST_MAIL_OPERATION_TYPE_UNKNOWN, } ModestMailOperationTypeOperation; @@ -646,6 +647,18 @@ void modest_mail_operation_get_msgs_full (ModestMailOperation *self, void modest_mail_operation_run_queue (ModestMailOperation *self, ModestTnySendQueue *queue); +/** + * modest_mail_operation_sync_folder: + * @self: a #ModestMailOperation + * @folder: a #TnyFolder + * @expunge: a #gboolean + * + * mail operation wrapper around tny_folder_sync () method, to keep modest + * running while we do that sync operation. + */ +void modest_mail_operation_sync_folder (ModestMailOperation *self, + TnyFolder *folder, gboolean expunge); + /* Functions to control mail operations */ /** * modest_mail_operation_get_task_done: