diff frontends/src/quick_frontend/quick_chat.py @ 1383:59c48796759e

quick_frontend, primitivus (chat): merge setOccupantStates and setContactStates
author souliane <souliane@mailoo.org>
date Mon, 23 Mar 2015 09:34:23 +0100
parents da2ea16fabc6
children 1f3513cfb246
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Sun Mar 22 14:20:19 2015 +0100
+++ b/frontends/src/quick_frontend/quick_chat.py	Mon Mar 23 09:34:23 2015 +0100
@@ -224,10 +224,15 @@
             value = clist.getCache(entity, key)
             if value:
                 states[key] = value
-        if self.type == C.CHAT_GROUP:
-            self.setOccupantStates(entity, states)
-        else:
-            self.setContactStates(entity, states)
+        self.setContactStates(entity, states)
+
+    def setContactStates(self, contact_jid, states):
+        """Set a contact (one2one or MUC occupant) states.
+
+        @param contact_jid (jid.JID): contact
+        @param states (dict{unicode: unicode}): new states
+        """
+        raise NotImplementedError
 
     def addGamePanel(self, widget):
         """Insert a game panel to this Chat dialog.