diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-03-20 13:12:07 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-03-20 13:12:07 +0100 |
commit | 14a38b1dba6f6cc9d0ec4dc46e001b7367616073 (patch) | |
tree | f09ba7c0aee8d338f21716c57d83c76ee18ca2c8 /epg.h | |
parent | 456ded045c228accff613c0ebaf7833d8164e3ec (diff) | |
download | vdr-14a38b1dba6f6cc9d0ec4dc46e001b7367616073.tar.gz vdr-14a38b1dba6f6cc9d0ec4dc46e001b7367616073.tar.bz2 |
Improved falling back to normal recording if the VPS data hasn't been seen for more than 30 seconds
Diffstat (limited to 'epg.h')
-rw-r--r-- | epg.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.h 1.20 2005/03/13 13:19:30 kls Exp $ + * $Id: epg.h 1.21 2005/03/20 12:32:36 kls Exp $ */ #ifndef __EPG_H @@ -111,11 +111,15 @@ private: cList<cEvent> events; bool hasRunning; time_t modified; + time_t presentSeen; public: cSchedule(tChannelID ChannelID); tChannelID ChannelID(void) const { return channelID; } time_t Modified(void) const { return modified; } + time_t PresentSeen(void) const { return presentSeen; } + bool PresentSeenWithin(int Seconds) const { return time(NULL) - presentSeen < Seconds; } void SetModified(void) { modified = time(NULL); } + void SetPresentSeen(void) { presentSeen = time(NULL); } void SetRunningStatus(cEvent *Event, int RunningStatus, cChannel *Channel = NULL); void ClrRunningStatus(cChannel *Channel = NULL); void ResetVersions(void); |