Mercurial > libervia-backend
comparison frontends/quick_frontend/quick_contact_list.py @ 51:8c67ea98ab91
frontend improved to take into account new SàT features
- quick_frontend: better use of contact management, it now manages nicks, avatars, and connected status
- quick_frontend: disconnect and remove are now 2 separate methods for contact list
- wix: new contact list using HTML items, and showing avatars. Groups are not showed for now
- wix: contact status now use tuples, to keep order, human readable status and color of contact
- wix: contact list is updated when avatar or nick is found
- wix: fixed 'question' dialog, which is renamed in 'yes/no'
- wix: action result are now ignored for unkwnown id
- sortilege refactored to work again
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 07 Jan 2010 00:17:27 +1100 |
parents | c4bc297b82f0 |
children | 6455fb62ff83 |
comparison
equal
deleted
inserted
replaced
50:daa1f01a5332 | 51:8c67ea98ab91 |
---|---|
22 from logging import debug, info, error | 22 from logging import debug, info, error |
23 from tools.jid import JID | 23 from tools.jid import JID |
24 | 24 |
25 | 25 |
26 class QuickContactList(): | 26 class QuickContactList(): |
27 """This class manage the visual representation of contacts""" | |
27 | 28 |
28 def __init__(self): | 29 def __init__(self, CM): |
30 """ | |
31 @param CM: instance of QuickContactManagement | |
32 """ | |
29 debug("Contact List init") | 33 debug("Contact List init") |
30 self.jid_ids={} | 34 self.CM = CM |
31 | 35 |
32 def replace(self, jid, name="", show="", status="", group=""): | 36 def replace(self, jid): |
33 """add a contact to the list""" | 37 """add a contact to the list if doesn't exist, else update it""" |
38 raise NotImplementedError | |
39 | |
40 def disconnect(self, jid): | |
41 """mark a contact disconnected""" | |
34 raise NotImplementedError | 42 raise NotImplementedError |
35 | 43 |
36 def remove(self, jid): | 44 def remove(self, jid): |
37 """remove a contact from the list""" | 45 """remove a contact from the list""" |
38 raise NotImplementedError | 46 raise NotImplementedError |
39 | 47 |
40 def add(self, jid, name="", show="", status="", group=""): | 48 def add(self, jid): |
41 """add a contact to the list""" | 49 """add a contact to the list""" |
42 raise NotImplementedError | 50 raise NotImplementedError |