X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-runtime.h;h=0fce32876b8db1b25eaa3f26b8cb8f178b4f5fce;hb=07b7ad35990c57d36183fa0914b63e314ffe74ac;hp=c07baf2f0febbb8014d51434563d81234c7b3249;hpb=e374da56f67092cecb1572dd4bee2ca34e0bc04c;p=modest diff --git a/src/modest-runtime.h b/src/modest-runtime.h index c07baf2..0fce328 100644 --- a/src/modest-runtime.h +++ b/src/modest-runtime.h @@ -45,6 +45,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -182,8 +183,14 @@ TnyDevice* modest_runtime_get_device (void); **/ TnyPlatformFactory* modest_runtime_get_platform_factory (void); - - +/** + * modest_runtime_get_toolkit_factory: + * + * get the #ModestToolkitFactory singleton instance + * + * Returns: the #ModestToolkitFactory singleton. This should NOT be unref'd. + **/ +ModestToolkitFactory* modest_runtime_get_toolkit_factory (void); /** * modest_runtime_get_mail_operation_queue: @@ -251,6 +258,23 @@ ModestProtocolRegistry* modest_runtime_get_protocol_registry (void); **/ ModestPluginFactory * modest_runtime_get_plugin_factory (void); +/** + * modest_runtime_get_allow_shutdown: + * + * tell if Modest will shutdown when window list and mail op queue are empty + * + * Returns: %TRUE if modest shutdown is allowed, %FALSE otherwise + */ +gboolean modest_runtime_get_allow_shutdown (void); + +/** + * modest_runtime_get_allow_shutdown: + * @allow: a #gboolean + * + * set if Modest will shutdown when window list and mail op queue are empty + * + */ +void modest_runtime_set_allow_shutdown (gboolean allow); G_END_DECLS