diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloateractivespeakers.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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.h | 14 |
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 |
50 | struct LLSpeaker : public LLRefCount, public LLObservable | 50 | class LLSpeaker : public LLRefCount, public LLObservable, public LLHandleProvider<LLSpeaker> |
51 | { | 51 | { |
52 | public: | ||
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 | ||
96 | class LLSpeakerTextModerationEvent : public LLEvent | 92 | class LLSpeakerTextModerationEvent : public LLEvent |
@@ -179,13 +175,13 @@ protected: | |||
179 | 175 | ||
180 | 176 | ||
181 | class LLFloaterActiveSpeakers : | 177 | class 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> >; |
189 | public: | 185 | public: |
190 | virtual ~LLFloaterActiveSpeakers(); | 186 | virtual ~LLFloaterActiveSpeakers(); |
191 | 187 | ||