X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=76f95322dafd9e4924842cb97378a1b99018afb9;hp=9dcdec1c5148c1b66c1f2399fd7b1a41779cf4fd;hb=HEAD;hpb=31bb0518a45f4ca59a30a650475d3a3f9ff87610 diff --git a/src/modest-singletons.h b/src/modest-singletons.h index 9dcdec1..76f95322 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -34,11 +34,16 @@ #include #include +#include #include -#include #include #include -#include +#include +#include +#include "modest-plugin-factory.h" +#include "widgets/modest-window-mgr.h" +#include "modest-protocol-registry.h" +#include G_BEGIN_DECLS @@ -87,6 +92,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 @@ -99,6 +105,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 @@ -108,56 +115,120 @@ ModestConf* modest_singletons_get_conf (ModestSingletons **/ ModestAccountMgr* modest_singletons_get_account_mgr (ModestSingletons *self); - /** - * modest_singletons_get_account_store: + * modest_singletons_get_account_mgr: + * @self: a valid #ModestSingletons instance * - * get the ModestTnyAccountStore singleton instance + * get the #ModestEamilClipboard singleton instance * don't use this function directly, use the modest-runtime * functions instead. - * - * Returns: the ModestTnyAccountStore singleton + * + * Returns: the #ModestEmailClipboard singleton **/ -ModestTnyAccountStore* modest_singletons_get_account_store (ModestSingletons *self); +ModestEmailClipboard* modest_singletons_get_email_clipboard (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_toolkit_factory: + * @self: a valid #ModestSingletons instance + * + * get the #TnyToolkitFactory singleton instance + * don't use this function directly, use the modest-runtime + * functions instead. + * + * Returns: the #ModestToolkitFactory singleton + **/ +ModestToolkitFactory* modest_singletons_get_toolkit_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); + +/** + * modest_singletons_get_protocol_registry: + * @self: + * + * Gets the #ModestProtocolRegistry singleton instance. Don't use this + * function directly, use the modest-runtime function instead. + * + * Return value: the singleton instance of #ModestProtocolRegistry + **/ +ModestProtocolRegistry* modest_singletons_get_protocol_registry (ModestSingletons *self); + +/** + * modest_singletons_get_images_cache: + * @self: a #ModestSingletons + * + * Gets the #TnyStreamCache used to store the external images cache. + */ +TnyStreamCache* modest_singletons_get_images_cache (ModestSingletons *self); + +/** + * modest_singletons_get_plugin_factory: + * @self: a #ModestSingletons + * + * Gets the #ModestMailPluginFactory singleton. + */ +ModestPluginFactory* modest_singletons_get_plugin_factory (ModestSingletons *self); G_END_DECLS