aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloateractivespeakers.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloateractivespeakers.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloateractivespeakers.h')
-rw-r--r--linden/indra/newview/llfloateractivespeakers.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloateractivespeakers.h b/linden/indra/newview/llfloateractivespeakers.h
index 1088be3..55acbd7 100644
--- a/linden/indra/newview/llfloateractivespeakers.h
+++ b/linden/indra/newview/llfloateractivespeakers.h
@@ -47,8 +47,9 @@ class LLVoiceChannel;
47 47
48 48
49// data for a given participant in a voice channel 49// data for a given participant in a voice channel
50struct LLSpeaker : public LLRefCount, public LLObservable 50class LLSpeaker : public LLRefCount, public LLObservable, public LLHandleProvider<LLSpeaker>
51{ 51{
52public:
52 typedef enum e_speaker_type 53 typedef enum e_speaker_type
53 { 54 {
54 SPEAKER_AGENT, 55 SPEAKER_AGENT,
@@ -67,8 +68,7 @@ struct LLSpeaker : public LLRefCount, public LLObservable
67 68
68 69
69 LLSpeaker(const LLUUID& id, const LLString& name = LLString::null, const ESpeakerType type = SPEAKER_AGENT); 70 LLSpeaker(const LLUUID& id, const LLString& name = LLString::null, const ESpeakerType type = SPEAKER_AGENT);
70 ~LLSpeaker(); 71 ~LLSpeaker() {};
71
72 void lookupName(); 72 void lookupName();
73 73
74 static void onAvatarNameLookup(const LLUUID& id, const char* first, const char* last, BOOL is_group, void* user_data); 74 static void onAvatarNameLookup(const LLUUID& id, const char* first, const char* last, BOOL is_group, void* user_data);
@@ -83,14 +83,10 @@ struct LLSpeaker : public LLRefCount, public LLObservable
83 LLUUID mID; 83 LLUUID mID;
84 BOOL mTyping; 84 BOOL mTyping;
85 S32 mSortIndex; 85 S32 mSortIndex;
86 LLViewHandle mHandle;
87 ESpeakerType mType; 86 ESpeakerType mType;
88 BOOL mIsModerator; 87 BOOL mIsModerator;
89 BOOL mModeratorMutedVoice; 88 BOOL mModeratorMutedVoice;
90 BOOL mModeratorMutedText; 89 BOOL mModeratorMutedText;
91
92 typedef std::map<LLViewHandle, LLSpeaker*> speaker_map_t;
93 static speaker_map_t sSpeakers;
94}; 90};
95 91
96class LLSpeakerTextModerationEvent : public LLEvent 92class LLSpeakerTextModerationEvent : public LLEvent
@@ -179,13 +175,13 @@ protected:
179 175
180 176
181class LLFloaterActiveSpeakers : 177class LLFloaterActiveSpeakers :
182 public LLUISingleton<LLFloaterActiveSpeakers>, 178 public LLFloaterSingleton<LLFloaterActiveSpeakers>,
183 public LLFloater, 179 public LLFloater,
184 public LLVoiceClientParticipantObserver 180 public LLVoiceClientParticipantObserver
185{ 181{
186 // friend of singleton class to allow construction inside getInstance() since constructor is protected 182 // friend of singleton class to allow construction inside getInstance() since constructor is protected
187 // to enforce singleton constraint 183 // to enforce singleton constraint
188 friend class LLUISingleton<LLFloaterActiveSpeakers>; 184 friend class LLUISingleton<LLFloaterActiveSpeakers, VisibilityPolicy<LLFloater> >;
189public: 185public:
190 virtual ~LLFloaterActiveSpeakers(); 186 virtual ~LLFloaterActiveSpeakers();
191 187