From 3cc8e78e1bf00e16b49520ac416b74b5fd73c906 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 12 Mar 2015 17:22:16 +0100 Subject: Version 0.0.1 --- switchtimer.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 switchtimer.h (limited to 'switchtimer.h') 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 + +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, 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 -- cgit v1.2.3