diff options
author | Igor Borovkov <iborovkov@productengine.com> | 2009-12-21 17:54:53 +0200 |
---|---|---|
committer | Igor Borovkov <iborovkov@productengine.com> | 2009-12-21 17:54:53 +0200 |
commit | d08ff06230ecc723eb872117c3c0b1031c08d9fe (patch) | |
tree | fbac1ee8ff1fa46494fa3802b802eaecdb11c63f /indra/llui/llnotificationslistener.h | |
parent | eb4f026181c83dfd2106cce3ab1fde6a3fe60ec3 (diff) | |
parent | c353e640fa80a335be741dd0edfdc9952ea3cdea (diff) |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/llnotificationslistener.h')
-rw-r--r-- | indra/llui/llnotificationslistener.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/indra/llui/llnotificationslistener.h b/indra/llui/llnotificationslistener.h index 9b405d7b4b..de208b57f0 100644 --- a/indra/llui/llnotificationslistener.h +++ b/indra/llui/llnotificationslistener.h @@ -13,6 +13,10 @@ #define LL_LLNOTIFICATIONSLISTENER_H #include "lleventapi.h" +#include "llnotificationptr.h" +#include <boost/shared_ptr.hpp> +#include <map> +#include <string> class LLNotifications; class LLSD; @@ -21,13 +25,27 @@ class LLNotificationsListener : public LLEventAPI { public: LLNotificationsListener(LLNotifications & notifications); + ~LLNotificationsListener(); +private: void requestAdd(LLSD const & event_data) const; -private: void NotificationResponder(const std::string& replypump, const LLSD& notification, const LLSD& response) const; + + void listChannels(const LLSD& params) const; + void listChannelNotifications(const LLSD& params) const; + void respond(const LLSD& params) const; + void cancel(const LLSD& params) const; + void ignore(const LLSD& params) const; + void forward(const LLSD& params); + + static LLSD asLLSD(LLNotificationPtr); + + class Forwarder; + typedef std::map<std::string, boost::shared_ptr<Forwarder> > ForwarderMap; + ForwarderMap mForwarders; LLNotifications & mNotifications; }; |