summaryrefslogtreecommitdiff
path: root/epg.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-03-13 13:19:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-03-13 13:19:30 +0100
commitae5ee879d0b2fe661278be9337eeda88fd4c656f (patch)
treeb835a355eb8327b272be3257d40ca0fe389ecba1 /epg.h
parent3c0ea98ab3934f944d03919afacbcd33bff63be7 (diff)
downloadvdr-ae5ee879d0b2fe661278be9337eeda88fd4c656f.tar.gz
vdr-ae5ee879d0b2fe661278be9337eeda88fd4c656f.tar.bz2
The running status of a VPS event is now only taken seriously if that event has been seen within the last 30 seconds
Diffstat (limited to 'epg.h')
-rw-r--r--epg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/epg.h b/epg.h
index 88e66029..fc062157 100644
--- a/epg.h
+++ b/epg.h
@@ -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.19 2005/01/02 10:44:41 kls Exp $
+ * $Id: epg.h 1.20 2005/03/13 13:19:30 kls Exp $
*/
#ifndef __EPG_H
@@ -79,6 +79,7 @@ public:
int Duration(void) const { return duration; }
time_t Vps(void) const { return vps; }
time_t Seen(void) const { return seen; }
+ bool SeenWithin(int Seconds) const { return time(NULL) - seen < Seconds; }
bool HasTimer(void) const;
bool IsRunning(bool OrAboutToStart = false) const;
cString GetDateString(void) const;