diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/llmessage/lllogtextmessage.h | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-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/llmessage/lllogtextmessage.h')
-rw-r--r-- | linden/indra/llmessage/lllogtextmessage.h | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/linden/indra/llmessage/lllogtextmessage.h b/linden/indra/llmessage/lllogtextmessage.h deleted file mode 100644 index 21730c0..0000000 --- a/linden/indra/llmessage/lllogtextmessage.h +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | /** | ||
2 | * @file lllogtextmessage.h | ||
3 | * @author Phoenix | ||
4 | * @date 2005-01-11 | ||
5 | * @brief Declaration of class for coalescing text logs generated | ||
6 | * from chat and IM | ||
7 | * | ||
8 | * $LicenseInfo:firstyear=2005&license=viewergpl$ | ||
9 | * | ||
10 | * Copyright (c) 2005-2008, Linden Research, Inc. | ||
11 | * | ||
12 | * Second Life Viewer Source Code | ||
13 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
14 | * to you under the terms of the GNU General Public License, version 2.0 | ||
15 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
16 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
17 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
18 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
19 | * | ||
20 | * There are special exceptions to the terms and conditions of the GPL as | ||
21 | * it is applied to this Source Code. View the full text of the exception | ||
22 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
23 | * online at http://secondlife.com/developers/opensource/flossexception | ||
24 | * | ||
25 | * By copying, modifying or distributing this software, you acknowledge | ||
26 | * that you have read and understood your obligations described above, | ||
27 | * and agree to abide by those obligations. | ||
28 | * | ||
29 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
30 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
31 | * COMPLETENESS OR PERFORMANCE. | ||
32 | * $/LicenseInfo$ | ||
33 | */ | ||
34 | |||
35 | #ifndef LL_LLLOGTEXTMESSAGE_H | ||
36 | #define LL_LLLOGTEXTMESSAGE_H | ||
37 | |||
38 | #include <deque> | ||
39 | #include <string> | ||
40 | |||
41 | #include "lluuid.h" | ||
42 | #include "llhost.h" | ||
43 | |||
44 | /** | ||
45 | * @class LLLogTextMessage | ||
46 | * @brief This class represents a coalesced collection of text messages | ||
47 | * generated by agents and their objects. | ||
48 | * | ||
49 | * This class is intended to be used as a singleton. Since use on the | ||
50 | * simulator and userserver is somewhat different the class does not | ||
51 | * enforce a singleton or provide an extern. | ||
52 | */ | ||
53 | class LLLogTextMessage | ||
54 | { | ||
55 | public: | ||
56 | LLLogTextMessage(const LLHost& dataserver) : | ||
57 | mDataserver(dataserver), | ||
58 | mPendingSize(0) {} | ||
59 | ~LLLogTextMessage(); | ||
60 | |||
61 | void log(const LLUUID& from, const LLUUID& to, const char* mesg); | ||
62 | void log(const LLUUID& from, F64 global_x, F64 global_y, const char* mesg); | ||
63 | void log( | ||
64 | const LLUUID& from, | ||
65 | const LLUUID& to, | ||
66 | F64 global_x, | ||
67 | F64 global_y, | ||
68 | const char* mesg); | ||
69 | void flush(); | ||
70 | |||
71 | protected: | ||
72 | struct LLLogTextMessageData | ||
73 | { | ||
74 | LLLogTextMessageData( | ||
75 | const LLUUID& from, | ||
76 | const LLUUID& to, | ||
77 | const F64& global_x, | ||
78 | const F64& gloabl_y, | ||
79 | const char* message); | ||
80 | LLUUID mFromID; | ||
81 | LLUUID mToID; | ||
82 | F64 mGlobalX; | ||
83 | F64 mGlobalY; | ||
84 | std::string mMessage; | ||
85 | S32 mTime; | ||
86 | }; | ||
87 | |||
88 | // The destination of the messages | ||
89 | LLHost mDataserver; | ||
90 | |||
91 | // Keep the messages queued in order of arrival. | ||
92 | std::deque<LLLogTextMessageData> mQueue; | ||
93 | |||
94 | // Tracks the outgoing message size in bytes of the pending queued | ||
95 | // text logs. | ||
96 | S32 mPendingSize; | ||
97 | }; | ||
98 | |||
99 | #endif // LL_LLLOGTEXTMESSAGE_H | ||