X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-singletons.h;h=d2669ef1186194a9fb22d444b0573fbed458061d;hp=cfa6ca3369272135abd72fe17e407aecee6d98f4;hb=cfd46b1d74a13b1b8066bc64dfdabf43d49d2f2d;hpb=85dbfb5b2586e248ed9cef94d0e43f8e24865caf diff --git a/src/modest-singletons.h b/src/modest-singletons.h index cfa6ca3..d2669ef 100644 --- a/src/modest-singletons.h +++ b/src/modest-singletons.h @@ -39,7 +39,9 @@ #include #include #include +#include "modest-plugin-factory.h" #include "widgets/modest-window-mgr.h" +#include "modest-protocol-registry.h" #include G_BEGIN_DECLS @@ -189,6 +191,17 @@ ModestMailOperationQueue* modest_singletons_get_mail_operation_queue (ModestSing 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 * @@ -196,6 +209,14 @@ ModestWindowMgr* modest_singletons_get_window_mgr (ModestSing */ 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 #endif /* __MODEST_SINGLETONS_H__ */