6 _moduleLogger = logging.getLogger("channel.call")
10 telepathy.server.ChannelTypeStreamedMedia,
11 telepathy.server.ChannelInterfaceCallState,
14 def __init__(self, connection):
16 telepathy.server.ChannelTypeStreamedMedia.__init__(self, connection, h)
17 telepathy.server.ChannelInterfaceGroup.__init__(self)
18 telepathy.server.ChannelInterfaceChatState.__init__(self)
20 def ListStreams(self):
22 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
26 def RemoveStreams(self, streams):
28 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
32 def RequestStreamDirection(self, stream, streamDirection):
34 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
36 @note Since streams are short lived, not bothering to implement this
38 _moduleLogger.info("A request was made to change the stream direction")
40 def RequestStreams(self, contact, streamType):
42 For org.freedesktop.Telepathy.Channel.Type.StreamedMedia
44 @returns [(Stream ID, contact, stream type, stream state, stream direction, pending send flags)]
48 def GetCallStates(self):
50 For org.freedesktop.Telepathy.Channel.Interface.CallState
52 Get the current call states for all contacts involved in this call.
53 @returns {Contact: telepathy.constants.CHANNEL_CALL_STATE_*}