X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-send-queue.h;h=51e1fef5d4877bae5a9f8207c08c1ddcdee1ff65;hp=826b778a697955d0e8c7701ebe272abc52423e33;hb=5a383a31b2862f9ecface4a3a6fc3235754acb8f;hpb=8c91efe73c60f49290ad30dc3fb039782b98e904 diff --git a/src/modest-tny-send-queue.h b/src/modest-tny-send-queue.h index 826b778..51e1fef 100644 --- a/src/modest-tny-send-queue.h +++ b/src/modest-tny-send-queue.h @@ -145,6 +145,8 @@ modest_tny_all_send_queues_get_msg_status (TnyHeader *header); */ gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self); +typedef void (*ModestTnySendQueueWakeupFunc) (ModestTnySendQueue *self, gboolean cancelled, GError *err, gpointer userdata); + /** * modest_tny_send_queue_wakeup: * @self: a valid #ModestTnySendQueue instance @@ -153,7 +155,31 @@ gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self); * the send queue will try to send them again. Note that you'd * probably need a tny_send_queue_flush to force it */ -void modest_tny_send_queue_wakeup (ModestTnySendQueue *self); +void modest_tny_send_queue_wakeup (ModestTnySendQueue *self, + ModestTnySendQueueWakeupFunc callback, + gpointer userdata); + +/** + * modest_tny_send_queue_get_requested_send_receive: + * @self: a #ModestTnySendQueue + * + * gets if the last request to send queue was an interactive send + * receive or not. + * + * Returns: %TRUE if last request was an interactive send receive, + * %FALSE otherwise. + */ +gboolean modest_tny_send_queue_get_requested_send_receive (ModestTnySendQueue *self); + +/** + * modest_tny_send_queue_set_requested_send_receive: + * @self: a #ModestTnySendQueue + * @requested_send_receive: mode. + * + * this should be called on each call to process the queue, to distinguish if the + * action was an interactive send receive. + */ +void modest_tny_send_queue_set_requested_send_receive (ModestTnySendQueue *self, gboolean requested_send_receive); G_END_DECLS