summaryrefslogtreecommitdiff
path: root/indra/newview/lldonotdisturbnotificationstorage.h
diff options
context:
space:
mode:
authormaxim@mnikolenko <maxim@mnikolenko>2013-01-17 15:04:30 +0200
committermaxim@mnikolenko <maxim@mnikolenko>2013-01-17 15:04:30 +0200
commit05e063836abb20d487dfd4175a09413b0cea0e38 (patch)
tree13628e331344eb085d930a0217317f220dd730eb /indra/newview/lldonotdisturbnotificationstorage.h
parentb0774ec9147ddc2c2e5e93e5a74c929c802c32af (diff)
parent2f551019921ca12f9dd94f474a4d684e04d73dd7 (diff)
Merge
Diffstat (limited to 'indra/newview/lldonotdisturbnotificationstorage.h')
-rw-r--r--indra/newview/lldonotdisturbnotificationstorage.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/indra/newview/lldonotdisturbnotificationstorage.h b/indra/newview/lldonotdisturbnotificationstorage.h
index 60bcd89ec3..fd03b71357 100644
--- a/indra/newview/lldonotdisturbnotificationstorage.h
+++ b/indra/newview/lldonotdisturbnotificationstorage.h
@@ -28,12 +28,26 @@
#define LL_LLDONOTDISTURBNOTIFICATIONSTORAGE_H
#include "llerror.h"
+#include "lleventtimer.h"
#include "llnotifications.h"
#include "llnotificationstorage.h"
#include "llsingleton.h"
class LLSD;
+class LLDoNotDisturbNotificationStorageTimer : public LLEventTimer
+{
+public:
+ LLDoNotDisturbNotificationStorageTimer();
+ ~LLDoNotDisturbNotificationStorageTimer();
+
+public:
+ void startTimer();
+ void stopTimer();
+ bool isRunning();
+ BOOL tick();
+};
+
class LLDoNotDisturbNotificationStorage : public LLSingleton<LLDoNotDisturbNotificationStorage>, public LLNotificationStorage
{
LOG_CLASS(LLDoNotDisturbNotificationStorage);
@@ -42,13 +56,19 @@ public:
~LLDoNotDisturbNotificationStorage();
void initialize();
-
+ bool getDirty();
+ void resetDirty();
void saveNotifications();
void loadNotifications();
+ void updateNotifications();
+ void removeIMNotification(const LLUUID& session_id);
protected:
private:
+ bool mDirty;
+ LLDoNotDisturbNotificationStorageTimer mTimer;
+
LLNotificationChannelPtr getCommunicationChannel() const;
bool onChannelChanged(const LLSD& pPayload);
};