void LLParticipantList::LLParticipantListMenu::moderateVoiceParticipant(const LLUUID& avatar_id, bool unmute) { LLIMSpeakerMgr* mgr = dynamic_cast<LLIMSpeakerMgr*>(mParent.mSpeakerMgr); if (mgr) { mgr->moderateVoiceParticipant(avatar_id, unmute); } }
void LLParticipantList::moderateVoiceParticipant(const LLSD& param) { if (!gAgent.getRegion()) return; LLIMSpeakerMgr* mgr = dynamic_cast<LLIMSpeakerMgr*>(mSpeakerMgr); if (mgr) { mgr->moderateVoiceParticipant(mAvatarList->getValue(), param); } }
// Singu Note: The following functions are actually of the LLParticipantListMenu class, but we haven't married lists with menus yet. void LLParticipantList::toggleAllowTextChat(const LLSD& userdata) { if (!gAgent.getRegion()) return; LLIMSpeakerMgr* mgr = dynamic_cast<LLIMSpeakerMgr*>(mSpeakerMgr); if (mgr) { const LLUUID speaker_id = mAvatarList->getValue(); mgr->toggleAllowTextChat(speaker_id); } }
void LLParticipantList::LLParticipantListMenu::toggleAllowTextChat(const LLSD& userdata) { LLIMSpeakerMgr* mgr = dynamic_cast<LLIMSpeakerMgr*>(mParent.mSpeakerMgr); if (mgr) { const LLUUID speaker_id = mUUIDs.front(); mgr->toggleAllowTextChat(speaker_id); } }
void LLParticipantList::LLParticipantListMenu::moderateVoiceAllParticipants(bool unmute) { LLIMSpeakerMgr* mgr = dynamic_cast<LLIMSpeakerMgr*>(mParent.mSpeakerMgr); if (mgr) { if (!unmute) { LLSD payload; payload["session_id"] = mgr->getSessionID(); LLNotificationsUtil::add("ConfirmMuteAll", LLSD(), payload, confirmMuteAllCallback); return; } mgr->moderateVoiceAllParticipants(unmute); } }