X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-send-queue.h;h=6c23f0608404c04365641d4a02fb7b91001ffbb1;hp=87eeb3979d8abfcd776d3f363f2c8574b67e7632;hb=a9c347489d676ecf1cb0a4ba30059432aeccee80;hpb=1bdf3f882e8e33b06ffe664d035679254964857d diff --git a/src/modest-tny-send-queue.h b/src/modest-tny-send-queue.h index 87eeb39..6c23f06 100644 --- a/src/modest-tny-send-queue.h +++ b/src/modest-tny-send-queue.h @@ -65,6 +65,7 @@ struct _ModestTnySendQueue { struct _ModestTnySendQueueClass { TnyCamelSendQueueClass parent_class; + /* Signals */ void (*status_changed)(ModestTnySendQueue *self, const gchar *msg_id, ModestTnySendQueueStatus status); }; @@ -102,17 +103,6 @@ ModestTnySendQueue* modest_tny_send_queue_new (TnyCamelTransportAccoun void modest_tny_send_queue_add (ModestTnySendQueue *self, TnyMsg *msg, GError **err); /** - * modest_tny_send_queue_try_to_send: - * @self: a valid #ModestTnySendQueue instance - * - * Try to send the messages that are in the queue's outbox folder. - * This is not always necessary because the queue tries to send - * messages as soon as a message is added, and as soon as the queue - * is instantiated. - */ -void modest_tny_send_queue_try_to_send (ModestTnySendQueue* self); - -/** * modest_tny_send_queue_sending_in_progress: * @self: a valid #ModestTnySendQueue instance * @@ -166,6 +156,16 @@ modest_tny_all_send_queues_get_msg_status (TnyHeader *header); */ gchar* modest_tny_send_queue_to_string (ModestTnySendQueue *self); +/** + * modest_tny_send_queue_wakeup: + * @self: a valid #ModestTnySendQueue instance + * + * Wakes up all suspended messages in the send queue. This means that + * 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); + G_END_DECLS