summaryrefslogtreecommitdiff
path: root/indra/newview/llspeakingindicatormanager.h
diff options
context:
space:
mode:
authorMike Antipov <mantipov@productengine.com>2010-02-24 11:13:52 +0200
committerMike Antipov <mantipov@productengine.com>2010-02-24 11:13:52 +0200
commit2fc5956d9d65b0139549d471b48464090843fdee (patch)
treebfe717fabb89f9832f9bec635afa1f250fac299d /indra/newview/llspeakingindicatormanager.h
parent022c433d53538350d840125de2733c639261cd4d (diff)
Work on major bug EXT-5562 (Misleading Active Voice Indicators in Group Chat Window, when Speakers are in Spatial Chat Only)
-- added more log information -- session uuid can now be set only from SpeakingIndicatorManager to ensure target session is the same indicator was registered with. -- comments cleanup --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llspeakingindicatormanager.h')
-rw-r--r--indra/newview/llspeakingindicatormanager.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llspeakingindicatormanager.h b/indra/newview/llspeakingindicatormanager.h
index b75c65c064..8d7aba1d6c 100644
--- a/indra/newview/llspeakingindicatormanager.h
+++ b/indra/newview/llspeakingindicatormanager.h
@@ -35,15 +35,22 @@
#ifndef LL_LLSPEAKINGINDICATORMANAGER_H
#define LL_LLSPEAKINGINDICATORMANAGER_H
+class SpeakingIndicatorManager;
+
class LLSpeakingIndicator
{
public:
virtual ~LLSpeakingIndicator(){}
virtual void switchIndicator(bool switch_on) = 0;
+
+private:
+ friend class SpeakingIndicatorManager;
+ // Accessors for target voice session UUID.
+ // They are intended to be used only from SpeakingIndicatorManager to ensure target session is
+ // the same indicator was registered with.
void setTargetSessionID(const LLUUID& session_id) { mTargetSessionID = session_id; }
const LLUUID& getTargetSessionID() { return mTargetSessionID; }
-private:
/**
* session UUID for which indicator should be shown only.
* If it is set, registered indicator will be shown only in voice channel
@@ -68,7 +75,7 @@ namespace LLSpeakingIndicatorManager
* which has the same session id (EXT-5562).
*/
void registerSpeakingIndicator(const LLUUID& speaker_id, LLSpeakingIndicator* const speaking_indicator,
- const LLUUID& session_id = LLUUID::null);
+ const LLUUID& session_id);
/**
* Removes passed speaking indicator from observing.