comparison frontends/src/quick_frontend/quick_chat.py @ 1972:02d21a589be2

quick_frontend, primitivus: notifications refactoring replaced old "alerts" system by a more generic one which use listeners and can activate callbacks on notification click.
author Goffi <goffi@goffi.org>
date Mon, 27 Jun 2016 22:36:22 +0200
parents a2bc5089c2eb
children a9908e751c42
comparison
equal deleted inserted replaced
1971:9421e721d5e2 1972:02d21a589be2
338 You need to override historyPrint to handle the later 338 You need to override historyPrint to handle the later
339 @param message(Message): message data 339 @param message(Message): message data
340 """ 340 """
341 raise NotImplementedError 341 raise NotImplementedError
342 342
343 def notify(self, contact="somebody", msg=""):
344 """Notify the user of a new message if the frontend doesn't have the focus.
345
346 @param contact (unicode): contact who wrote to the users
347 @param msg (unicode): the message that has been received
348 """
349 # FIXME: not called anymore after refactoring
350 raise NotImplemented
351
352 def printDayChange(self, day): 343 def printDayChange(self, day):
353 """Display the day on a new line. 344 """Display the day on a new line.
354 345
355 @param day(unicode): day to display (or not if this method is not overwritten) 346 @param day(unicode): day to display (or not if this method is not overwritten)
356 """ 347 """