|
@ -291,6 +291,21 @@ class MumbleCtlDbus_118(MumbleCtlBase): |
|
|
else: |
|
|
else: |
|
|
return -1 |
|
|
return -1 |
|
|
|
|
|
|
|
|
|
|
|
def moveUser(self, srvid, sessionid, channelid): |
|
|
|
|
|
srv = self._getDbusServerObject(srvid) |
|
|
|
|
|
(session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channel) = srv.getPlayerState(dbus.UInt32(sessionid)) |
|
|
|
|
|
srv.setPlayerState((session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channelid)) |
|
|
|
|
|
|
|
|
|
|
|
def muteUser(self, srvid, sessionid, mute): |
|
|
|
|
|
srv = self._getDbusServerObject(srvid) |
|
|
|
|
|
(session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channel) = srv.getPlayerState(dbus.UInt32(sessionid)) |
|
|
|
|
|
srv.setPlayerState((session, mute, isdeaf, suppressed, selfMute, selfDeaf, channel)) |
|
|
|
|
|
|
|
|
|
|
|
def deafenUser(self, srvid, sessionid, deaf): |
|
|
|
|
|
srv = self._getDbusServerObject(srvid) |
|
|
|
|
|
(session, ismute, isdeaf, suppressed, selfMute, selfDeaf, channel) = srv.getPlayerState(dbus.UInt32(sessionid)) |
|
|
|
|
|
srv.setPlayerState((session, ismute, deaf, suppressed, selfMute, selfDeaf, channel)) |
|
|
|
|
|
|
|
|
@staticmethod |
|
|
@staticmethod |
|
|
def convertDbusTypeToNative(data): |
|
|
def convertDbusTypeToNative(data): |
|
|
#i know dbus.* type is extends python native type. |
|
|
#i know dbus.* type is extends python native type. |
|
|