X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-runtime.c;h=cc106e750e36bfbd116f37d054d4a5826fc40636;hb=0322239e8fd08ce70d12c09b6c2328e20e665c8c;hp=890b8db74ae31c8226ce05048881829638afbaea;hpb=e374da56f67092cecb1572dd4bee2ca34e0bc04c;p=modest diff --git a/src/modest-runtime.c b/src/modest-runtime.c index 890b8db..cc106e7 100644 --- a/src/modest-runtime.c +++ b/src/modest-runtime.c @@ -57,6 +57,9 @@ static ModestTnyAccountStore *_account_store = NULL; /* Signal handlers for the send queues */ static GSList *_sig_handlers = NULL; +/* will modest shut down when window list and mail op queue are empty? */ +static gboolean _allow_shutdown = TRUE; + /* * private functions declared in modest-runtime-priv.h - * only to be called from modest-init.c @@ -198,6 +201,13 @@ modest_runtime_get_platform_factory (void) return modest_singletons_get_platform_factory (_singletons); } +ModestToolkitFactory* +modest_runtime_get_toolkit_factory (void) +{ + g_return_val_if_fail (_singletons, NULL); + return modest_singletons_get_toolkit_factory (_singletons); +} + ModestTnySendQueue* modest_runtime_get_send_queue (TnyTransportAccount *account, gboolean create) @@ -321,6 +331,14 @@ modest_runtime_get_debug_flags () return debug_flags; } +gboolean +modest_runtime_get_allow_shutdown (void) +{ + return _allow_shutdown; +} - - +void +modest_runtime_set_allow_shutdown (gboolean allow) +{ + _allow_shutdown = allow; +}