summaryrefslogtreecommitdiff
path: root/switchtimer.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-07-09 00:17:42 +0200
committerlouis <louis.braun@gmx.de>2013-07-09 00:17:42 +0200
commit2a7a011055a44516ec981e525776394a8c04dcfe (patch)
tree55c9828c7b619622ec36da3f4b41318ed6c85ae0 /switchtimer.h
parent6da4b610d98cafe7c20555c926359d7f89347c76 (diff)
downloadvdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.gz
vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.bz2
Version 0.0.6
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