X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation-queue.h;h=417130616d08d8c970257a9b39688237b8a6d775;hp=0a1e08f7c4da73b5b509f071119708428b48fd02;hb=7df38f78cb5481006cbd14cb24cc5abb8f0226f9;hpb=6c444592d419f655429195f1e8cf87c3d3adad63 diff --git a/src/modest-mail-operation-queue.h b/src/modest-mail-operation-queue.h index 0a1e08f..4171306 100644 --- a/src/modest-mail-operation-queue.h +++ b/src/modest-mail-operation-queue.h @@ -142,6 +142,28 @@ GSList* modest_mail_operation_queue_get_by_source (ModestMailOperationQueue *op_ **/ gchar* modest_mail_operation_queue_to_string (ModestMailOperationQueue *self); +/** + * modest_mail_operation_queue_set_running_shutdown: + * @self: a #ModestMailOperationQueue + * + * Mark the queue as running the final sync. + * + */ +void +modest_mail_operation_queue_set_running_shutdown (ModestMailOperationQueue *self); + +/** + * modest_mail_operation_queue_running_shutdown: + * @self: a #ModestMailOperationQueue + * + * Is the last operation queued a shutdown operation? + * + * Returns: a #gboolean, %TRUE if the last queued operation is + * a shutdown, %FALSE otherwise + */ +gboolean +modest_mail_operation_queue_running_shutdown (ModestMailOperationQueue *self); + G_END_DECLS #endif /* __MODEST_MAIL_OPERATION_QUEUE_H__ */