def __init__(self, conn, manager, props, object_path=None): _, surpress_handler, handle = manager._get_type_requested_handle(props) self.handle = handle self.__message_received_id = 0 ChannelTypeText.__init__(self, conn, manager, props, object_path) ChannelInterfaceMessages.__init__(self)
def __init__(self, conn, manager, props, object_path=None): _, surpress_handler, handle = manager._get_type_requested_handle(props) self.handle = handle self.__message_received_id = 0 ChannelTypeText.__init__(self, conn, manager, props, object_path) ChannelInterfaceMessages.__init__(self) self._skype_conversation = self._conn._skype.GetConversationByIdentity(handle.get_name())
def ListPendingMessages(self, clear): ret = ChannelTypeText.ListPendingMessages(self, clear) if clear: ids = self._pending_IM_messages.keys() self._pending_IM_messages = {} self.PendingMessagesRemoved(ids) return ret
def AcknowledgePendingMessages(self, ids): for id in ids: if id in self._pending_IM_messages: del self._pending_IM_messages[id] ChannelTypeText.AcknowledgePendingMessages(self, ids) self._conn.markAsRead(ids,self._handle.name) self.PendingMessagesRemoved(ids)
def __init__(self, connection, manager, props, object_path=None): logger.debug('__init__') ChannelTypeText.__init__(self, connection, manager, props, object_path) EriChannel.__init__(self,connection,props) ChannelInterfaceChatState.__init__(self) ChannelInterfaceMessages.__init__(self) # telepathy.CONNECTION_INTERFACE_CONTACTS, # {'ContactAttributeInterfaces' : # lambda: dbus.Array([telepathy.CONNECTION], signature='s')} logger.debug('init2') self._send_typing_notification_timeout = 0 logger.debug('init3') self.states = {} self._implement_property_get(telepathy.CHANNEL_INTERFACE_CHAT_STATE,{ 'ChatStates' : loggit(logger,'ChatStates')(lambda: dbus.Dictionary(self.states, signature='uu')) }) logger.debug('init4')