llstartup.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLSTARTUP_H
00033 #define LL_LLSTARTUP_H
00034 
00035 #include "llimagegl.h"
00036 
00037 // functions
00038 BOOL idle_startup();
00039 void cleanup_app();
00040 LLString load_password_from_disk();
00041 void release_start_screen();
00042 
00043 // constants, variables,  & enumerations
00044 extern const char* SCREEN_HOME_FILENAME;
00045 extern const char* SCREEN_LAST_FILENAME;
00046 
00047 enum EStartupState{
00048         STATE_FIRST,                                    // Initial startup
00049         STATE_LOGIN_SHOW,                               // Show login screen
00050         STATE_LOGIN_WAIT,                               // Wait for user input at login screen
00051         STATE_LOGIN_CLEANUP,                    // Get rid of login screen and start login
00052         STATE_WEB_UPDATE_START,                 // Check for updates via HTTP (addition by Dale Glass)
00053         STATE_UPDATE_CHECK,                             // Wait for user at a dialog box (updates, term-of-service, etc)
00054         STATE_LOGIN_AUTH_INIT,                  // Start login to SL servers
00055         STATE_LOGIN_AUTHENTICATE,               // Do authentication voodoo
00056         STATE_LOGIN_NO_DATA_YET,                // Waiting for authentication replies to start
00057         STATE_LOGIN_DOWNLOADING,                // Waiting for authentication replies to download
00058         STATE_LOGIN_PROCESS_RESPONSE,   // Check authentication reply
00059         STATE_WORLD_INIT,                               // Start building the world
00060         STATE_SEED_GRANTED_WAIT,                // Wait for seed cap grant
00061         STATE_SEED_CAP_GRANTED,                 // Have seed cap grant 
00062         STATE_QUICKTIME_INIT,                   // Initialzie QT
00063         STATE_WORLD_WAIT,                               // Waiting for simulator
00064         STATE_AGENT_SEND,                               // Connect to a region
00065         STATE_AGENT_WAIT,                               // Wait for region
00066         STATE_INVENTORY_SEND,                   // Do inventory transfer
00067         STATE_MISC,                                             // Do more things (set bandwidth, start audio, save location, etc)
00068         STATE_PRECACHE,                                 // Wait a bit for textures to download
00069         STATE_WEARABLES_WAIT,                   // Wait for clothing to download
00070         STATE_CLEANUP,                                  // Final cleanup
00071         STATE_STARTED                                   // Up and running in-world
00072 };
00073 
00074 // exported symbols
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                 // returns true if we are far enough along in startup to allow
00085                 // going full screen
00086 
00087         // Always use this to set gStartupState so changes are logged
00088         static void     setStartupState( S32 state );
00089         static S32      getStartupState()                               { return gStartupState;         };
00090 
00091         static bool dispatchURL();
00092                 // if we have a SLURL or sim string ("Ahern/123/45") that started
00093                 // the viewer, dispatch it
00094 
00095         static std::string sSLURLCommand;
00096                 // *HACK: On startup, if we were passed a secondlife://app/do/foo
00097                 // command URL, store it for later processing.
00098 
00099 protected:
00100         static S32 gStartupState;                       // Do not set directly, use LLStartup::setStartupState
00101 };
00102 
00103 #endif // LL_LLSTARTUP_H

Generated on Thu Jul 1 06:09:13 2010 for Second Life Viewer by  doxygen 1.4.7