diff options
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/lloutputmonitorctrl.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llspeakingindicatormanager.cpp | 5 | ||||
| -rw-r--r-- | indra/newview/llspeakingindicatormanager.h | 11 | 
3 files changed, 13 insertions, 5 deletions
| diff --git a/indra/newview/lloutputmonitorctrl.cpp b/indra/newview/lloutputmonitorctrl.cpp index 28d24f80fd..9ab943de9c 100644 --- a/indra/newview/lloutputmonitorctrl.cpp +++ b/indra/newview/lloutputmonitorctrl.cpp @@ -303,7 +303,7 @@ void LLOutputMonitorCtrl::switchIndicator(bool switch_on)  	}  	// otherwise remember necessary state and mark itself as dirty. -	// State will be applied i next draw when parents chain became visible. +	// State will be applied in next draw when parents chain becomes visible.  	else  	{  		LL_DEBUGS("SpeakingIndicator") << "Indicator is not in visible chain, parent won't be notified: " << mSpeakerId << LL_ENDL; diff --git a/indra/newview/llspeakingindicatormanager.cpp b/indra/newview/llspeakingindicatormanager.cpp index 012e092a7f..3c660f4d6a 100644 --- a/indra/newview/llspeakingindicatormanager.cpp +++ b/indra/newview/llspeakingindicatormanager.cpp @@ -147,7 +147,7 @@ void SpeakingIndicatorManager::registerSpeakingIndicator(const LLUUID& speaker_i  {  	// do not exclude agent's indicators. They should be processed in the same way as others. See EXT-3889. -	LL_DEBUGS("SpeakingIndicator") << "Registering indicator: " << speaker_id << "|"<< speaking_indicator << LL_ENDL; +	LL_DEBUGS("SpeakingIndicator") << "Registering indicator: " << speaker_id << "|"<< speaking_indicator << ", session: " << session_id << LL_ENDL;  	ensureInstanceDoesNotExist(speaking_indicator); @@ -249,6 +249,7 @@ void SpeakingIndicatorManager::switchSpeakerIndicators(const speaker_ids_t& spea  			if (switch_current_on && indicator->getTargetSessionID().notNull())  			{  				switch_current_on = indicator->getTargetSessionID() == session_id; +				LL_DEBUGS("SpeakingIndicator") << "Session: " << session_id << ", target: " << indicator->getTargetSessionID() << ", the same? = " << switch_current_on << LL_ENDL;  			}  			indicator->switchIndicator(switch_current_on); @@ -300,7 +301,7 @@ void SpeakingIndicatorManager::ensureInstanceDoesNotExist(LLSpeakingIndicator* c  /************************************************************************/  void LLSpeakingIndicatorManager::registerSpeakingIndicator(const LLUUID& speaker_id, LLSpeakingIndicator* const speaking_indicator, -														   const LLUUID& session_id/* = LLUUID::null*/) +														   const LLUUID& session_id)  {  	SpeakingIndicatorManager::instance().registerSpeakingIndicator(speaker_id, speaking_indicator, session_id);  } 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. | 
