comparison 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
comparison
equal deleted inserted replaced
2055:ed33cd382bf9 2056:7bfa97e533ac
827 else: 827 else:
828 callback(data=data, cb_id=callback_id, profile=profile) 828 callback(data=data, cb_id=callback_id, profile=profile)
829 829
830 self.bridge.launchAction(callback_id, data, profile, callback=action_cb, errback=self.dialogFailure) 830 self.bridge.launchAction(callback_id, data, profile, callback=action_cb, errback=self.dialogFailure)
831 831
832 def getDefaultAvatar(self, entity=None):
833 """return default avatar to use with given entity
834
835 must be implemented by frontend
836 @param entity(jid.JID): entity for which a default avatar is needed
837 """
838 raise NotImplementedError
839
832 def disconnect(self, profile): 840 def disconnect(self, profile):
833 log.info("disconnecting") 841 log.info("disconnecting")
834 self.callListeners('disconnect', profile=profile) 842 self.callListeners('disconnect', profile=profile)
835 self.bridge.disconnect(profile) 843 self.bridge.disconnect(profile)
836 844