X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=b6f0448b012677cbe6a305559ea7db3cae4d431d;hb=2ea9ef8016d9fe8789eec7d20887fd7623d093d1;hp=d71ab6f98040019edebaef2a58804b061d42a958;hpb=fd54149b68b3777ce63ebf25346bbc485cd84ec8;p=modest diff --git a/src/modest-singletons.h b/src/modest-singletons.h index d71ab6f..b6f0448 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -38,8 +38,7 @@ #include #include #include -#include - +#include G_BEGIN_DECLS @@ -124,30 +123,44 @@ ModestAccountMgr* modest_singletons_get_account_mgr (ModestSingletons **/ ModestTnyAccountStore* modest_singletons_get_account_store (ModestSingletons *self); +/** + * modest_singletons_get_cache_mgr: + * @self: a valid #ModestSingletons instance + * + * get the #ModestCacheMgr singleton instance + * don't use this function directly, use the modest-runtime + * functions instead. + * + * Returns: the #ModestCacheMgr singleton + **/ +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 +175,8 @@ ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons **/ ModestMailOperationQueue* modest_singletons_get_mail_operation_queue (ModestSingletons *self); + + G_END_DECLS #endif /* __MODEST_SINGLETONS_H__ */