comparison frontends/src/quick_frontend/quick_contact_list.py @ 502:debcf5dd404a

QuickFrontend, Primitivus, Wix: special entities management: - MUC rooms are special entities - Primitivus: special entities are shown at the top of the contacts list above a divider, presence updates are temporary ignored for them
author Goffi <goffi@goffi.org>
date Tue, 25 Sep 2012 23:10:22 +0200
parents e9634d2e7b38
children 65ecbb473cbb
comparison
equal deleted inserted replaced
501:e9634d2e7b38 502:debcf5dd404a
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):
74 """Set entity as a special
75 @param jid: jid of the entity
76 @param _type: special type (e.g.: "MUC")
77 """
78 raise NotImplementedError
79
73 def updatePresence(self, jid, show, priority, statuses): 80 def updatePresence(self, jid, show, priority, statuses):
74 """Update entity's presence status 81 """Update entity's presence status
75 @param jid: entity to update's jid 82 @param jid: entity to update's jid
76 @param show: availability 83 @param show: availability
77 @parap priority: resource's priority 84 @parap priority: resource's priority
78 @param statuses: dict of statuses""" 85 @param statuses: dict of statuses"""
79 self.setCache(jid, 'show', show) 86 self.setCache(jid, 'show', show)
80 self.setCache(jid, 'prority', priority) 87 self.setCache(jid, 'prority', priority)
81 self.setCache(jid, 'statuses', statuses) 88 self.setCache(jid, 'statuses', statuses)
82 self.update_jid(jid) 89 self.update_jid(jid)
90