quick_frontend: display over whole alerts counter

This commit is contained in:
souliane 2015-07-20 10:23:58 +02:00
commit 252bf6bef3

View file

@ -278,6 +278,11 @@ class QuickApp(object):
"""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 @@ class QuickApp(object):
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"):