comparison frontends/src/quick_frontend/quick_contact_list.py @ 504:65ecbb473cbb

core, quick frontend, plugin xep-0054, bridge: use of memory's entities data for vcard: - bridge: new bridge method getEntityData and signal entityDataUpdated - core: entityDataUpdated signal sent on new string data - quick frontend: fixed avatars/vcard infos, fixed _replace in quick_contact_list - plugin xep-0054: dropped updatedValue signal, use entities data instead
author Goffi <goffi@goffi.org>
date Wed, 26 Sep 2012 01:23:56 +0200
parents debcf5dd404a
children 886754295efe
comparison
equal deleted inserted replaced
503:10119c2a9d33 504:65ecbb473cbb
52 def clearContacts(self, jid): 52 def clearContacts(self, jid):
53 """Clear all the contact list""" 53 """Clear all the contact list"""
54 raise NotImplementedError 54 raise NotImplementedError
55 55
56 def _replace(self, jid, groups=None, attributes=None): 56 def _replace(self, jid, groups=None, attributes=None):
57 if 'name' in attributes: 57 if attributes and 'name' in attributes:
58 self.setCache(jid, 'name', attributes['name']) 58 self.setCache(jid, 'name', attributes['name'])
59 self.replace(jid, groups, attributes) 59 self.replace(jid, groups, attributes)
60 60
61 def replace(self, jid, groups, attributes): 61 def replace(self, jid, groups, attributes):
62 """add a contact to the list if doesn't exist, else update it""" 62 """add a contact to the list if doesn't exist, else update it"""
63 raise NotImplementedError 63 raise NotImplementedError
64 64
65 def remove(self, jid): 65 def remove(self, jid):
66 """remove a contact from the list""" 66 """remove a contact from the list"""
67 raise NotImplementedError 67 raise NotImplementedError
68 68
69 def add(self, jid, param_groups=None): 69 def add(self, jid, param_groups=None):
70 """add a contact to the list""" 70 """add a contact to the list"""
71 raise NotImplementedError 71 raise NotImplementedError
72 72
73 def setSpecial(self, jid, _type): 73 def setSpecial(self, jid, _type):