X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=41ef7ab4474eb2b43da6c7a202231f8fd8747394;hp=a3fac9c0851225ae9b89964a822ba0e14c509da2;hb=6dff75fc6a5d9515c03abb45d2f000b9eeacfbd4;hpb=e0521cac248602856888d8dffd4e34857737e57a diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index a3fac9c..41ef7ab 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -33,6 +33,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -74,6 +75,7 @@ typedef enum { MODEST_MAIL_OPERATION_TYPE_OPEN, MODEST_MAIL_OPERATION_TYPE_DELETE, MODEST_MAIL_OPERATION_TYPE_INFO, + MODEST_MAIL_OPERATION_TYPE_RUN_QUEUE, MODEST_MAIL_OPERATION_TYPE_UNKNOWN, } ModestMailOperationTypeOperation; @@ -631,6 +633,19 @@ void modest_mail_operation_get_msgs_full (ModestMailOperation *self, gpointer user_data, GDestroyNotify notify); +/** + * modest_mail_operation_run_queue: + * @self: a #ModestMailOperation + * @queue: a #ModestTnySendQueue + * + * This mail operation is special. It should be running every time the send queue + * is running (after queue-start), and we should notify end of the operation + * after queue-end. Then, we should only set this queue on queue-start signal, and + * it will clean up the operation (notify end) on queue-end. + */ +void modest_mail_operation_run_queue (ModestMailOperation *self, + ModestTnySendQueue *queue); + /* Functions to control mail operations */ /** * modest_mail_operation_get_task_done: