X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-runtime.h;h=c2177d8afa45e797e4e0fd50b1261fb7201d4da1;hp=53bccbd1efc5966e9b06c36c4b0a8697c27072a6;hb=e45958deaf9701399c552ea0d84c2447efacd4ca;hpb=bb2db35bafed990fa0e9212422a59a39439ffa4b diff --git a/src/modest-runtime.h b/src/modest-runtime.h index 53bccbd..c2177d8 100644 --- a/src/modest-runtime.h +++ b/src/modest-runtime.h @@ -42,6 +42,9 @@ #include #include #include "widgets/modest-window-mgr.h" +#include +#include +#include G_BEGIN_DECLS @@ -122,6 +125,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 +198,15 @@ 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: @@ -219,6 +233,24 @@ void modest_runtime_remove_all_send_queues (); **/ ModestWindowMgr* modest_runtime_get_window_mgr (void); +/** + * modest_runtime_get_protocol_registry: + * + * get the #ModestProtocolRegistry singleton instance + * + * Returns: the #ModestProtocolRegistry singleton. This should NOT be unref'd. + **/ +ModestProtocolRegistry* modest_runtime_get_protocol_registry (void); + +/** + * modest_runtime_get_plugin_factory: + * + * get the #ModestPluginFactory singleton instance + * + * Returns: the #ModestPluginFactory singleton. This should NOT be unref'd. + **/ +ModestPluginFactory * modest_runtime_get_plugin_factory (void); + G_END_DECLS