comparison frontends/src/quick_frontend/constants.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 011eff37e21d
children 19b9d3f8a6c7
comparison
equal deleted inserted replaced
1971:9421e721d5e2 1972:02d21a589be2
61 "gone": u'✈', 61 "gone": u'✈',
62 "composing": u'✎', 62 "composing": u'✎',
63 "paused": u"⦷" 63 "paused": u"⦷"
64 } 64 }
65 65
66 # Alerts
67 ALERT_MESSAGE = "MESSAGE" # New message received
68 ALERT_NICK = "NICK" # our nickname was mentionned
69
70 # Blogs 66 # Blogs
71 ENTRY_MODE_TEXT = "text" 67 ENTRY_MODE_TEXT = "text"
72 ENTRY_MODE_RICH = "rich" 68 ENTRY_MODE_RICH = "rich"
73 ENTRY_MODE_XHTML = "xhtml" 69 ENTRY_MODE_XHTML = "xhtml"
74 70
84 UPDATE_MODIFY = 'MODIFY' 80 UPDATE_MODIFY = 'MODIFY'
85 UPDATE_ADD = 'ADD' 81 UPDATE_ADD = 'ADD'
86 UPDATE_SELECTION = 'SELECTION' 82 UPDATE_SELECTION = 'SELECTION'
87 UPDATE_STRUCTURE = 'STRUCTURE' # high level update (i.e. not item level but organisation of items) 83 UPDATE_STRUCTURE = 'STRUCTURE' # high level update (i.e. not item level but organisation of items)
88 84
89 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu'} 85 LISTENERS = {'avatar', 'nick', 'presence', 'profilePlugged', 'disconnect', 'gotMenus', 'menu', 'notification', 'notificationsClear'}
86
87 # Notifications
88 NOTIFY_MESSAGE = 'MESSAGE' # a message was received
89 NOTIFY_MENTION = 'MENTION' # user was mentionned
90 NOTIFY_PROGRESS_END = 'PROGRESS_END' # a progression has finised
91 NOTIFY_GENERIC = 'GENERIC' # a notification which has not its own type