X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=af53120d43e9de5567764db3ed8cb7166f8234a4;hp=d2739b9a85165d42fe1f6c0234effc459a3645c4;hb=cc36ea20ffc9bc9dbd884f511db9bae55f4d97ca;hpb=cfbd16446cd7132c689edcea005317b8018386ba diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index d2739b9..af53120 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -74,6 +74,7 @@ typedef enum _ModestMailOperationId { MODEST_MAIL_OPERATION_ID_UNKNOWN, } ModestMailOperationId; + struct _ModestMailOperation { GObject parent; /* insert public members, if any */ @@ -333,6 +334,22 @@ void modest_mail_operation_remove_msg (ModestMailOperation *self, TnyHeader *header, gboolean remove_to_trash); +/** + * modest_mail_operation_process_msg: + * @self: a #ModestMailOperation + * @header: the #TnyHeader of the message to get + * permanently + * + * Gets a message and process it using @callback function + * pased as argument. This operation is assynchronous, so the + * #ModestMailOperation should be added to + * #ModestMailOperationQueue + **/ +void modest_mail_operation_process_msg (ModestMailOperation *self, + TnyHeader *header, + TnyGetMsgCallback user_callback, + gpointer user_data); + /* Functions to control mail operations */ /** * modest_mail_operation_get_task_done: