X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodest-singletons.h;h=b6f0448b012677cbe6a305559ea7db3cae4d431d;hb=3266fbf87e009daf846687835198f80ae3a2d923;hp=dcffb9ffccfb5a87789b05e1ecb968ea96feeb9f;hpb=8885ff625adf8c47b51e306b1d9a9ae4c8bb8d67;p=modest diff --git a/src/modest-singletons.h b/src/modest-singletons.h index dcffb9f..b6f0448 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -38,6 +38,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -135,6 +136,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,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__ */