diff options
author | louis <louis.braun@gmx.de> | 2015-03-12 17:22:16 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-03-12 17:22:16 +0100 |
commit | 3cc8e78e1bf00e16b49520ac416b74b5fd73c906 (patch) | |
tree | 4425c4eb4b9833d927aae2f65d0f3a99d3792f83 /switchtimer.h | |
download | vdr-plugin-tvguideng-3cc8e78e1bf00e16b49520ac416b74b5fd73c906.tar.gz vdr-plugin-tvguideng-3cc8e78e1bf00e16b49520ac416b74b5fd73c906.tar.bz2 |
Version 0.0.10.0.1
Diffstat (limited to 'switchtimer.h')
-rw-r--r-- | switchtimer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/switchtimer.h b/switchtimer.h new file mode 100644 index 0000000..09ebe88 --- /dev/null +++ b/switchtimer.h @@ -0,0 +1,31 @@ +#ifndef __TVGUIDE_SWITCHTIMER_H +#define __TVGUIDE_SWITCHTIMER_H + +#include <vdr/plugin.h> + +class cSwitchTimer : public cListObject { +public: + tEventID eventID; + time_t startTime; + tChannelID channelID; + int switchMinsBefore; + int announceOnly; + cSwitchTimer(void); + cSwitchTimer(const cEvent* Event); + bool Parse(const char *s); + void SetEventID(tEventID eventID) { this->eventID = eventID; }; + void SetStartTime(time_t startTime) { this->startTime = startTime; }; +}; + +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 |