From 47365a8e84d30c44e12b5e5f6220c691a0bf074d Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 22 Feb 2008 00:36:05 +0100 Subject: First implementation of a notification about timer conflicts in LIVE. Based on the work of winni in epgsearch and its service interface. --- timerconflict.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'timerconflict.h') diff --git a/timerconflict.h b/timerconflict.h index 07b82ff..80fba99 100644 --- a/timerconflict.h +++ b/timerconflict.h @@ -3,6 +3,8 @@ #include +#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 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 } -- cgit v1.2.3