X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-send-queue.h;h=a82dcd2aecb712a218db5498a2f05b7c0a669234;hb=a6ae0dc956e2e6a05a842d2001ade946c2c4ea98;hp=0af775a90345becf5484dd39e59955af2d5c0e39;hpb=fd54149b68b3777ce63ebf25346bbc485cd84ec8;p=modest diff --git a/src/modest-tny-send-queue.h b/src/modest-tny-send-queue.h index 0af775a..a82dcd2 100644 --- a/src/modest-tny-send-queue.h +++ b/src/modest-tny-send-queue.h @@ -27,10 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef __MODEST_TNY_SEND_QUEUE_H__ -#define __MODEST_TNY_SEND_QUEUE_H__ - #include #include #include @@ -38,6 +34,9 @@ #include #include +#ifndef __MODEST_TNY_SEND_QUEUE_H__ +#define __MODEST_TNY_SEND_QUEUE_H__ + G_BEGIN_DECLS /* convenience macros */ @@ -80,6 +79,38 @@ GType modest_tny_send_queue_get_type (void) G_GNUC_CONST; */ ModestTnySendQueue* modest_tny_send_queue_new (TnyCamelTransportAccount *account); + + +/** + * 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 + * + * Checks if sending operation is currently in progress on @self send queue. + */ +gboolean modest_tny_send_queue_sending_in_progress (ModestTnySendQueue* self); + +/** + * modest_tny_send_queue_msg_is_being_sent: + * @self: a valid #ModestTnySendQueue instance + * @msg_id: the message id ti check. + * + * Checks if message identifies with @msg_id is currently being sent. + */ +gboolean modest_tny_send_queue_msg_is_being_sent (ModestTnySendQueue* self, const gchar *msg_id); + + G_END_DECLS #endif /* __MODEST_TNY_SEND_QUEUE_H__ */