diff options
author | Merov Linden <merov@lindenlab.com> | 2013-05-10 18:29:00 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-05-10 18:29:00 -0700 |
commit | cc87c6785258cb04f11cb79ce2e9899d33f11e03 (patch) | |
tree | fcc057e96fbd8af5a5664bf4036d79ce4c6e92e0 /indra/newview/llpersonmodelcommon.h | |
parent | 7c4bfc8f55ebc581ddac0c2394b07b24d240d1a6 (diff) | |
parent | fb27eae15502cbd2a13cde018ae67f961320d0ba (diff) |
Pull merge from viewer-fbc
Diffstat (limited to 'indra/newview/llpersonmodelcommon.h')
-rw-r--r-- | indra/newview/llpersonmodelcommon.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llpersonmodelcommon.h b/indra/newview/llpersonmodelcommon.h index 5f3801874d..74598eaee0 100644 --- a/indra/newview/llpersonmodelcommon.h +++ b/indra/newview/llpersonmodelcommon.h @@ -40,6 +40,7 @@ class LLPersonModelCommon : public LLFolderViewModelItemCommon public: LLPersonModelCommon(std::string name, LLFolderViewModelInterface& root_view_model); + LLPersonModelCommon(std::string display_name, std::string suffix, LLFolderViewModelInterface& root_view_model); LLPersonModelCommon(LLFolderViewModelInterface& root_view_model); virtual ~LLPersonModelCommon(); @@ -51,7 +52,7 @@ public: virtual LLPointer<LLUIImage> getIcon() const { return NULL; } virtual LLPointer<LLUIImage> getOpenIcon() const { return getIcon(); } virtual LLFontGL::StyleFlags getLabelStyle() const { return LLFontGL::NORMAL; } - virtual std::string getLabelSuffix() const { return LLStringUtil::null; } + virtual std::string getLabelSuffix() const { return mLabelSuffix; } virtual BOOL isItemRenameable() const { return TRUE; } virtual BOOL renameItem(const std::string& new_name); virtual BOOL isItemMovable( void ) const { return FALSE; } @@ -101,6 +102,7 @@ public: protected: std::string mName; // Name of the person + std::string mLabelSuffix; std::string mSearchableName; // Name used in string matching for this person bool mPrevPassedAllFilters; LLUUID mID; @@ -133,7 +135,7 @@ private: class LLPersonModel : public LLPersonModelCommon { public: - LLPersonModel(const LLUUID& agent_id, const std::string display_name, LLFolderViewModelInterface& root_view_model); + LLPersonModel(const LLUUID& agent_id, const std::string display_name, const std::string suffix, LLFolderViewModelInterface& root_view_model); LLPersonModel(LLFolderViewModelInterface& root_view_model); LLUUID getAgentID(); |