diff options
Diffstat (limited to 'indra/newview/lltoastpanel.cpp')
-rw-r--r-- | indra/newview/lltoastpanel.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/indra/newview/lltoastpanel.cpp b/indra/newview/lltoastpanel.cpp index 79a7d45bbf..c39bac97a8 100644 --- a/indra/newview/lltoastpanel.cpp +++ b/indra/newview/lltoastpanel.cpp @@ -34,9 +34,28 @@ #include "lltoastpanel.h" -LLToastPanel::LLToastPanel(LLNotificationPtr& notification) { +LLToastPanel::LLToastPanel(LLNotificationPtr& notification) +{ mNotification = notification; } -LLToastPanel::~LLToastPanel() { +LLToastPanel::~LLToastPanel() +{ } + +std::string LLToastPanel::getTitle() +{ +// *TODO: localize header of Title +/* std::string title; + std::string notification_type = mNotification->getType(); + + if( notification_type == "groupnotify" ) + { + title = LLTrans::getString("TitleGroup"); + } +*/ + return (mNotification->getName() + "\n" + mNotification->getMessage()); +} + + + |