X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=d2669ef1186194a9fb22d444b0573fbed458061d;hp=d71ab6f98040019edebaef2a58804b061d42a958;hb=118aa5e8529157fb47b0db7241c7c29b7306cb8a;hpb=fd54149b68b3777ce63ebf25346bbc485cd84ec8 diff --git a/src/modest-singletons.h b/src/modest-singletons.h index d71ab6f..d2669ef 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -34,12 +34,15 @@ #include #include +#include #include -#include #include #include -#include - +#include +#include "modest-plugin-factory.h" +#include "widgets/modest-window-mgr.h" +#include "modest-protocol-registry.h" +#include G_BEGIN_DECLS @@ -111,43 +114,57 @@ ModestConf* modest_singletons_get_conf (ModestSingletons **/ ModestAccountMgr* modest_singletons_get_account_mgr (ModestSingletons *self); +/** + * modest_singletons_get_account_mgr: + * @self: a valid #ModestSingletons instance + * + * get the #ModestEamilClipboard singleton instance + * don't use this function directly, use the modest-runtime + * functions instead. + * + * Returns: the #ModestEmailClipboard singleton + **/ +ModestEmailClipboard* modest_singletons_get_email_clipboard (ModestSingletons *self); + /** - * modest_singletons_get_account_store: + * modest_singletons_get_cache_mgr: * @self: a valid #ModestSingletons instance * - * get the #ModestTnyAccountStore singleton instance + * get the #ModestCacheMgr singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the #ModestTnyAccountStore singleton + * Returns: the #ModestCacheMgr singleton **/ -ModestTnyAccountStore* modest_singletons_get_account_store (ModestSingletons *self); +ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons *self); + /** - * modest_singletons_get_widget_factory: + * modest_singletons_get_platform_factory: * @self: a valid #ModestSingletons instance * - * get the #ModestWidgetFactory singleton instance + * get the #TnyPlatformFactory singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the #ModestWidgetFactory singleton + * Returns: the #TnyPlatformFactory singleton **/ -ModestWidgetFactory* modest_singletons_get_widget_factory (ModestSingletons *self); +TnyPlatformFactory* modest_singletons_get_platform_factory (ModestSingletons *self); + /** - * modest_singletons_get_cache_mgr: + * modest_singletons_get_device: * @self: a valid #ModestSingletons instance * - * get the #ModestCacheMgr singleton instance + * get the #TnyDevice singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the #ModestCacheMgr singleton + * Returns: the #TnyDevice singleton **/ -ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons *self); +TnyDevice* modest_singletons_get_device (ModestSingletons *self); /** @@ -162,6 +179,44 @@ ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons **/ ModestMailOperationQueue* modest_singletons_get_mail_operation_queue (ModestSingletons *self); +/** + * modest_singletons_get_window_mgr: + * @self: + * + * Gets the #ModestWindowMgr singleton instance. Don't use this + * function directly, use the modest-runtime function instead. + * + * Return value: the singleton instance of #ModestWindowMgr + **/ +ModestWindowMgr* modest_singletons_get_window_mgr (ModestSingletons *self); + +/** + * modest_singletons_get_protocol_registry: + * @self: + * + * Gets the #ModestProtocolRegistry singleton instance. Don't use this + * function directly, use the modest-runtime function instead. + * + * Return value: the singleton instance of #ModestProtocolRegistry + **/ +ModestProtocolRegistry* modest_singletons_get_protocol_registry (ModestSingletons *self); + +/** + * modest_singletons_get_images_cache: + * @self: a #ModestSingletons + * + * Gets the #TnyStreamCache used to store the external images cache. + */ +TnyStreamCache* modest_singletons_get_images_cache (ModestSingletons *self); + +/** + * modest_singletons_get_plugin_factory: + * @self: a #ModestSingletons + * + * Gets the #ModestMailPluginFactory singleton. + */ +ModestPluginFactory* modest_singletons_get_plugin_factory (ModestSingletons *self); + G_END_DECLS #endif /* __MODEST_SINGLETONS_H__ */