aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llchat.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llcommon/llchat.h
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llcommon/llchat.h')
-rw-r--r--linden/indra/llcommon/llchat.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llchat.h b/linden/indra/llcommon/llchat.h
new file mode 100644
index 0000000..aee9008
--- /dev/null
+++ b/linden/indra/llcommon/llchat.h
@@ -0,0 +1,88 @@
1/**
2 * @file llchat.h
3 * @author James Cook
4 * @brief Chat constants and data structures.
5 *
6 * Copyright (c) 2006-2007, Linden Research, Inc.
7 *
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
29#ifndef LL_LLCHAT_H
30#define LL_LLCHAT_H
31
32#include "llstring.h"
33#include "lluuid.h"
34#include "v3math.h"
35
36// enumerations used by the chat system
37typedef enum e_chat_source_type
38{
39 CHAT_SOURCE_SYSTEM = 0,
40 CHAT_SOURCE_AGENT = 1,
41 CHAT_SOURCE_OBJECT = 2
42} EChatSourceType;
43
44typedef enum e_chat_type
45{
46 CHAT_TYPE_WHISPER = 0,
47 CHAT_TYPE_NORMAL = 1,
48 CHAT_TYPE_SHOUT = 2,
49 CHAT_TYPE_START = 4,
50 CHAT_TYPE_STOP = 5,
51 CHAT_TYPE_DEBUG_MSG = 6
52} EChatType;
53
54typedef enum e_chat_audible_level
55{
56 CHAT_AUDIBLE_NOT = -1,
57 CHAT_AUDIBLE_BARELY = 0,
58 CHAT_AUDIBLE_FULLY = 1
59} EChatAudible;
60
61// A piece of chat
62class LLChat
63{
64public:
65 LLChat(const LLString& text = LLString::null)
66 : mText(text),
67 mFromName(),
68 mFromID(),
69 mSourceType(CHAT_SOURCE_AGENT),
70 mChatType(CHAT_TYPE_NORMAL),
71 mAudible(CHAT_AUDIBLE_FULLY),
72 mMuted(FALSE),
73 mTime(0.0),
74 mPosAgent()
75 { }
76
77 LLString mText; // UTF-8 line of text
78 LLString mFromName; // agent or object name
79 LLUUID mFromID; // agent id or object id
80 EChatSourceType mSourceType;
81 EChatType mChatType;
82 EChatAudible mAudible;
83 BOOL mMuted; // pass muted chat to maintain list of chatters
84 F64 mTime; // viewer only, seconds from viewer start
85 LLVector3 mPosAgent;
86};
87
88#endif