diff frontends/src/quick_frontend/quick_chat.py @ 907:cd02f5ef30df

primitivus: display chat states (with symbols) for MUC participants
author souliane <souliane@mailoo.org>
date Mon, 17 Mar 2014 13:24:55 +0100
parents 084b52afdceb
children d1084f7e56a5
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py	Sun Mar 16 21:25:49 2014 +0100
+++ b/frontends/src/quick_frontend/quick_chat.py	Mon Mar 17 13:24:55 2014 +0100
@@ -153,3 +153,12 @@
         #No need to raise an error as game are not mandatory
         warning(_('getGame is not implemented in this frontend'))
 
+    def updateChatState(self, state, nick=None):
+        """Set the chat state (XEP-0085) of the contact. Leave nick to None
+        to set the state for a one2one conversation, or give a nickname or
+        Const.ALL_OCCUPANTS to set the state of a participant within a MUC.
+        @param state: the new chat state
+        @param nick: None for one2one, the MUC user nick or ALL_OCCUPANTS
+        """
+        raise NotImplementedError
+