예제 #1
0
 def new_conversation(self, contacts_uid):
     """
     @type contacts_uid: list
     """
     #TODO: check if no conversation like this one already exists
     c = aMSNConversation(self._core, self, None, contacts_uid)
     self._convs.append(c)
예제 #2
0
 def onInviteConversation(self, conversation):
     print "new conv"
     contacts_id = [c.id for c in conversation.participants]
     contacts = [ContactView.getContact(cid) for cid in contacts_id]
     #TODO: What if the contact_manager has not build a view for that contact?
     c = aMSNConversation(self._core, self, conversation, contacts)
     self._convs.append(c)
예제 #3
0
 def on_invite_conversation(self, conversation):
     """
     @type conversation: L{amsn2.core.conversation.aMSNConversation}
     """
     print "new conv"
     contacts_uid = [c.id for c in conversation.participants]
     #TODO: What if the contact_manager has not build a view for that contact?
     c = aMSNConversation(self._core, self, conversation, contacts_uid)
     self._convs.append(c)
예제 #4
0
 def newConversation(self, contacts_uid):
     """ contacts_uid is a list of contact uid """
     #TODO: check if no conversation like this one already exists
     c = aMSNConversation(self._core, self, None, contacts_uid)
     self._convs.append(c)
예제 #5
0
 def onInviteConversation(self, conversation):
     print "new conv"
     contacts_uid = [c.id for c in conversation.participants]
     #TODO: What if the contact_manager has not build a view for that contact?
     c = aMSNConversation(self._core, self, conversation, contacts_uid)
     self._convs.append(c)
예제 #6
0
 def newConversation(self, contacts_uid):
     """ contacts_uid is a list of contact uid """
     #TODO: check if no conversation like this one already exists
     c = aMSNConversation(self._core, self, None, contacts_uid)
     self._convs.append(c)