diff options
Diffstat (limited to 'linden/indra/newview/llappviewer.h')
-rw-r--r-- | linden/indra/newview/llappviewer.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/linden/indra/newview/llappviewer.h b/linden/indra/newview/llappviewer.h index 797f5dd..ada5557 100644 --- a/linden/indra/newview/llappviewer.h +++ b/linden/indra/newview/llappviewer.h | |||
@@ -62,14 +62,16 @@ public: | |||
62 | 62 | ||
63 | // Application control | 63 | // Application control |
64 | void forceQuit(); // Puts the viewer into 'shutting down without error' mode. | 64 | void forceQuit(); // Puts the viewer into 'shutting down without error' mode. |
65 | void requestQuit(); // Request a quit. A kinder, gentler quit. | 65 | void requestLogout(bool quit_after); // Request a logout, optionally quitting after |
66 | void userQuit(); // The users asks to quit. Confirm, then requestQuit() | 66 | void userQuit(); // The users asks to quit. Confirm, then requestQuit() |
67 | void earlyExit(const std::string& name, | 67 | void earlyExit(const std::string& name, |
68 | const LLSD& substitutions = LLSD()); // Display an error dialog and forcibly quit. | 68 | const LLSD& substitutions = LLSD()); // Display an error dialog and forcibly quit. |
69 | static void userLogout(void *userdata); //graceful logout without quit | ||
69 | void forceExit(S32 arg); // exit() immediately (after some cleanup). | 70 | void forceExit(S32 arg); // exit() immediately (after some cleanup). |
70 | void abortQuit(); // Called to abort a quit request. | 71 | void abortQuit(); // Called to abort a quit request. |
71 | 72 | ||
72 | bool quitRequested() { return mQuitRequested; } | 73 | bool quitRequested() { return mQuitRequested; } |
74 | bool logoutRequested() { return mLogoutRequested; } | ||
73 | bool logoutRequestSent() { return mLogoutRequestSent; } | 75 | bool logoutRequestSent() { return mLogoutRequestSent; } |
74 | 76 | ||
75 | void writeDebugInfo(); | 77 | void writeDebugInfo(); |
@@ -164,11 +166,12 @@ protected: | |||
164 | 166 | ||
165 | virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. | 167 | virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. |
166 | 168 | ||
169 | |||
167 | private: | 170 | private: |
168 | 171 | ||
169 | bool initThreads(); // Initialize viewer threads, return false on failure. | 172 | bool initThreads(); // Initialize viewer threads, return false on failure. |
170 | bool initConfiguration(); // Initialize settings from the command line/config file. | 173 | bool initConfiguration(); // Initialize settings from the command line/config file. |
171 | void initGridChoice(); | 174 | //void initGridChoice(); |
172 | 175 | ||
173 | bool initCache(); // Initialize local client cache. | 176 | bool initCache(); // Initialize local client cache. |
174 | void purgeCache(); // Clear the local cache. | 177 | void purgeCache(); // Clear the local cache. |
@@ -222,6 +225,7 @@ private: | |||
222 | bool mSavedFinalSnapshot; | 225 | bool mSavedFinalSnapshot; |
223 | 226 | ||
224 | bool mQuitRequested; // User wants to quit, may have modified documents open. | 227 | bool mQuitRequested; // User wants to quit, may have modified documents open. |
228 | bool mLogoutRequested; // User wants to log out, but not quit | ||
225 | bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim. | 229 | bool mLogoutRequestSent; // Disconnect message sent to simulator, no longer safe to send messages to the sim. |
226 | S32 mYieldTime; | 230 | S32 mYieldTime; |
227 | LLSD mSettingsLocationList; | 231 | LLSD mSettingsLocationList; |
@@ -232,14 +236,14 @@ private: | |||
232 | bool mAgentRegionLastAlive; | 236 | bool mAgentRegionLastAlive; |
233 | LLUUID mAgentRegionLastID; | 237 | LLUUID mAgentRegionLastID; |
234 | 238 | ||
235 | public: | 239 | //public: |
236 | //some information for updater | 240 | // //some information for updater |
237 | typedef struct | 241 | // typedef struct |
238 | { | 242 | // { |
239 | std::string mUpdateExePath; | 243 | // std::string mUpdateExePath; |
240 | std::ostringstream mParams; | 244 | // std::ostringstream mParams; |
241 | }LLUpdaterInfo ; | 245 | // }LLUpdaterInfo ; |
242 | static LLUpdaterInfo *sUpdaterInfo ; | 246 | // static LLUpdaterInfo *sUpdaterInfo ; |
243 | }; | 247 | }; |
244 | 248 | ||
245 | // consts from viewer.h | 249 | // consts from viewer.h |
@@ -250,6 +254,9 @@ const S32 AGENT_UPDATES_PER_SECOND = 10; | |||
250 | // | 254 | // |
251 | // "// llstartup" indicates that llstartup is the only client for this global. | 255 | // "// llstartup" indicates that llstartup is the only client for this global. |
252 | 256 | ||
257 | |||
258 | extern std::string gDisabledMessage; // llstartup | ||
259 | extern BOOL gHideLinks; // used by llpanellogin, lllfloaterbuycurrency, llstartup | ||
253 | extern LLSD gDebugInfo; | 260 | extern LLSD gDebugInfo; |
254 | 261 | ||
255 | extern BOOL gAllowIdleAFK; | 262 | extern BOOL gAllowIdleAFK; |