comparison 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
comparison
equal deleted inserted replaced
1382:b01efa1c0f5e 1383:59c48796759e
222 states = OrderedDict() 222 states = OrderedDict()
223 for key in self.visible_states: 223 for key in self.visible_states:
224 value = clist.getCache(entity, key) 224 value = clist.getCache(entity, key)
225 if value: 225 if value:
226 states[key] = value 226 states[key] = value
227 if self.type == C.CHAT_GROUP: 227 self.setContactStates(entity, states)
228 self.setOccupantStates(entity, states) 228
229 else: 229 def setContactStates(self, contact_jid, states):
230 self.setContactStates(entity, states) 230 """Set a contact (one2one or MUC occupant) states.
231
232 @param contact_jid (jid.JID): contact
233 @param states (dict{unicode: unicode}): new states
234 """
235 raise NotImplementedError
231 236
232 def addGamePanel(self, widget): 237 def addGamePanel(self, widget):
233 """Insert a game panel to this Chat dialog. 238 """Insert a game panel to this Chat dialog.
234 239
235 @param widget (Widget): the game panel 240 @param widget (Widget): the game panel