aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcrashlogger/llcrashlogger.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:27 -0500
committerJacek Antonelli2008-08-15 23:45:27 -0500
commita8a62201ba762e98dff92cf49033e577fc34d8d4 (patch)
tree11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/llcrashlogger/llcrashlogger.h
parentSecond Life viewer sources 1.18.6.4-RC (diff)
downloadmeta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2
meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/llcrashlogger/llcrashlogger.h')
-rwxr-xr-xlinden/indra/llcrashlogger/llcrashlogger.h124
1 files changed, 62 insertions, 62 deletions
diff --git a/linden/indra/llcrashlogger/llcrashlogger.h b/linden/indra/llcrashlogger/llcrashlogger.h
index 73d6884..d5618b7 100755
--- a/linden/indra/llcrashlogger/llcrashlogger.h
+++ b/linden/indra/llcrashlogger/llcrashlogger.h
@@ -1,7 +1,7 @@
1/** 1/**
2* @file llcrashlogger.h 2* @file llcrashlogger.h
3* @brief Crash Logger Definition 3* @brief Crash Logger Definition
4* 4*
5* $LicenseInfo:firstyear=2003&license=viewergpl$ 5* $LicenseInfo:firstyear=2003&license=viewergpl$
6* 6*
7* Copyright (c) 2003-2008, Linden Research, Inc. 7* Copyright (c) 2003-2008, Linden Research, Inc.
@@ -12,12 +12,12 @@
12* ("GPL"), unless you have obtained a separate licensing agreement 12* ("GPL"), unless you have obtained a separate licensing agreement
13* ("Other License"), formally executed by you and Linden Lab. Terms of 13* ("Other License"), formally executed by you and Linden Lab. Terms of
14* the GPL can be found in doc/GPL-license.txt in this distribution, or 14* the GPL can be found in doc/GPL-license.txt in this distribution, or
15* online at http://secondlife.com/developers/opensource/gplv2 15* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
16* 16*
17* There are special exceptions to the terms and conditions of the GPL as 17* There are special exceptions to the terms and conditions of the GPL as
18* it is applied to this Source Code. View the full text of the exception 18* it is applied to this Source Code. View the full text of the exception
19* in the file doc/FLOSS-exception.txt in this software distribution, or 19* in the file doc/FLOSS-exception.txt in this software distribution, or
20* online at http://secondlife.com/developers/opensource/flossexception 20* online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
21* 21*
22* By copying, modifying or distributing this software, you acknowledge 22* By copying, modifying or distributing this software, you acknowledge
23* that you have read and understood your obligations described above, 23* that you have read and understood your obligations described above,
@@ -27,59 +27,59 @@
27* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
28* COMPLETENESS OR PERFORMANCE. 28* COMPLETENESS OR PERFORMANCE.
29* $/LicenseInfo$ 29* $/LicenseInfo$
30*/ 30*/
31#ifndef LLCRASHLOGGER_H 31#ifndef LLCRASHLOGGER_H
32#define LLCRASHLOGGER_H 32#define LLCRASHLOGGER_H
33 33
34#include <vector> 34#include <vector>
35 35
36#include "linden_common.h" 36#include "linden_common.h"
37 37
38#include "llapp.h" 38#include "llapp.h"
39#include "llsd.h" 39#include "llsd.h"
40#include "llcontrol.h" 40#include "llcontrol.h"
41 41
42class LLCrashLogger : public LLApp 42class LLCrashLogger : public LLApp
43{ 43{
44public: 44public:
45 LLCrashLogger(); 45 LLCrashLogger();
46 virtual ~LLCrashLogger(); 46 virtual ~LLCrashLogger();
47 S32 loadCrashBehaviorSetting(); 47 S32 loadCrashBehaviorSetting();
48 void gatherFiles(); 48 void gatherFiles();
49 virtual void gatherPlatformSpecificFiles() {} 49 virtual void gatherPlatformSpecificFiles() {}
50 bool saveCrashBehaviorSetting(S32 crash_behavior); 50 bool saveCrashBehaviorSetting(S32 crash_behavior);
51 bool sendCrashLogs(); 51 bool sendCrashLogs();
52 LLSD constructPostData(); 52 LLSD constructPostData();
53 virtual void updateApplication(LLString message = ""); 53 virtual void updateApplication(LLString message = "");
54 virtual bool init(); 54 virtual bool init();
55 virtual bool mainLoop() = 0; 55 virtual bool mainLoop() = 0;
56 virtual bool cleanup() { return true; } 56 virtual bool cleanup() { return true; }
57 void setUserText(LLString& text) { mCrashInfo["UserNotes"] = text; } 57 void setUserText(LLString& text) { mCrashInfo["UserNotes"] = text; }
58 S32 getCrashBehavior() { return mCrashBehavior; } 58 S32 getCrashBehavior() { return mCrashBehavior; }
59protected: 59protected:
60 S32 mCrashBehavior; 60 S32 mCrashBehavior;
61 BOOL mCrashInPreviousExec; 61 BOOL mCrashInPreviousExec;
62 std::map<LLString, LLString> mFileMap; 62 std::map<LLString, LLString> mFileMap;
63 static const int mMaxSendSize = 200000; 63 static const int mMaxSendSize = 200000;
64 LLString mGridName; 64 LLString mGridName;
65 LLControlGroup mCrashSettings; 65 LLControlGroup mCrashSettings;
66 LLString mProductName; 66 LLString mProductName;
67 LLSD mCrashInfo; 67 LLSD mCrashInfo;
68 LLString mCrashHost; 68 LLString mCrashHost;
69 LLString mAltCrashHost; 69 LLString mAltCrashHost;
70 LLSD mDebugLog; 70 LLSD mDebugLog;
71 bool mSentCrashLogs; 71 bool mSentCrashLogs;
72}; 72};
73 73
74class LLCrashLoggerText : public LLCrashLogger 74class LLCrashLoggerText : public LLCrashLogger
75{ 75{
76public: 76public:
77 LLCrashLoggerText(void) {} 77 LLCrashLoggerText(void) {}
78 ~LLCrashLoggerText(void) {} 78 ~LLCrashLoggerText(void) {}
79 79
80 virtual bool mainLoop(); 80 virtual bool mainLoop();
81 virtual void updateApplication(LLString message = ""); 81 virtual void updateApplication(LLString message = "");
82}; 82};
83 83
84 84
85#endif //LLCRASHLOGGER_H 85#endif //LLCRASHLOGGER_H