diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-02-22 00:36:05 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-02-22 00:36:05 +0100 |
commit | 47365a8e84d30c44e12b5e5f6220c691a0bf074d (patch) | |
tree | 9108ccf4a6910dead6f8cdc43ba56c3c1bc3090e /timerconflict.h | |
parent | 7ce0e43c812f4a25048e47d135cec14307480fef (diff) | |
download | vdr-plugin-live-47365a8e84d30c44e12b5e5f6220c691a0bf074d.tar.gz vdr-plugin-live-47365a8e84d30c44e12b5e5f6220c691a0bf074d.tar.bz2 |
First implementation of a notification about timer conflicts in LIVE.
Based on the work of winni in epgsearch and its service interface.
Diffstat (limited to 'timerconflict.h')
-rw-r--r-- | timerconflict.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/timerconflict.h b/timerconflict.h index 07b82ff..80fba99 100644 --- a/timerconflict.h +++ b/timerconflict.h @@ -3,6 +3,8 @@ #include <list> +#include "stdext.h" + namespace vdrlive { // classes for timer conflict interface @@ -63,11 +65,21 @@ namespace vdrlive { class TimerConflictNotifier { public: - TimerConflictNotifier(time_t lastCheck = 0); + typedef std::tr1::shared_ptr<TimerConflicts> TimerConflictsPtr; + + TimerConflictNotifier(); + virtual ~TimerConflictNotifier(); - bool ShouldNotify() const; + bool ShouldNotify(); std::string Message() const; + TimerConflictsPtr const CurrentConflicts() const { return conflicts; } + + static int const CHECKINTERVAL = 30; // recheck value in seconds. + + private: + time_t lastCheck; + TimerConflictsPtr conflicts; }; // class TimerConflictNotifier } |