X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=2e5d1fa3acb5268d1e58ae083d17fb046a8d5c6b;hb=98ce2fb5d6f8046ec5ad84cc6b4e116b8458720e;hp=84e647aec07e0439e9d281c76291b8c57855c3f1;hpb=743e873cec314890274da455f2755ac715265e7f;p=modest diff --git a/src/modest-singletons.h b/src/modest-singletons.h index 84e647a..2e5d1fa 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -38,6 +38,8 @@ #include #include #include +#include +#include "widgets/modest-window-mgr.h" G_BEGIN_DECLS @@ -135,6 +137,33 @@ ModestTnyAccountStore* modest_singletons_get_account_store (ModestSingletons ModestCacheMgr* modest_singletons_get_cache_mgr (ModestSingletons *self); + +/** + * modest_singletons_get_platform_factory: + * @self: a valid #ModestSingletons instance + * + * get the #TnyPlatformFactory singleton instance + * don't use this function directly, use the modest-runtime + * functions instead. + * + * Returns: the #TnyPlatformFactory singleton + **/ +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_mail_operation_queue: * @self: a valid ModestSingletons instance @@ -147,7 +176,16 @@ 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); G_END_DECLS