diff frontends/src/quick_frontend/constants.py @ 2135:4e67d6ffea66

quick app: check type in notify
author Goffi <goffi@goffi.org>
date Sun, 05 Feb 2017 14:55:21 +0100
parents b44558286bbb
children 8b37a62336c3
line wrap: on
line diff
--- a/frontends/src/quick_frontend/constants.py	Sun Feb 05 14:55:21 2017 +0100
+++ b/frontends/src/quick_frontend/constants.py	Sun Feb 05 14:55:21 2017 +0100
@@ -86,7 +86,8 @@
     LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu', 'notification', 'notificationsClear', 'progressFinished', 'progressError'}
 
     # Notifications
-    NOTIFY_MESSAGE = 'MESSAGE'  # a message was received
-    NOTIFY_MENTION = 'MENTION'  # user was mentionned
+    NOTIFY_MESSAGE = 'MESSAGE'  # a message has been received
+    NOTIFY_MENTION = 'MENTION'  # user has been mentionned
     NOTIFY_PROGRESS_END = 'PROGRESS_END'  # a progression has finised
     NOTIFY_GENERIC = 'GENERIC'  # a notification which has not its own type
+    NOTIFY_ALL = (NOTIFY_MESSAGE, NOTIFY_MENTION, NOTIFY_PROGRESS_END, NOTIFY_GENERIC)