diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llappviewer.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/linden/indra/newview/llappviewer.h b/linden/indra/newview/llappviewer.h index 3be5de7..8d8e30f 100644 --- a/linden/indra/newview/llappviewer.h +++ b/linden/indra/newview/llappviewer.h | |||
@@ -61,13 +61,15 @@ public: | |||
61 | 61 | ||
62 | // Application control | 62 | // Application control |
63 | void forceQuit(); // Puts the viewer into 'shutting down without error' mode. | 63 | void forceQuit(); // Puts the viewer into 'shutting down without error' mode. |
64 | void requestQuit(); // Request a quit. A kinder, gentler quit. | 64 | void requestLogout(bool quit_after); // Request a logout, optionally quitting after |
65 | void userQuit(); // The users asks to quit. Confirm, then requestQuit() | 65 | void userQuit(); // The users asks to quit. Confirm, then requestQuit() |
66 | static void userLogout(void *userdata); //graceful logout without quit | ||
66 | void earlyExit(const std::string& msg); // Display an error dialog and forcibly quit. | 67 | void earlyExit(const std::string& msg); // Display an error dialog and forcibly quit. |
67 | void forceExit(S32 arg); // exit() immediately (after some cleanup). | 68 | void forceExit(S32 arg); // exit() immediately (after some cleanup). |
68 | void abortQuit(); // Called to abort a quit request. | 69 | void abortQuit(); // Called to abort a quit request. |
69 | 70 | ||
70 | bool quitRequested() { return mQuitRequested; } | 71 | bool quitRequested() { return mQuitRequested; } |
72 | bool logoutRequested() { return mLogoutRequested; } | ||
71 | bool logoutRequestSent() { return mLogoutRequestSent; } | 73 | bool logoutRequestSent() { return mLogoutRequestSent; } |
72 | 74 | ||
73 | void writeDebugInfo(); | 75 | void writeDebugInfo(); |
@@ -157,11 +159,12 @@ protected: | |||
157 | 159 | ||
158 | virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. | 160 | virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. |
159 | 161 | ||
162 | |||
160 | private: | 163 | private: |
161 | 164 | ||
162 | bool initThreads(); // Initialize viewer threads, return false on failure. | 165 | bool initThreads(); // Initialize viewer threads, return false on failure. |
163 | bool initConfiguration(); // Initialize settings from the command line/config file. | 166 | bool initConfiguration(); // Initialize settings from the command line/config file. |
164 | void initGridChoice(); | 167 | //void initGridChoice(); |
165 | 168 | ||
166 | bool initCache(); // Initialize local client cache. | 169 | bool initCache(); // Initialize local client cache. |
167 | void purgeCache(); // Clear the local cache. | 170 | void purgeCache(); // Clear the local cache. |
@@ -211,6 +214,7 @@ private: | |||
211 | bool mSavedFinalSnapshot; | 214 | bool mSavedFinalSnapshot; |
212 | 215 | ||
213 | bool mQuitRequested; // User wants to quit, may have modified documents open. | 216 | bool mQuitRequested; // User wants to quit, may have modified documents open. |
217 | bool mLogoutRequested; // User wants to log out, but not quit | ||
214 | bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim. | 218 | bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim. |
215 | S32 mYieldTime; | 219 | S32 mYieldTime; |
216 | LLSD mSettingsFileList; | 220 | LLSD mSettingsFileList; |
@@ -220,15 +224,6 @@ private: | |||
220 | // for tracking viewer<->region circuit death | 224 | // for tracking viewer<->region circuit death |
221 | bool mAgentRegionLastAlive; | 225 | bool mAgentRegionLastAlive; |
222 | LLUUID mAgentRegionLastID; | 226 | LLUUID mAgentRegionLastID; |
223 | |||
224 | public: | ||
225 | //some information for updater | ||
226 | typedef struct | ||
227 | { | ||
228 | std::string mUpdateExePath; | ||
229 | std::ostringstream mParams; | ||
230 | }LLUpdaterInfo ; | ||
231 | static LLUpdaterInfo *sUpdaterInfo ; | ||
232 | }; | 227 | }; |
233 | 228 | ||
234 | // consts from viewer.h | 229 | // consts from viewer.h |
@@ -239,6 +234,9 @@ const S32 AGENT_UPDATES_PER_SECOND = 10; | |||
239 | // | 234 | // |
240 | // "// llstartup" indicates that llstartup is the only client for this global. | 235 | // "// llstartup" indicates that llstartup is the only client for this global. |
241 | 236 | ||
237 | |||
238 | extern std::string gDisabledMessage; // llstartup | ||
239 | extern BOOL gHideLinks; // used by llpanellogin, lllfloaterbuycurrency, llstartup | ||
242 | extern LLSD gDebugInfo; | 240 | extern LLSD gDebugInfo; |
243 | 241 | ||
244 | extern BOOL gAllowIdleAFK; | 242 | extern BOOL gAllowIdleAFK; |