00001
00033 #ifndef LL_LLCHAT_H
00034 #define LL_LLCHAT_H
00035
00036 #include "llstring.h"
00037 #include "lluuid.h"
00038 #include "v3math.h"
00039 #include "llhost.h"
00040
00041
00042 typedef enum e_chat_source_type
00043 {
00044 CHAT_SOURCE_SYSTEM = 0,
00045 CHAT_SOURCE_AGENT = 1,
00046 CHAT_SOURCE_OBJECT = 2
00047 } EChatSourceType;
00048
00049 typedef enum e_chat_type
00050 {
00051 CHAT_TYPE_WHISPER = 0,
00052 CHAT_TYPE_NORMAL = 1,
00053 CHAT_TYPE_SHOUT = 2,
00054 CHAT_TYPE_START = 4,
00055 CHAT_TYPE_STOP = 5,
00056 CHAT_TYPE_DEBUG_MSG = 6,
00057 CHAT_TYPE_REGION = 7,
00058 CHAT_TYPE_OWNER = 8
00059 } EChatType;
00060
00061 typedef enum e_chat_audible_level
00062 {
00063 CHAT_AUDIBLE_NOT = -1,
00064 CHAT_AUDIBLE_BARELY = 0,
00065 CHAT_AUDIBLE_FULLY = 1
00066 } EChatAudible;
00067
00068
00069 class LLChat
00070 {
00071 public:
00072 LLChat(const LLString& text = LLString::null)
00073 : mText(text),
00074 mFromName(),
00075 mFromID(),
00076 mSourceType(CHAT_SOURCE_AGENT),
00077 mChatType(CHAT_TYPE_NORMAL),
00078 mAudible(CHAT_AUDIBLE_FULLY),
00079 mMuted(FALSE),
00080 mTime(0.0),
00081 mPosAgent(),
00082 mRegionID(LLUUID::null),
00083 mFromIM(false)
00084 { }
00085
00086 LLString mText;
00087 LLString mFromName;
00088 LLUUID mFromID;
00089 EChatSourceType mSourceType;
00090 EChatType mChatType;
00091 EChatAudible mAudible;
00092 BOOL mMuted;
00093 F64 mTime;
00094 LLVector3 mPosAgent;
00095 LLUUID mRegionID;
00096 bool mFromIM;
00097 LLHost mSourceHost;
00098 };
00099
00100 #endif