summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2009-08-24 17:07:10 -0400
committerNat Goodspeed <nat@lindenlab.com>2009-08-24 17:07:10 -0400
commit70600ea66adc816e72e91e804deebde40ed6b1bc (patch)
treeb385bd7dfde964c66cb47bb8300fb525a2b8ee60
parent116628bb79e8f07c84368fffca550040260c9f67 (diff)
Make setStartupState() fling events on "StartupState" LLEventPump
-rw-r--r--indra/newview/llstartup.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index a2e879d24d..4afb0b06c8 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -186,6 +186,7 @@
#include "llinventorybridge.h"
#include "lllogin.h"
+#include "llevents.h"
#if LL_LIBXUL_ENABLED
#include "llmozlib.h"
@@ -234,6 +235,7 @@ static std::string gFirstSimSeedCap;
static LLVector3 gAgentStartLookAt(1.0f, 0.f, 0.f);
static std::string gAgentStartLocation = "safe";
+static LLEventStream sStartupStateWatcher("StartupState");
//
// local function declaration
@@ -2637,14 +2639,17 @@ std::string LLStartUp::startupStateToString(EStartupState state)
#undef RTNENUM
}
-
// static
void LLStartUp::setStartupState( EStartupState state )
{
LL_INFOS("AppInit") << "Startup state changing from " <<
- startupStateToString(gStartupState) << " to " <<
+ getStartupStateString() << " to " <<
startupStateToString(state) << LL_ENDL;
gStartupState = state;
+ LLSD stateInfo;
+ stateInfo["str"] = getStartupStateString();
+ stateInfo["enum"] = state;
+ sStartupStateWatcher.post(stateInfo);
}