-
- Downloads
Implemented EXT-6783(normal sub task) - Implement saving of unread notifications.
Utilized old save and load notification code. Main concern was with notifications that have complex responder - UserGiveItem, ObjectGiveItem. Those responders are object with own fields that need to persist through sessions. Notifications that should be saved are marked with persist="true" in notifications.xml Notifications using functor responders are saved automatically. Notifications using object responders need additional tuning. Responder object should be a) serializable(implement LLNotificationResponderInterface), b) registered with LLResponderRegistry. At this point following notifications persist through sessions: UserGiveItem, ObjectGiveItem, TeleportOffered, FrienshipOffered. Reviewed by Mike Antipov - https://codereview.productengine.com/secondlife/r/211/ --HG-- branch : notifications
Showing
- indra/llui/llnotifications.cpp 47 additions, 111 deletionsindra/llui/llnotifications.cpp
- indra/llui/llnotifications.h 30 additions, 5 deletionsindra/llui/llnotifications.h
- indra/newview/CMakeLists.txt 2 additions, 0 deletionsindra/newview/CMakeLists.txt
- indra/newview/llchannelmanager.cpp 25 additions, 20 deletionsindra/newview/llchannelmanager.cpp
- indra/newview/llnotificationstorage.cpp 228 additions, 0 deletionsindra/newview/llnotificationstorage.cpp
- indra/newview/llnotificationstorage.h 65 additions, 0 deletionsindra/newview/llnotificationstorage.h
- indra/newview/llpanelgroup.h 1 addition, 1 deletionindra/newview/llpanelgroup.h
- indra/newview/llscriptfloater.cpp 10 additions, 0 deletionsindra/newview/llscriptfloater.cpp
- indra/newview/llscriptfloater.h 2 additions, 0 deletionsindra/newview/llscriptfloater.h
- indra/newview/lltoastnotifypanel.cpp 1 addition, 1 deletionindra/newview/lltoastnotifypanel.cpp
- indra/newview/llviewermessage.cpp 54 additions, 4 deletionsindra/newview/llviewermessage.cpp
- indra/newview/llviewermessage.h 20 additions, 5 deletionsindra/newview/llviewermessage.h
- indra/newview/skins/default/xui/en/notifications.xml 4 additions, 0 deletionsindra/newview/skins/default/xui/en/notifications.xml
Loading
Please register or sign in to comment