X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=1c40a50e1e705179787c93b00f5c1c08b912773b;hb=42815845d9fd35a8c9faa6271499744eda75ba61;hp=dcffb9ffccfb5a87789b05e1ecb968ea96feeb9f;hpb=8885ff625adf8c47b51e306b1d9a9ae4c8bb8d67;p=modest diff --git a/src/modest-singletons.h b/src/modest-singletons.h index dcffb9f..1c40a50 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -34,10 +34,13 @@ #include #include +#include #include #include #include #include +#include +#include "widgets/modest-window-mgr.h" G_BEGIN_DECLS @@ -109,6 +112,17 @@ 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: @@ -135,6 +149,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 +188,17 @@ 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 #endif /* __MODEST_SINGLETONS_H__ */