diff options
author | Jonathan Yap <none@none> | 2011-03-19 16:29:32 -0400 |
---|---|---|
committer | Jonathan Yap <none@none> | 2011-03-19 16:29:32 -0400 |
commit | fbd241da54ad6017825b59c5b0c71086d8b8957a (patch) | |
tree | 34051dba97afece2416f25954080011d922d910e /indra/newview/llrecentpeople.h | |
parent | 834d0f1ed612c8644e642103096daf7f0b0f44c9 (diff) | |
parent | 1a7369408c0b2cd15dbdc79d045f3347a8ab47d1 (diff) |
STORM-1019 Resolve merge conflicts
Diffstat (limited to 'indra/newview/llrecentpeople.h')
-rw-r--r-- | indra/newview/llrecentpeople.h | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/indra/newview/llrecentpeople.h b/indra/newview/llrecentpeople.h index 852a92ff80..d0d6376867 100644 --- a/indra/newview/llrecentpeople.h +++ b/indra/newview/llrecentpeople.h @@ -58,9 +58,15 @@ public: * Add specified avatar to the list if it's not there already. * * @param id avatar to add. + * + * @param userdata additional information about last interaction party. + * For example when last interaction party is not an avatar + * but an avaline caller, additional info (such as phone + * number, session id and etc.) should be added. + * * @return false if the avatar is in the list already, true otherwise */ - bool add(const LLUUID& id); + bool add(const LLUUID& id, const LLSD& userdata = LLSD().with("date", LLDate::now())); /** * @param id avatar to search. @@ -75,7 +81,25 @@ public: */ void get(uuid_vec_t& result) const; - const LLDate& getDate(const LLUUID& id) const; + /** + * Returns last interaction time with specified participant + * + */ + const LLDate getDate(const LLUUID& id) const; + + /** + * Returns data about specified participant + * + * @param id identifier of specific participant + */ + const LLSD& getData(const LLUUID& id) const; + + /** + * Checks whether specific participant is an avaline caller + * + * @param id identifier of specific participant + */ + bool isAvalineCaller(const LLUUID& id) const; /** * Set callback to be called when the list changed. @@ -92,7 +116,10 @@ public: /*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata); private: - typedef std::map<LLUUID, LLDate> recent_people_t; + + const LLUUID& getIDByPhoneNumber(const LLSD& userdata); + + typedef std::map<LLUUID, LLSD> recent_people_t; recent_people_t mPeople; signal_t mChangedSignal; }; |