diff frontends/src/quick_frontend/quick_app.py @ 2056:7bfa97e533ac

quick frontend(QuickApp): added getDefaultAvatar method: this method (not implemented in quick frontend) should facilitate handling of entities without avatar
author Goffi <goffi@goffi.org>
date Mon, 29 Aug 2016 01:21:45 +0200
parents 046449cc2bff
children 9dd76a5b63ba
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Sun Aug 28 21:00:53 2016 +0200
+++ b/frontends/src/quick_frontend/quick_app.py	Mon Aug 29 01:21:45 2016 +0200
@@ -829,6 +829,14 @@
 
         self.bridge.launchAction(callback_id, data, profile, callback=action_cb, errback=self.dialogFailure)
 
+    def getDefaultAvatar(self, entity=None):
+        """return default avatar to use with given entity
+
+        must be implemented by frontend
+        @param entity(jid.JID): entity for which a default avatar is needed
+        """
+        raise NotImplementedError
+
     def disconnect(self, profile):
         log.info("disconnecting")
         self.callListeners('disconnect', profile=profile)