quick_frontend: display over whole alerts counter
This commit is contained in:
parent
042e19b812
commit
252bf6bef3
1 changed files with 14 additions and 0 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue