diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llimview.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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*) | |||
366 | 366 | ||
367 | LLIMMgr::LLIMMgr() : | 367 | LLIMMgr::LLIMMgr() : |
368 | mFriendObserver(NULL), | 368 | mFriendObserver(NULL), |
369 | mIMReceived(FALSE) | 369 | mIMReceived(FALSE), |
370 | mIMUnreadCount(0) | ||
370 | { | 371 | { |
371 | mFriendObserver = new LLIMViewFriendObserver(this); | 372 | mFriendObserver = new LLIMViewFriendObserver(this); |
372 | LLAvatarTracker::instance().addObserver(mFriendObserver); | 373 | LLAvatarTracker::instance().addObserver(mFriendObserver); |
@@ -510,6 +511,7 @@ void LLIMMgr::addMessage( | |||
510 | 511 | ||
511 | //notify of a new IM | 512 | //notify of a new IM |
512 | notifyNewIM(); | 513 | notifyNewIM(); |
514 | mIMUnreadCount++; | ||
513 | } | 515 | } |
514 | } | 516 | } |
515 | 517 | ||
@@ -553,6 +555,7 @@ void LLIMMgr::notifyNewIM() | |||
553 | void LLIMMgr::clearNewIMNotification() | 555 | void LLIMMgr::clearNewIMNotification() |
554 | { | 556 | { |
555 | mIMReceived = FALSE; | 557 | mIMReceived = FALSE; |
558 | mIMUnreadCount = 0; | ||
556 | } | 559 | } |
557 | 560 | ||
558 | BOOL LLIMMgr::getIMReceived() const | 561 | BOOL LLIMMgr::getIMReceived() const |
@@ -560,6 +563,11 @@ BOOL LLIMMgr::getIMReceived() const | |||
560 | return mIMReceived; | 563 | return mIMReceived; |
561 | } | 564 | } |
562 | 565 | ||
566 | int LLIMMgr::getIMUnreadCount() | ||
567 | { | ||
568 | return mIMUnreadCount; | ||
569 | } | ||
570 | |||
563 | // This method returns TRUE if the local viewer has a session | 571 | // This method returns TRUE if the local viewer has a session |
564 | // currently open keyed to the uuid. | 572 | // currently open keyed to the uuid. |
565 | BOOL LLIMMgr::isIMSessionOpen(const LLUUID& uuid) | 573 | BOOL LLIMMgr::isIMSessionOpen(const LLUUID& uuid) |