aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llappviewer.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llappviewer.h')
-rw-r--r--linden/indra/newview/llappviewer.h29
1 files changed, 22 insertions, 7 deletions
diff --git a/linden/indra/newview/llappviewer.h b/linden/indra/newview/llappviewer.h
index 58dc835..9583982 100644
--- a/linden/indra/newview/llappviewer.h
+++ b/linden/indra/newview/llappviewer.h
@@ -4,7 +4,7 @@
4 * 4 *
5 * $LicenseInfo:firstyear=2007&license=viewergpl$ 5 * $LicenseInfo:firstyear=2007&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2007-2008, Linden Research, Inc. 7 * Copyright (c) 2007-2009, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -77,7 +77,9 @@ public:
77 // Report true if under the control of a debugger. A null-op default. 77 // Report true if under the control of a debugger. A null-op default.
78 virtual bool beingDebugged() { return false; } 78 virtual bool beingDebugged() { return false; }
79 79
80 virtual void handleCrashReporting() = 0; // What to do with crash report? 80 virtual bool restoreErrorTrap() = 0; // Require platform specific override to reset error handling mechanism.
81 // return false if the error trap needed restoration.
82 virtual void handleCrashReporting(bool reportFreeze = false) = 0; // What to do with crash report?
81 virtual void handleSyncCrashTrace() = 0; // any low-level crash-prep that has to happen in the context of the crashing thread before the crash report is delivered. 83 virtual void handleSyncCrashTrace() = 0; // any low-level crash-prep that has to happen in the context of the crashing thread before the crash report is delivered.
82 static void handleViewerCrash(); // Hey! The viewer crashed. Do this, soon. 84 static void handleViewerCrash(); // Hey! The viewer crashed. Do this, soon.
83 static void handleSyncViewerCrash(); // Hey! The viewer crashed. Do this right NOW in the context of the crashing thread. 85 static void handleSyncViewerCrash(); // Hey! The viewer crashed. Do this right NOW in the context of the crashing thread.
@@ -112,6 +114,7 @@ public:
112 virtual void forceErrorBadMemoryAccess(); 114 virtual void forceErrorBadMemoryAccess();
113 virtual void forceErrorInifiniteLoop(); 115 virtual void forceErrorInifiniteLoop();
114 virtual void forceErrorSoftwareException(); 116 virtual void forceErrorSoftwareException();
117 virtual void forceErrorDriverCrash();
115 118
116 // *NOTE: There are currently 3 settings files: 119 // *NOTE: There are currently 3 settings files:
117 // "Global", "PerAccount" and "CrashSettings" 120 // "Global", "PerAccount" and "CrashSettings"
@@ -136,16 +139,22 @@ public:
136 void resumeMainloopTimeout(const std::string& state = "", F32 secs = -1.0f); 139 void resumeMainloopTimeout(const std::string& state = "", F32 secs = -1.0f);
137 void pingMainloopTimeout(const std::string& state, F32 secs = -1.0f); 140 void pingMainloopTimeout(const std::string& state, F32 secs = -1.0f);
138 141
142 // Handle the 'login completed' event.
143 // *NOTE:Mani Fix this for login abstraction!!
144 void handleLoginComplete();
145
139protected: 146protected:
140 147
141 virtual bool initWindow(); // Initialize the viewer's window. 148 virtual bool initWindow(); // Initialize the viewer's window.
142 virtual bool initLogging(); // Initialize log files, logging system, return false on failure. 149 virtual bool initLogging(); // Initialize log files, logging system, return false on failure.
143 virtual void initConsole() {}; // Initialize OS level debugging console. 150 virtual void initConsole() {}; // Initialize OS level debugging console.
144 virtual bool initHardwareTest() { return true; } // A false result indicates the app should quit. 151 virtual bool initHardwareTest() { return true; } // A false result indicates the app should quit.
152 virtual bool initSLURLHandler();
153 virtual bool sendURLToOtherInstance(const std::string& url);
145 154
146 virtual bool initParseCommandLine(LLCommandLineParser& clp) 155 virtual bool initParseCommandLine(LLCommandLineParser& clp)
147 { return true; } // Allow platforms to specify the command line args. 156 { return true; } // Allow platforms to specify the command line args.
148 157
149 virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this. 158 virtual std::string generateSerialNumber() = 0; // Platforms specific classes generate this.
150 159
151private: 160private:
@@ -211,6 +220,15 @@ private:
211 // for tracking viewer<->region circuit death 220 // for tracking viewer<->region circuit death
212 bool mAgentRegionLastAlive; 221 bool mAgentRegionLastAlive;
213 LLUUID mAgentRegionLastID; 222 LLUUID mAgentRegionLastID;
223
224public:
225 //some information for updater
226 typedef struct
227 {
228 std::string mUpdateExePath;
229 std::ostringstream mParams;
230 }LLUpdaterInfo ;
231 static LLUpdaterInfo *sUpdaterInfo ;
214}; 232};
215 233
216// consts from viewer.h 234// consts from viewer.h
@@ -221,9 +239,6 @@ const S32 AGENT_UPDATES_PER_SECOND = 10;
221// 239//
222// "// llstartup" indicates that llstartup is the only client for this global. 240// "// llstartup" indicates that llstartup is the only client for this global.
223 241
224extern BOOL gHandleKeysAsync; // gSavedSettings used by llviewerdisplay.cpp & llviewermenu.cpp
225extern std::string gDisabledMessage; // llstartup
226extern BOOL gHideLinks; // used by llpanellogin, lllfloaterbuycurrency, llstartup
227extern LLSD gDebugInfo; 242extern LLSD gDebugInfo;
228 243
229extern BOOL gAllowIdleAFK; 244extern BOOL gAllowIdleAFK;