summaryrefslogtreecommitdiff
path: root/indra/newview/llexperiencelog.h
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2014-03-20 16:32:31 -0700
committerdolphin <dolphin@lindenlab.com>2014-03-20 16:32:31 -0700
commitdba034ee100dae4b62ddf12523835a413a25f189 (patch)
treeeea5d465a7f11d1073b183dc42975ad379503302 /indra/newview/llexperiencelog.h
parentb2591ca63c498ab606bf595e0b2e729e76caea24 (diff)
Experience log panel
Diffstat (limited to 'indra/newview/llexperiencelog.h')
-rw-r--r--indra/newview/llexperiencelog.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/indra/newview/llexperiencelog.h b/indra/newview/llexperiencelog.h
index 73d82f4fad..26ffab49f9 100644
--- a/indra/newview/llexperiencelog.h
+++ b/indra/newview/llexperiencelog.h
@@ -29,5 +29,49 @@
#ifndef LL_LLEXPERIENCELOG_H
#define LL_LLEXPERIENCELOG_H
+#include "llsingleton.h"
+
+class LLExperienceLog : public LLSingleton<LLExperienceLog>
+{
+public:
+ void initialize();
+
+ U32 getMaxDays() const { return mMaxDays; }
+ void setMaxDays(U32 val);
+
+ bool getNotifyNewEvent() const { return mNotifyNewEvent; }
+ void setNotifyNewEvent(bool val) { mNotifyNewEvent = val; }
+
+ U32 getPageSize() const { return mPageSize; }
+ void setPageSize(U32 val) { mPageSize = val; }
+
+ const LLSD& getEvents()const;
+ void clear();
+
+ virtual ~LLExperienceLog();
+
+ static void notify(LLSD& message);
+ static std::string getFilename();
+ static std::string getPermissionString(const LLSD& message, const std::string& base);
+protected:
+ LLExperienceLog();
+ void handleExperienceMessage(LLSD& message);
+
+
+ void loadEvents();
+ void saveEvents();
+ void eraseExpired();
+
+ LLSD mEvents;
+ U32 mMaxDays;
+ U32 mPageSize;
+ bool mNotifyNewEvent;
+
+ friend class LLExperienceLogDispatchHandler;
+ friend class LLSingleton<LLExperienceLog>;
+};
+
+
+
#endif // LL_LLEXPERIENCELOG_H