summaryrefslogtreecommitdiff
path: root/switchtimer.h
diff options
context:
space:
mode:
Diffstat (limited to 'switchtimer.h')
-rw-r--r--switchtimer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/switchtimer.h b/switchtimer.h
new file mode 100644
index 0000000..8958b44
--- /dev/null
+++ b/switchtimer.h
@@ -0,0 +1,30 @@
+#ifndef __TVGUIDE_SWITCHTIMER_H
+#define __TVGUIDE_SWITCHTIMER_H
+
+#include <vdr/plugin.h>
+
+class cSwitchTimer : public cListObject
+{
+public:
+ tEventID eventID;
+ time_t startTime;
+ tChannelID channelID;
+
+ cSwitchTimer(void);
+ cSwitchTimer(const cEvent* Event);
+ bool Parse(const char *s);
+};
+
+class cSwitchTimers : public cConfig<cSwitchTimer>, public cMutex
+{
+public:
+ cSwitchTimers(void) {}
+ ~cSwitchTimers(void) {}
+ bool EventInSwitchList(const cEvent* event);
+ bool ChannelInSwitchList(const cChannel* channel);
+ void DeleteSwitchTimer(const cEvent *event);
+};
+
+extern cSwitchTimers SwitchTimers;
+
+#endif //__TVGUIDE_SWITCHTIMER_H