X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=2e5d1fa3acb5268d1e58ae083d17fb046a8d5c6b;hb=d2766e0125d45ae66dbe70b51eb90e3b0e493982;hp=2d90a175fc056667f6d5933b7b7f925d18a48627;hpb=2d5d80b48da92cfa8e84d965feef9a690a4f8af7;p=modest diff --git a/src/modest-singletons.h b/src/modest-singletons.h index 2d90a17..2e5d1fa 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -38,8 +38,8 @@ #include #include #include -#include - +#include +#include "widgets/modest-window-mgr.h" G_BEGIN_DECLS @@ -88,6 +88,7 @@ ModestSingletons* modest_singletons_new (void); /** * modest_singletons_get_conf: + * @self: a valid ModestSingletons instance * * get the ModestConf singleton instance * don't use this function directly, use the modest-runtime @@ -100,6 +101,7 @@ ModestConf* modest_singletons_get_conf (ModestSingletons /** * modest_singletons_get_account_mgr: + * @self: a valid ModestSingletons instance * * get the ModestAccountMgr singleton instance * don't use this function directly, use the modest-runtime @@ -112,53 +114,78 @@ ModestAccountMgr* modest_singletons_get_account_mgr (ModestSingletons /** * modest_singletons_get_account_store: + * @self: a valid #ModestSingletons instance * - * get the ModestTnyAccountStore singleton instance + * get the #ModestTnyAccountStore singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the ModestTnyAccountStore singleton + * Returns: the #ModestTnyAccountStore singleton **/ ModestTnyAccountStore* modest_singletons_get_account_store (ModestSingletons *self); - /** * modest_singletons_get_cache_mgr: + * @self: a valid #ModestSingletons instance * - * get the ModestCacheMgr singleton instance + * get the #ModestCacheMgr singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the ModestCacheMgr singleton + * Returns: the #ModestCacheMgr singleton **/ ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons *self); + /** - * modest_singletons_get_mail_operation_queue: + * modest_singletons_get_platform_factory: + * @self: a valid #ModestSingletons instance * - * get the ModestMailOperationQueue singleton instance + * get the #TnyPlatformFactory singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the ModestMailOperationQueue singleton + * Returns: the #TnyPlatformFactory singleton **/ -ModestMailOperationQueue* modest_singletons_get_mail_operation_queue (ModestSingletons *self); +TnyPlatformFactory* modest_singletons_get_platform_factory (ModestSingletons *self); +/** + * modest_singletons_get_device: + * @self: a valid #ModestSingletons instance + * + * get the #TnyDevice singleton instance + * don't use this function directly, use the modest-runtime + * functions instead. + * + * Returns: the #TnyDevice singleton + **/ +TnyDevice* modest_singletons_get_device (ModestSingletons *self); /** - * modest_singletons_get_widget_factory: + * modest_singletons_get_mail_operation_queue: + * @self: a valid ModestSingletons instance * - * get the ModestWidgetFactory singleton instance + * get the ModestMailOperationQueue singleton instance * don't use this function directly, use the modest-runtime * functions instead. * - * Returns: the ModestWidgetFactory singleton + * Returns: the ModestMailOperationQueue singleton **/ -ModestWidgetFactory* modest_singletons_get_widget_factory (ModestSingletons *self); +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); G_END_DECLS