Set a timeout for prestarted mode (no shutdown before timeout finishes)
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 25 May 2009 08:58:39 +0000 (10:58 +0200)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 25 May 2009 11:07:10 +0000 (13:07 +0200)
commit2b782aed463d9cd3b59f3d511abff67f66b2d067
treebff5bf89dd04f5b91db612df40518285bb1edbaa
parent4927d2ba3643bba250d1c0e12a8c732db905fad3
Set a timeout for prestarted mode (no shutdown before timeout finishes)

* src/modest-runtime.[ch]: added methods to access a boolean "allow_shutdown".
  Modest shutdown that happens on having empty window list and mail op queue
  will not happen if this is False.
* src/modest-main.c: only shutdown modest if allow_shutdown is false. Also
  set a timeout of 30 minutes (and allow CLI parameters to change this value).
src/modest-main.c
src/modest-runtime.c
src/modest-runtime.h