aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llimview.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/newview/llimview.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 '')
-rw-r--r--linden/indra/newview/llimview.h36
1 files changed, 26 insertions, 10 deletions
diff --git a/linden/indra/newview/llimview.h b/linden/indra/newview/llimview.h
index 80aba24..0774698 100644
--- a/linden/indra/newview/llimview.h
+++ b/linden/indra/newview/llimview.h
@@ -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,
@@ -45,6 +45,13 @@ class LLFloaterIM;
45class LLIMMgr : public LLSingleton<LLIMMgr> 45class LLIMMgr : public LLSingleton<LLIMMgr>
46{ 46{
47public: 47public:
48 enum EInvitationType
49 {
50 INVITATION_TYPE_INSTANT_MESSAGE = 0,
51 INVITATION_TYPE_VOICE = 1,
52 INVITATION_TYPE_IMMEDIATE = 2
53 };
54
48 LLIMMgr(); 55 LLIMMgr();
49 virtual ~LLIMMgr(); 56 virtual ~LLIMMgr();
50 57
@@ -96,12 +103,14 @@ public:
96 // deleted. 103 // deleted.
97 void removeSession(const LLUUID& session_id); 104 void removeSession(const LLUUID& session_id);
98 105
99 void inviteToSession(const LLUUID& session_id, 106 void inviteToSession(
100 const LLString& session_name, 107 const LLUUID& session_id,
101 const LLUUID& caller, 108 const LLString& session_name,
102 const LLString& caller_name, 109 const LLUUID& caller,
103 EInstantMessage type, 110 const LLString& caller_name,
104 const LLString& session_handle = LLString::null); 111 EInstantMessage type,
112 EInvitationType inv_type,
113 const LLString& session_handle = LLString::null);
105 114
106 //Updates a given session's session IDs. Does not open, 115 //Updates a given session's session IDs. Does not open,
107 //create or do anything new. If the old session doesn't 116 //create or do anything new. If the old session doesn't
@@ -147,7 +156,7 @@ public:
147 156
148 static LLUUID computeSessionID(EInstantMessage dialog, const LLUUID& other_participant_id); 157 static LLUUID computeSessionID(EInstantMessage dialog, const LLUUID& other_participant_id);
149 158
150 void clearPendingVoiceInviation(const LLUUID& session_id); 159 void clearPendingInviation(const LLUUID& session_id);
151 160
152 LLSD getPendingAgentListUpdates(const LLUUID& session_id); 161 LLSD getPendingAgentListUpdates(const LLUUID& session_id);
153 void addPendingAgentListUpdates( 162 void addPendingAgentListUpdates(
@@ -155,6 +164,9 @@ public:
155 const LLSD& updates); 164 const LLSD& updates);
156 void clearPendingAgentListUpdates(const LLUUID& session_id); 165 void clearPendingAgentListUpdates(const LLUUID& session_id);
157 166
167 //HACK: need a better way of enumerating existing session, or listening to session create/destroy events
168 const std::set<LLViewHandle>& getIMFloaterHandles() { return mFloaters; }
169
158private: 170private:
159 class LLIMSessionInvite; 171 class LLIMSessionInvite;
160 172
@@ -193,7 +205,7 @@ private:
193 // An IM has been received that you haven't seen yet. 205 // An IM has been received that you haven't seen yet.
194 BOOL mIMReceived; 206 BOOL mIMReceived;
195 207
196 LLSD mPendingVoiceInvitations; 208 LLSD mPendingInvitations;
197 LLSD mPendingAgentListUpdates; 209 LLSD mPendingAgentListUpdates;
198}; 210};
199 211
@@ -203,6 +215,10 @@ class LLFloaterIM : public LLMultiFloater
203public: 215public:
204 LLFloaterIM(); 216 LLFloaterIM();
205 /*virtual*/ BOOL postBuild(); 217 /*virtual*/ BOOL postBuild();
218
219 static std::map<std::string,LLString> sEventStringsMap;
220 static std::map<std::string,LLString> sErrorStringsMap;
221 static std::map<std::string,LLString> sForceCloseSessionMap;
206}; 222};
207 223
208// Globals 224// Globals