From 73efd4802b8f02f86599e6b7ab7220b9f9fe2dc0 Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Fri, 30 Oct 2009 19:30:23 +0200 Subject: Implemented major task EXT-2022 (Show profile online status for non-friend avatar too.) - imlemented like in viewer 1.23 behavior: show Online status according to avatar properties requested from server. --HG-- branch : product-engine --- indra/newview/llpanelprofileview.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'indra/newview/llpanelprofileview.h') diff --git a/indra/newview/llpanelprofileview.h b/indra/newview/llpanelprofileview.h index 07a6c3a9a0..e89ed07b53 100644 --- a/indra/newview/llpanelprofileview.h +++ b/indra/newview/llpanelprofileview.h @@ -49,6 +49,7 @@ class LLPanelProfileView : public LLPanelProfile { LOG_CLASS(LLPanelProfileView); friend class LLUICtrlFactory; + friend class AvatarStatusObserver; public: @@ -65,8 +66,9 @@ public: protected: void onBackBtnClick(); - bool isGrantedToSeeOnlineStatus(); - void updateOnlineStatus(); + bool isGrantedToSeeOnlineStatus(); // deprecated after EXT-2022 is implemented + void updateOnlineStatus(); // deprecated after EXT-2022 is implemented + void processOnlineStatus(bool online); private: // LLCacheName will call this function when avatar name is loaded from server. @@ -78,6 +80,8 @@ private: BOOL is_group); LLTextBox* mStatusText; + AvatarStatusObserver* mAvatarStatusObserver; + bool mAvatarIsOnline; }; #endif //LL_LLPANELPROFILEVIEW_H -- cgit v1.2.3 From 272a8f8d444124b8acb84d4bc711e9bb7b588b1e Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Fri, 30 Oct 2009 20:31:14 +0200 Subject: linux build fixed. Forward declaration for AvatarStatusObserver has been added. --HG-- branch : product-engine --- indra/newview/llpanelprofileview.h | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview/llpanelprofileview.h') diff --git a/indra/newview/llpanelprofileview.h b/indra/newview/llpanelprofileview.h index e89ed07b53..b59d1d42f3 100644 --- a/indra/newview/llpanelprofileview.h +++ b/indra/newview/llpanelprofileview.h @@ -40,6 +40,7 @@ class LLPanelProfile; class LLPanelProfileTab; class LLTextBox; +class AvatarStatusObserver; /** * Panel for displaying Avatar's profile. It consists of three sub panels - Profile, -- cgit v1.2.3