X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-runtime.h;h=badd6c5895ac260c17dc44bdf4da159e3beb908f;hp=c07baf2f0febbb8014d51434563d81234c7b3249;hb=c5ee8ba98ba1de8845bf548ad365ac0b0859616d;hpb=e374da56f67092cecb1572dd4bee2ca34e0bc04c diff --git a/src/modest-runtime.h b/src/modest-runtime.h index c07baf2..badd6c5 100644 --- a/src/modest-runtime.h +++ b/src/modest-runtime.h @@ -251,6 +251,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