summaryrefslogtreecommitdiff
path: root/indra/newview/llavatarlistitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llavatarlistitem.h')
-rw-r--r--indra/newview/llavatarlistitem.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/newview/llavatarlistitem.h b/indra/newview/llavatarlistitem.h
index 871441b2d3..2330db5249 100644
--- a/indra/newview/llavatarlistitem.h
+++ b/indra/newview/llavatarlistitem.h
@@ -38,9 +38,11 @@
#include "llbutton.h"
#include "lltextbox.h"
+#include "llcallingcard.h" // for LLFriendObserver
+
class LLAvatarIconCtrl;
-class LLAvatarListItem : public LLPanel
+class LLAvatarListItem : public LLPanel, public LLFriendObserver
{
public:
class ContextMenu
@@ -50,15 +52,17 @@ public:
};
LLAvatarListItem();
- virtual ~LLAvatarListItem() {};
+ virtual ~LLAvatarListItem();
virtual BOOL postBuild();
virtual void onMouseLeave(S32 x, S32 y, MASK mask);
virtual void onMouseEnter(S32 x, S32 y, MASK mask);
virtual BOOL handleRightMouseDown(S32 x, S32 y, MASK mask);
virtual void setValue(const LLSD& value);
+ virtual void changed(U32 mask); // from LLFriendObserver
void setStatus(const std::string& status);
+ void setOnline(bool online);
void setName(const std::string& name);
void setAvatarId(const LLUUID& id);
@@ -75,6 +79,13 @@ public:
void setContextMenu(ContextMenu* menu) { mContextMenu = menu; }
private:
+
+ typedef enum e_online_status {
+ E_OFFLINE,
+ E_ONLINE,
+ E_UNKNOWN,
+ } EOnlineStatus;
+
void onNameCache(const std::string& first_name, const std::string& last_name);
LLAvatarIconCtrl*mAvatarIcon;
@@ -87,6 +98,7 @@ private:
ContextMenu* mContextMenu;
LLUUID mAvatarId;
+ EOnlineStatus mOnlineStatus;
};
#endif //LL_LLAVATARLISTITEM_H