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