diff 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
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py	Tue Sep 25 00:58:34 2012 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Tue Sep 25 23:10:22 2012 +0200
@@ -70,6 +70,13 @@
         """add a contact to the list"""
         raise NotImplementedError
 
+    def setSpecial(self, jid, _type):
+        """Set entity as a special
+        @param jid: jid of the entity
+        @param _type: special type (e.g.: "MUC")
+        """
+        raise NotImplementedError
+
     def updatePresence(self, jid, show, priority, statuses):
         """Update entity's presence status
         @param jid: entity to update's jid
@@ -80,3 +87,4 @@
         self.setCache(jid, 'prority', priority)
         self.setCache(jid, 'statuses', statuses)
         self.update_jid(jid)
+