00001
00032 #ifndef LL_LLSTARTUP_H
00033 #define LL_LLSTARTUP_H
00034
00035 #include "llimagegl.h"
00036
00037
00038 BOOL idle_startup();
00039 void cleanup_app();
00040 LLString load_password_from_disk();
00041 void release_start_screen();
00042
00043
00044 extern const char* SCREEN_HOME_FILENAME;
00045 extern const char* SCREEN_LAST_FILENAME;
00046
00047 enum EStartupState{
00048 STATE_FIRST,
00049 STATE_LOGIN_SHOW,
00050 STATE_LOGIN_WAIT,
00051 STATE_LOGIN_CLEANUP,
00052 STATE_WEB_UPDATE_START,
00053 STATE_UPDATE_CHECK,
00054 STATE_LOGIN_AUTH_INIT,
00055 STATE_LOGIN_AUTHENTICATE,
00056 STATE_LOGIN_NO_DATA_YET,
00057 STATE_LOGIN_DOWNLOADING,
00058 STATE_LOGIN_PROCESS_RESPONSE,
00059 STATE_WORLD_INIT,
00060 STATE_SEED_GRANTED_WAIT,
00061 STATE_SEED_CAP_GRANTED,
00062 STATE_QUICKTIME_INIT,
00063 STATE_WORLD_WAIT,
00064 STATE_AGENT_SEND,
00065 STATE_AGENT_WAIT,
00066 STATE_INVENTORY_SEND,
00067 STATE_MISC,
00068 STATE_PRECACHE,
00069 STATE_WEARABLES_WAIT,
00070 STATE_CLEANUP,
00071 STATE_STARTED
00072 };
00073
00074
00075 extern BOOL gAgentMovementCompleted;
00076 extern bool gUseQuickTime;
00077 extern bool gQuickTimeInitialized;
00078 extern LLPointer<LLImageGL> gStartImageGL;
00079
00080 class LLStartUp
00081 {
00082 public:
00083 static bool canGoFullscreen();
00084
00085
00086
00087
00088 static void setStartupState( S32 state );
00089 static S32 getStartupState() { return gStartupState; };
00090
00091 static bool dispatchURL();
00092
00093
00094
00095 static std::string sSLURLCommand;
00096
00097
00098
00099 protected:
00100 static S32 gStartupState;
00101 };
00102
00103 #endif // LL_LLSTARTUP_H