History

Checkpoint

Zach Fox committed 9 years ago

Commit c9dc9191 parent ee3c8e611 files · +132 −4Browse files

Showing the changes to libraries/script-engine/src/UsersScriptingInterface.cpp (1 of 11 files). Show all

Unified · Split

libraries/script-engine/src/UsersScriptingInterface.cpp+6−0
@@ -18,6 +18,7 @@ UsersScriptingInterface::UsersScriptingInterface() { · 17 unmodified lines
18 auto nodeList = DependencyManager::get<NodeList>();18 auto nodeList = DependencyManager::get<NodeList>();
19 connect(nodeList.data(), &LimitedNodeList::canKickChanged, this, &UsersScriptingInterface::canKickChanged);19 connect(nodeList.data(), &LimitedNodeList::canKickChanged, this, &UsersScriptingInterface::canKickChanged);
20 connect(nodeList.data(), &NodeList::ignoreRadiusEnabledChanged, this, &UsersScriptingInterface::ignoreRadiusEnabledChanged);20 connect(nodeList.data(), &NodeList::ignoreRadiusEnabledChanged, this, &UsersScriptingInterface::ignoreRadiusEnabledChanged);
21 connect(nodeList.data(), &NodeList::usernameFromID, this, &UsersScriptingInterface::usernameFromID);
21}22}
22 23
23void UsersScriptingInterface::ignore(const QUuid& nodeID) {24void UsersScriptingInterface::ignore(const QUuid& nodeID) {
@@ -35,6 +36,11 @@ void UsersScriptingInterface::mute(const QUuid& nodeID) { · 11 unmodified lines
35 DependencyManager::get<NodeList>()->muteNodeBySessionID(nodeID);36 DependencyManager::get<NodeList>()->muteNodeBySessionID(nodeID);
36}37}
37 38
39void UsersScriptingInterface::requestUsernameFromID(const QUuid& nodeID) {
40 // ask the Domain Server via the NodeList for the username associated with the given session ID
41 DependencyManager::get<NodeList>()->requestUsernameFromSessionID(nodeID);
42}
43
38bool UsersScriptingInterface::getCanKick() {44bool UsersScriptingInterface::getCanKick() {
39 // ask the NodeList to return our ability to kick45 // ask the NodeList to return our ability to kick
40 return DependencyManager::get<NodeList>()->getThisNodeCanKick();46 return DependencyManager::get<NodeList>()->getThisNodeCanKick();