diff options
author | James Cook <james@lindenlab.com> | 2010-05-19 11:23:29 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-05-19 11:23:29 -0700 |
commit | 31220ceffbacdf0f14929b735b0c9e250e1225ca (patch) | |
tree | 920ce90aa50997ce1b540cb14e5fde62a53c7e16 /indra/llcommon/llavatarname.h | |
parent | d822206a48633e03f7456663d7d7d82b73ba209f (diff) |
DEV-50013 Viewer reads legacy first/last name from People API
Useful for voice subsystem and muting subsystem.
Diffstat (limited to 'indra/llcommon/llavatarname.h')
-rw-r--r-- | indra/llcommon/llavatarname.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/llcommon/llavatarname.h b/indra/llcommon/llavatarname.h index 39071ec4c7..fb5cb277a2 100644 --- a/indra/llcommon/llavatarname.h +++ b/indra/llcommon/llavatarname.h @@ -53,14 +53,31 @@ public: // When display names are disabled returns just "James Linden" std::string getNameAndSLID() const; + // Returns "James Linden" or "bobsmith123 Resident" for backwards + // compatibility with systems like voice and muting + // *TODO: Eliminate this in favor of username only + std::string getLegacyName() const; + // "bobsmith123" or "james.linden", US-ASCII only std::string mUsername; // "Jose' Sanchez" or "James Linden", UTF-8 encoded Unicode // Contains data whether or not user has explicitly set - // a display name; may duplicate their SLID. + // a display name; may duplicate their username. std::string mDisplayName; + // For "James Linden", "James" + // For "bobsmith123", "bobsmith123" + // Used to communicate with legacy systems like voice and muting which + // rely on old-style names. + // *TODO: Eliminate this in favor of username only + std::string mLegacyFirstName; + + // For "James Linden", "Linden" + // For "bobsmith123", "Resident" + // see above for rationale + std::string mLegacyLastName; + // If true, both display name and SLID were generated from // a legacy first and last name, like "James Linden (james.linden)" bool mIsDisplayNameDefault; |