author | alwin <alwin> | 2004-02-26 22:26:20 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-26 22:26:20 (UTC) |
commit | cb7a0156d641e96dfb6fe1cea6ca3a26e54ce6b2 (patch) (side-by-side diff) | |
tree | 90b117bd6df3cc7ead72d191e618655725f84dc2 /core/launcher | |
parent | 303b5a8e72fe319e6123b01f104b7cb049599f6f (diff) | |
download | opie-cb7a0156d641e96dfb6fe1cea6ca3a26e54ce6b2.zip opie-cb7a0156d641e96dfb6fe1cea6ca3a26e54ce6b2.tar.gz opie-cb7a0156d641e96dfb6fe1cea6ca3a26e54ce6b2.tar.bz2 |
flag ms_is_starting
it will be set true until the main eventloop is reached.
Check it with ServerApp::isStarting()
-rw-r--r-- | core/launcher/serverapp.cpp | 14 | ||||
-rw-r--r-- | core/launcher/serverapp.h | 4 |
2 files changed, 17 insertions, 1 deletions
diff --git a/core/launcher/serverapp.cpp b/core/launcher/serverapp.cpp index 11381e6..f7c2341 100644 --- a/core/launcher/serverapp.cpp +++ b/core/launcher/serverapp.cpp @@ -264,2 +264,3 @@ bool ServerApplication::doRestart = FALSE; bool ServerApplication::allowRestart = TRUE; +bool ServerApplication::ms_is_starting = TRUE; @@ -286,3 +287,3 @@ ServerApplication::ServerApplication( int& argc, char **argv, Type t ) { - + ms_is_starting = true; @@ -848,2 +849,13 @@ ServerApplication *ServerApplication::me ( ) +bool ServerApplication::isStarting() +{ + return ms_is_starting; +} + +int ServerApplication::exec() +{ + ms_is_starting = true; + qDebug("Serverapp - exec"); + return QPEApplication::exec(); +} diff --git a/core/launcher/serverapp.h b/core/launcher/serverapp.h index fe3f24a..4d9f808 100644 --- a/core/launcher/serverapp.h +++ b/core/launcher/serverapp.h @@ -96,2 +96,4 @@ public: static void login(bool at_poweron); + + static bool isStarting(); @@ -101,2 +103,3 @@ public: void restart(); + int exec(); @@ -157,2 +160,3 @@ private: bool m_alarm_sound : 1; + static bool ms_is_starting; |