comparison 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
comparison
equal deleted inserted replaced
2134:f45250052846 2135:4e67d6ffea66
84 UPDATE_STRUCTURE = 'STRUCTURE' # high level update (i.e. not item level but organisation of items) 84 UPDATE_STRUCTURE = 'STRUCTURE' # high level update (i.e. not item level but organisation of items)
85 85
86 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu', 'notification', 'notificationsClear', 'progressFinished', 'progressError'} 86 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu', 'notification', 'notificationsClear', 'progressFinished', 'progressError'}
87 87
88 # Notifications 88 # Notifications
89 NOTIFY_MESSAGE = 'MESSAGE' # a message was received 89 NOTIFY_MESSAGE = 'MESSAGE' # a message has been received
90 NOTIFY_MENTION = 'MENTION' # user was mentionned 90 NOTIFY_MENTION = 'MENTION' # user has been mentionned
91 NOTIFY_PROGRESS_END = 'PROGRESS_END' # a progression has finised 91 NOTIFY_PROGRESS_END = 'PROGRESS_END' # a progression has finised
92 NOTIFY_GENERIC = 'GENERIC' # a notification which has not its own type 92 NOTIFY_GENERIC = 'GENERIC' # a notification which has not its own type
93 NOTIFY_ALL = (NOTIFY_MESSAGE, NOTIFY_MENTION, NOTIFY_PROGRESS_END, NOTIFY_GENERIC)