X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-runtime.h;h=abd4cbf07097fcc89a462d7af433fdd784c8a68f;hb=369c28b6d5a6f27d68e1c48558dd944dc04644aa;hp=98b92e03fae820a068d9cd7afef001cee717a408;hpb=0fb332b6dc8b4e67b7f13ab60563a4205b2be743;p=modest diff --git a/src/modest-runtime.h b/src/modest-runtime.h index 98b92e0..abd4cbf 100644 --- a/src/modest-runtime.h +++ b/src/modest-runtime.h @@ -42,6 +42,7 @@ #include #include #include "widgets/modest-window-mgr.h" +#include G_BEGIN_DECLS @@ -122,6 +123,15 @@ ModestConf* modest_runtime_get_conf (void); ModestAccountMgr* modest_runtime_get_account_mgr (void); /** + * modest_runtime_get_images_cache: + * + * get the images #TnyStreamCache singleton instance + * + * Returns: the images #TnyStreamCache singleton. This should NOT be unref'd. + **/ +TnyStreamCache* modest_runtime_get_images_cache (void); + +/** * modest_runtime_get_email_clipboard: * * get the #ModestEmailClipboard singleton instance @@ -186,13 +196,23 @@ ModestMailOperationQueue* modest_runtime_get_mail_operation_queue (void); /** * modest_runtime_get_send_queue: * @account: a valid TnyTransportAccount + * @create: whether or not a new send queue should be created if it does not exist * * get the send queue for the given account * * Returns: the #ModestTnySendQueue singleton instance for this account * (ie., one singleton per account). This should NOT be unref'd. **/ -ModestTnySendQueue* modest_runtime_get_send_queue (TnyTransportAccount *account); +ModestTnySendQueue* modest_runtime_get_send_queue (TnyTransportAccount *account, + gboolean create); + +/** + * modest_runtime_remove_send_queue: + * @account: a #TnyTransportAccount + * + * Removes the send queue associated with the given transport account + **/ +void modest_runtime_remove_send_queue (TnyTransportAccount *account); /** * modest_runtime_remove_all_send_queues: