comparison sat_frontends/quick_frontend/quick_app.py @ 3065:f8e3789912d0

quick frontend (contact list): added "contactsFilled" event
author Goffi <goffi@goffi.org>
date Tue, 29 Oct 2019 20:24:29 +0100
parents ab2696e34d29
children ab8be8f1c92d
comparison
equal deleted inserted replaced
3064:d62fceccff22 3065:f8e3789912d0
295 """ 295 """
296 self.xmlui = xmlui 296 self.xmlui = xmlui
297 self.menus = quick_menus.QuickMenusManager(self) 297 self.menus = quick_menus.QuickMenusManager(self)
298 ProfileManager.host = self 298 ProfileManager.host = self
299 self.profiles = ProfilesManager() 299 self.profiles = ProfilesManager()
300 self._plugs_in_progress = ( 300 # profiles currently being plugged, used to (un)lock contact list updates
301 set() 301 self._plugs_in_progress = set()
302 ) # profiles currently being plugged, used to (un)lock contact list updates
303 self.ready_profiles = set() # profiles which are connected and ready 302 self.ready_profiles = set() # profiles which are connected and ready
304 self.signals_cache = {} # used to keep signal received between start of 303 self.signals_cache = {} # used to keep signal received between start of
305 # plug_profile and when the profile is actualy ready 304 # plug_profile and when the profile is actualy ready
306 self.contact_lists = quick_contact_list.QuickContactListHandler(self) 305 self.contact_lists = quick_contact_list.QuickContactListHandler(self)
307 self.widgets = quick_widgets.QuickWidgetsManager(self) 306 self.widgets = quick_widgets.QuickWidgetsManager(self)
526 """Add a listener for an event 525 """Add a listener for an event
527 526
528 /!\ don't forget to remove listener when not used anymore (e.g. if you delete a 527 /!\ don't forget to remove listener when not used anymore (e.g. if you delete a
529 widget) 528 widget)
530 @param type_: type of event, can be: 529 @param type_: type of event, can be:
530 - contactsFilled: called when contact have been fully filled for a profiles
531 kwargs: profile
531 - avatar: called when avatar data is updated 532 - avatar: called when avatar data is updated
532 args: (entity, avatar file, profile) 533 args: (entity, avatar file, profile)
533 - nick: called when nick data is updated 534 - nick: called when nick data is updated
534 args: (entity, new_nick, profile) 535 args: (entity, new_nick, profile)
535 - presence: called when a presence is received 536 - presence: called when a presence is received