7 _moduleLogger = logging.getLogger("channel.call")
11 telepathy.server.ChannelTypeStreamedMedia,
12 telepathy.server.ChannelInterfaceCallState,
15 def __init__(self, connection, conversation):
17 self._conversation = conversation
18 self._connRef = weakref.ref(connection)
20 telepathy.server.ChannelTypeText.__init__(self, connection, None)
21 telepathy.server.ChannelInterfaceGroup.__init__(self)
22 telepathy.server.ChannelInterfaceChatState.__init__(self)
24 self.GroupFlagsChanged(telepathy.CHANNEL_GROUP_FLAG_CAN_ADD, 0)
25 self.__add_initial_participants()
27 def ListStreams(self):
29 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
33 def RemoveStreams(self, streams):
35 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
39 def RequestStreamDirection(self, stream, streamDirection):
41 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
43 @note Since streams are short lived, not bothering to implement this
45 _moduleLogger.info("A request was made to change the stream direction")
47 def RequestStreams(self, contact, streamType):
49 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
51 @returns [(Stream ID, contact, stream type, stream state, stream direction, pending send flags)]
55 def GetCallStates(self):
57 For org.freedesktop.Telepathy.Channel.Interface.CallState
59 Get the current call states for all contacts involved in this call.
60 @returns {Contact: telepathy.constants.CHANNEL_CALL_STATE_*}