def __init__(self, conn): self.__text_channel_id = 0 self.__list_channel_id = 0 ChannelManager.__init__(self, conn) # ChannelManager magic for handling channels self.implement_channel_classes(telepathy.CHANNEL_TYPE_TEXT, self._get_text_channel ) self.implement_channel_classes(telepathy.CHANNEL_TYPE_CONTACT_LIST, self._get_list_channel )
def __init__(self, conn): self.__text_channel_id = 0 self.__list_channel_id = 0 ChannelManager.__init__(self, conn) # ChannelManager magic for handling channels self.implement_channel_classes(telepathy.CHANNEL_TYPE_TEXT, self._get_text_channel) self.implement_channel_classes(telepathy.CHANNEL_TYPE_CONTACT_LIST, self._get_list_channel)
def __init__(self, conn): self.__text_channel_id = 0 ChannelManager.__init__(self, conn) # ChannelManager magic for handling channels self.implement_channel_classes( CHANNEL_TYPE_TEXT, self._get_text_channel, [ # accepting text channels to/from a contact allows empathy to # offer 'new conversation' ({CHANNEL_INTERFACE + '.ChannelType': CHANNEL_TYPE_TEXT, CHANNEL_INTERFACE + '.TargetHandleType': dbus.UInt32(HANDLE_TYPE_CONTACT)}, [CHANNEL_INTERFACE + '.TargetHandle', CHANNEL_INTERFACE + '.TargetID']) ])
def __init__(self, connection, protocol): ChannelManager.__init__(self, connection) self.set_requestable_channel_classes(protocol.requestable_channels) self.implement_channel_classes(CHANNEL_TYPE_TEXT, self._get_text_channel)