summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationhandler.h
diff options
context:
space:
mode:
authorAndrew Dyukov <adyukov@productengine.com>2010-03-10 19:50:24 +0200
committerAndrew Dyukov <adyukov@productengine.com>2010-03-10 19:50:24 +0200
commit3ab788b14f9cdc3f33a06491d65abc985c045fa4 (patch)
treec3910d2ac50fd8ded77c48b945d1bf9590225b50 /indra/newview/llnotificationhandler.h
parentb2f6cab24f9cf9edf9b33d0f0f59ca4dab1fb209 (diff)
Implemented normal sub-task EXT-5909(Accepted/declined inventory offer shouldn't spawn chiclet).
- Removed check for INVENTORY_DECLINED from LLHandlerUtil::canSpawnIMSession(). - Added new method LLHandlerUtil::canSpawnToast() and check with it to LLTipHandler::processNotification() to supress toasts when respective IM window is open. --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llnotificationhandler.h')
-rw-r--r--indra/newview/llnotificationhandler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llnotificationhandler.h b/indra/newview/llnotificationhandler.h
index 1f5cff2505..62daf5f105 100644
--- a/indra/newview/llnotificationhandler.h
+++ b/indra/newview/llnotificationhandler.h
@@ -298,6 +298,13 @@ public:
static bool canSpawnSessionAndLogToIM(const LLNotificationPtr& notification);
/**
+ * Checks if passed notification can create toast.
+ *
+ * It returns false only for inventory accepted/declined notifications if respective IM window is open (EXT-5909)
+ */
+ static bool canSpawnToast(const LLNotificationPtr& notification);
+
+ /**
* Determines whether IM floater is opened.
*/
static bool isIMFloaterOpened(const LLNotificationPtr& notification);