summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationhandler.h
diff options
context:
space:
mode:
authorIgor Borovkov <iborovkov@productengine.com>2009-12-26 16:59:30 +0200
committerIgor Borovkov <iborovkov@productengine.com>2009-12-26 16:59:30 +0200
commite82442736871e5f0ac4a1c402e3c2209ae761ea1 (patch)
tree819107155a606c1190ed95000ea6419ea444a87e /indra/newview/llnotificationhandler.h
parentdaed86bbb0fa1ee394a83d597cd5846809d14ba3 (diff)
parent504020425efe5f3b40c79e1afa2de5f0587b56f4 (diff)
merge
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llnotificationhandler.h')
-rw-r--r--indra/newview/llnotificationhandler.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llnotificationhandler.h b/indra/newview/llnotificationhandler.h
index 33ef4c81cd..0fb438bfe9 100644
--- a/indra/newview/llnotificationhandler.h
+++ b/indra/newview/llnotificationhandler.h
@@ -277,6 +277,13 @@ public:
static bool canSpawnIMSession(const LLNotificationPtr& notification);
/**
+ * Checks if passed notification can create IM session and be written into it.
+ *
+ * This method uses canLogToIM() & canSpawnIMSession().
+ */
+ static bool canSpawnSessionAndLogToIM(const LLNotificationPtr& notification);
+
+ /**
* Writes notification message to IM session.
*/
static void logToIM(const EInstantMessage& session_type,
@@ -303,6 +310,15 @@ public:
* Spawns IM session.
*/
static void spawnIMSession(const std::string& name, const LLUUID& from_id);
+
+ /**
+ * Returns name from the notification's substitution.
+ *
+ * Methods gets "NAME" or "[NAME]" from the substitution map.
+ *
+ * @param notification - Notification which substitution's name will be returned.
+ */
+ static std::string getSubstitutionName(const LLNotificationPtr& notification);
};
}