7 _moduleLogger = logging.getLogger("channel.call")
11 telepathy.server.ChannelTypeStreamedMedia,
12 telepathy.server.ChannelInterfaceCallState,
15 def __init__(self, connection):
17 self._connRef = weakref.ref(connection)
19 telepathy.server.ChannelTypeText.__init__(self, connection, None)
20 telepathy.server.ChannelInterfaceGroup.__init__(self)
21 telepathy.server.ChannelInterfaceChatState.__init__(self)
23 self.GroupFlagsChanged(telepathy.CHANNEL_GROUP_FLAG_CAN_ADD, 0)
24 self.__add_initial_participants()
26 def ListStreams(self):
28 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
32 def RemoveStreams(self, streams):
34 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
38 def RequestStreamDirection(self, stream, streamDirection):
40 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
42 @note Since streams are short lived, not bothering to implement this
44 _moduleLogger.info("A request was made to change the stream direction")
46 def RequestStreams(self, contact, streamType):
48 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
50 @returns [(Stream ID, contact, stream type, stream state, stream direction, pending send flags)]
54 def GetCallStates(self):
56 For org.freedesktop.Telepathy.Channel.Interface.CallState
58 Get the current call states for all contacts involved in this call.
59 @returns {Contact: telepathy.constants.CHANNEL_CALL_STATE_*}