aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-08 23:23:07 -0700
committerMcCabe Maxsted2009-06-08 23:23:07 -0700
commitc4f22cd6a6f96546a39702097accc8557130d34a (patch)
tree8827b07170fea501cdfbfd7696461298dfb587dc /linden/indra/newview/llimview.cpp
parentMerged in 1.2.0-communicatetitle (diff)
downloadmeta-impy-c4f22cd6a6f96546a39702097accc8557130d34a.zip
meta-impy-c4f22cd6a6f96546a39702097accc8557130d34a.tar.gz
meta-impy-c4f22cd6a6f96546a39702097accc8557130d34a.tar.bz2
meta-impy-c4f22cd6a6f96546a39702097accc8557130d34a.tar.xz
'IM Received' button to '__ New IMs'
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llimview.cpp10
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
367LLIMMgr::LLIMMgr() : 367LLIMMgr::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()
553void LLIMMgr::clearNewIMNotification() 555void LLIMMgr::clearNewIMNotification()
554{ 556{
555 mIMReceived = FALSE; 557 mIMReceived = FALSE;
558 mIMUnreadCount = 0;
556} 559}
557 560
558BOOL LLIMMgr::getIMReceived() const 561BOOL LLIMMgr::getIMReceived() const
@@ -560,6 +563,11 @@ BOOL LLIMMgr::getIMReceived() const
560 return mIMReceived; 563 return mIMReceived;
561} 564}
562 565
566int 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.
565BOOL LLIMMgr::isIMSessionOpen(const LLUUID& uuid) 573BOOL LLIMMgr::isIMSessionOpen(const LLUUID& uuid)