summaryrefslogtreecommitdiff
path: root/timerconflict.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-02-22 00:36:05 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-02-22 00:36:05 +0100
commit47365a8e84d30c44e12b5e5f6220c691a0bf074d (patch)
tree9108ccf4a6910dead6f8cdc43ba56c3c1bc3090e /timerconflict.h
parent7ce0e43c812f4a25048e47d135cec14307480fef (diff)
downloadvdr-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.h16
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
}