summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-06 13:20:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-06 13:20:07 +0200
commit0f8495f1d8deff9560676cd46a8284007d291c44 (patch)
tree48cff3e04be0562e26d60ea704607e0ea07b678a /timers.h
parent15007f76cf18885ca611a2633e29bed26790acf1 (diff)
downloadvdr-0f8495f1d8deff9560676cd46a8284007d291c44.tar.gz
vdr-0f8495f1d8deff9560676cd46a8284007d291c44.tar.bz2
Added a mechanism to defer timer handling in case of problems
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/timers.h b/timers.h
index a18f9f87..1d733ee0 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 1.31 2008/02/16 14:33:23 kls Exp $
+ * $Id: timers.h 2.1 2011/08/06 12:59:32 kls Exp $
*/
#ifndef __TIMERS_H
@@ -29,6 +29,7 @@ class cTimer : public cListObject {
private:
mutable time_t startTime, stopTime;
time_t lastSetEvent;
+ mutable time_t deferred; ///< Matches(time_t, ...) will return false if the current time is before this value
bool recording, pending, inVpsMargin;
uint flags;
cChannel *channel;
@@ -62,6 +63,7 @@ public:
const char *File(void) const { return file; }
time_t FirstDay(void) const { return weekdays ? day : 0; }
const char *Aux(void) const { return aux; }
+ time_t Deferred(void) const { return deferred; }
cString ToText(bool UseChannelID = false) const;
cString ToDescr(void) const;
const cEvent *Event(void) const { return event; }
@@ -85,6 +87,7 @@ public:
void SetPending(bool Pending);
void SetInVpsMargin(bool InVpsMargin);
void SetPriority(int Priority);
+ void SetDeferred(int Seconds);
void SetFlags(uint Flags);
void ClrFlags(uint Flags);
void InvFlags(uint Flags);