From c4f22cd6a6f96546a39702097accc8557130d34a Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 8 Jun 2009 23:23:07 -0700 Subject: 'IM Received' button to '__ New IMs' --- linden/indra/newview/llimview.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llimview.cpp') diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index 10e8ff8..1072b21 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp @@ -366,7 +366,8 @@ void LLIMMgr::toggle(void*) LLIMMgr::LLIMMgr() : mFriendObserver(NULL), - mIMReceived(FALSE) + mIMReceived(FALSE), + mIMUnreadCount(0) { mFriendObserver = new LLIMViewFriendObserver(this); LLAvatarTracker::instance().addObserver(mFriendObserver); @@ -510,6 +511,7 @@ void LLIMMgr::addMessage( //notify of a new IM notifyNewIM(); + mIMUnreadCount++; } } @@ -553,6 +555,7 @@ void LLIMMgr::notifyNewIM() void LLIMMgr::clearNewIMNotification() { mIMReceived = FALSE; + mIMUnreadCount = 0; } BOOL LLIMMgr::getIMReceived() const @@ -560,6 +563,11 @@ BOOL LLIMMgr::getIMReceived() const return mIMReceived; } +int LLIMMgr::getIMUnreadCount() +{ + return mIMUnreadCount; +} + // This method returns TRUE if the local viewer has a session // currently open keyed to the uuid. BOOL LLIMMgr::isIMSessionOpen(const LLUUID& uuid) -- cgit v1.1