Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1442:6ce18c4e5708
quick_frontend: display over whole alerts counter
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 20 Jul 2015 10:23:58 +0200 |
parents | e27963c9c219 |
children | 9fce331ba0fd |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Tue Jul 14 16:49:29 2015 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Mon Jul 20 10:23:58 2015 +0200 @@ -278,6 +278,11 @@ """widgets currently visible (must be implemented by frontend)""" raise NotImplementedError + @property + def alerts_count(self): + """Count the over whole alerts for all contact lists""" + return sum([len(clist._alerts) for clist in self.contact_lists.values()]) + def registerSignal(self, function_name, handler=None, iface="core", with_profile=True): """Register a handler for a signal @@ -638,6 +643,12 @@ def showAlert(self, message): pass #FIXME + def updateAlertsCounter(self): + """Update the over whole alerts counter + + """ + pass + def paramUpdateHandler(self, name, value, namespace, profile): log.debug(_(u"param update: [%(namespace)s] %(name)s = %(value)s") % {'namespace': namespace, 'name': name, 'value': value}) if (namespace, name) == ("Connection", "JabberID"):