summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationhinthandler.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-03-27 22:56:02 -0700
committerRichard Linden <none@none>2012-03-27 22:56:02 -0700
commit1ea65f0285d7022ce20ef84d4e35e3c94bcb3fbd (patch)
tree5af1e50737b6a96f7a05ba6b5f5c5ac3c0f551b3 /indra/newview/llnotificationhinthandler.cpp
parentb187aeb8f177bd76e792652e773617beff18b47b (diff)
CHUI-51 WIP notifications routig code cleanup
phase 1, removal of most of llnotificationhandler
Diffstat (limited to 'indra/newview/llnotificationhinthandler.cpp')
-rw-r--r--indra/newview/llnotificationhinthandler.cpp26
1 files changed, 3 insertions, 23 deletions
diff --git a/indra/newview/llnotificationhinthandler.cpp b/indra/newview/llnotificationhinthandler.cpp
index f7163cb04f..47156a3915 100644
--- a/indra/newview/llnotificationhinthandler.cpp
+++ b/indra/newview/llnotificationhinthandler.cpp
@@ -33,26 +33,6 @@
using namespace LLNotificationsUI;
-LLHintHandler::LLHintHandler()
-{
-}
-
-LLHintHandler::~LLHintHandler()
-{
-}
-
-bool LLHintHandler::processNotification(const LLSD& notify)
-{
- LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID());
-
- std::string sigtype = notify["sigtype"].asString();
- if (sigtype == "add" || sigtype == "load")
- {
- LLHints::show(notification);
- }
- else if (sigtype == "delete")
- {
- LLHints::hide(notification);
- }
- return false;
-}
+void LLHintHandler::onAdd(LLNotificationPtr p) { LLHints::show(p); }
+void LLHintHandler::onChange(LLNotificationPtr p) { LLHints::show(p); }
+void LLHintHandler::onDelete(LLNotificationPtr p) { LLHints::hide(p); }