diff options
| author | Jonathan Yap <none@none> | 2013-01-26 07:00:44 -0500 |
|---|---|---|
| committer | Jonathan Yap <none@none> | 2013-01-26 07:00:44 -0500 |
| commit | 3882945fb9cfbe2710b8f05c7bf8b8c079272191 (patch) | |
| tree | 27622d29ff9070deaa278576d47a346446317a27 /indra/newview/llnotificationhandlerutil.cpp | |
| parent | 0afbc85efadfb3e3e825a5cade9f76876fbdf1a4 (diff) | |
STORM-1838 Add code for right click menu on inventory calling cards.
Add initial support to insert teleport request into existing IM window.
Diffstat (limited to 'indra/newview/llnotificationhandlerutil.cpp')
| -rw-r--r-- | indra/newview/llnotificationhandlerutil.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/indra/newview/llnotificationhandlerutil.cpp b/indra/newview/llnotificationhandlerutil.cpp index 16c51138a9..7efc231a66 100644 --- a/indra/newview/llnotificationhandlerutil.cpp +++ b/indra/newview/llnotificationhandlerutil.cpp @@ -111,9 +111,9 @@ void LLSysHandler::removeExclusiveNotifications(const LLNotificationPtr& notif) } const static std::string GRANTED_MODIFY_RIGHTS("GrantedModifyRights"), - REVOKED_MODIFY_RIGHTS("RevokedModifyRights"), - OBJECT_GIVE_ITEM("ObjectGiveItem"), - OBJECT_GIVE_ITEM_UNKNOWN_USER("ObjectGiveItemUnknownUser"), + REVOKED_MODIFY_RIGHTS("RevokedModifyRights"), + OBJECT_GIVE_ITEM("ObjectGiveItem"), + OBJECT_GIVE_ITEM_UNKNOWN_USER("ObjectGiveItemUnknownUser"), PAYMENT_RECEIVED("PaymentReceived"), PAYMENT_SENT("PaymentSent"), ADD_FRIEND_WITH_MESSAGE("AddFriendWithMessage"), @@ -131,6 +131,7 @@ const static std::string GRANTED_MODIFY_RIGHTS("GrantedModifyRights"), TELEPORT_OFFERED_MATURITY_EXCEEDED("TeleportOffered_MaturityExceeded"), TELEPORT_OFFERED_MATURITY_BLOCKED("TeleportOffered_MaturityBlocked"), TELEPORT_OFFER_SENT("TeleportOfferSent"), + TELEPORT_REQUEST("TeleportRequest"), IM_SYSTEM_MESSAGE_TIP("IMSystemMessageTip"); @@ -154,6 +155,7 @@ bool LLHandlerUtil::canLogToIM(const LLNotificationPtr& notification) || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName() || TELEPORT_OFFER_SENT == notification->getName() + || TELEPORT_REQUEST == notification->getName() || IM_SYSTEM_MESSAGE_TIP == notification->getName(); } @@ -175,27 +177,30 @@ bool LLHandlerUtil::canSpawnIMSession(const LLNotificationPtr& notification) || USER_GIVE_ITEM == notification->getName() || TELEPORT_OFFERED == notification->getName() || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() - || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName(); + || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName() + || TELEPORT_REQUEST == notification->getName(); } // static bool LLHandlerUtil::canAddNotifPanelToIM(const LLNotificationPtr& notification) { return OFFER_FRIENDSHIP == notification->getName() - || USER_GIVE_ITEM == notification->getName() - || TELEPORT_OFFERED == notification->getName() - || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() - || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName(); + || USER_GIVE_ITEM == notification->getName() + || TELEPORT_OFFERED == notification->getName() + || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() + || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName() + || TELEPORT_REQUEST == notification->getName(); } // static bool LLHandlerUtil::isNotificationReusable(const LLNotificationPtr& notification) { return OFFER_FRIENDSHIP == notification->getName() - || USER_GIVE_ITEM == notification->getName() - || TELEPORT_OFFERED == notification->getName() - || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() - || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName(); + || USER_GIVE_ITEM == notification->getName() + || TELEPORT_OFFERED == notification->getName() + || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() + || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName() + || TELEPORT_REQUEST == notification->getName(); } // static @@ -224,7 +229,8 @@ bool LLHandlerUtil::canSpawnToast(const LLNotificationPtr& notification) || USER_GIVE_ITEM == notification->getName() || TELEPORT_OFFERED == notification->getName() || TELEPORT_OFFERED_MATURITY_EXCEEDED == notification->getName() - || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName()) + || TELEPORT_OFFERED_MATURITY_BLOCKED == notification->getName() + || TELEPORT_REQUEST == notification->getName()) { // When ANY offer arrives, show toast, unless IM window is already open - EXT-5904 return ! isIMFloaterOpened(notification); |
