summaryrefslogtreecommitdiff
path: root/indra/llmessage/llexperiencecache.h
diff options
context:
space:
mode:
authordolphin@dolphin-THINK.lindenlab.com <dolphin@dolphin-THINK.lindenlab.com>2012-11-19 08:06:42 -0800
committerdolphin@dolphin-THINK.lindenlab.com <dolphin@dolphin-THINK.lindenlab.com>2012-11-19 08:06:42 -0800
commit2cde962d5db94baf860eb94fecaf9671548b2c53 (patch)
treee0be2ff2ec0a6812ed4bcff88bada3dae85adec8 /indra/llmessage/llexperiencecache.h
parent723ab8b108beb7fc140b8be163d59b5dfa896ca8 (diff)
Test populating the experience keys UI with avatar name data.
Diffstat (limited to 'indra/llmessage/llexperiencecache.h')
-rw-r--r--indra/llmessage/llexperiencecache.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/indra/llmessage/llexperiencecache.h b/indra/llmessage/llexperiencecache.h
index 6be51b039e..799cdea13a 100644
--- a/indra/llmessage/llexperiencecache.h
+++ b/indra/llmessage/llexperiencecache.h
@@ -32,7 +32,20 @@
#include <string>
class LLUUID;
-class LLExperienceData;
+
+
+class LLExperienceData
+{
+public:
+ bool fromLLSD(const LLSD& sd);
+ LLSD asLLSD() const;
+
+
+ std::string mDisplayName;
+ std::string mDescription;
+};
+
+
namespace LLExperienceCache
{
@@ -41,12 +54,18 @@ namespace LLExperienceCache
void idle();
+ void exportFile(std::ostream& ostr);
+ void importFile(std::istream& istr);
+ void initClass(bool running);
void erase(const LLUUID& agent_id);
void fetch(const LLUUID& agent_id);
void insert(const LLUUID& agent_id, const LLExperienceData& experience_data);
bool get(const LLUUID& agent_id, LLExperienceData* experience_data);
+ typedef std::map<LLUUID, LLExperienceData> cache_t;
+
+ const cache_t& getCached();
};
#endif // LL_LLEXPERIENCECACHE_H