vdr-plugin-tvguide/switchtimer.h

32 lines
855 B
C
Raw Normal View History

2013-07-09 00:17:42 +02:00
#ifndef __TVGUIDE_SWITCHTIMER_H
#define __TVGUIDE_SWITCHTIMER_H
#include <vdr/plugin.h>
class cSwitchTimer : public cListObject {
2013-07-09 00:17:42 +02:00
public:
tEventID eventID;
time_t startTime;
tChannelID channelID;
int switchMinsBefore;
int announceOnly;
2013-07-09 00:17:42 +02:00
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; };
2013-07-09 00:17:42 +02:00
};
class cSwitchTimers : public cConfig<cSwitchTimer>, public cMutex {
2013-07-09 00:17:42 +02:00
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