Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 9 files). Show all
Unified · Split
| @@ -21,6 +21,7 @@ UsersScriptingInterface::UsersScriptingInterface() { · 20 unmodified lines | ||
| 21 | 21 | connect(nodeList.data(), &NodeList::usernameFromIDReply, this, &UsersScriptingInterface::usernameFromIDReply); |
| 22 | 22 | connect(nodeList.data(), &NodeList::ignoredNode, this, &UsersScriptingInterface::ignoredNode); |
| 23 | 23 | connect(nodeList.data(), &NodeList::unignoredNode, this, &UsersScriptingInterface::unignoredNode); |
| 24 | + connect(nodeList.data(), &NodeList::personalMuteStatusReply, this, &UsersScriptingInterface::personalMuteStatusReply); | |
| 24 | 25 | } |
| 25 | 26 | |
| 26 | 27 | void UsersScriptingInterface::ignore(const QUuid& nodeID) { |
| @@ -33,6 +34,17 @@ void UsersScriptingInterface::unignore(const QUuid& nodeID) { · 6 unmodified lines | ||
| 33 | 34 | DependencyManager::get<NodeList>()->unignoreNodeBySessionID(nodeID); |
| 34 | 35 | } |
| 35 | 36 | |
| 37 | +void UsersScriptingInterface::personalMute(const QUuid& nodeID, bool enabled) { | |
| 38 | + // ask the NodeList to mute the user with the given session ID | |
| 39 | + // "Personal Mute" only applies one way and is not global | |
| 40 | + DependencyManager::get<NodeList>()->personalMuteNodeBySessionID(nodeID, enabled); | |
| 41 | +} | |
| 42 | + | |
| 43 | +void UsersScriptingInterface::requestPersonalMuteStatus(const QUuid& nodeID) { | |
| 44 | + // ask the Audio Mixer via the NodeList for the Personal Mute status associated with the given session ID | |
| 45 | + DependencyManager::get<NodeList>()->requestPersonalMuteStatus(nodeID); | |
| 46 | +} | |
| 47 | + | |
| 36 | 48 | |
| 37 | 49 | void UsersScriptingInterface::kick(const QUuid& nodeID) { |
| 38 | 50 | // ask the NodeList to kick the user with the given session ID |