diff options
Diffstat (limited to 'timers.h')
-rw-r--r-- | timers.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.h 1.19 2005/05/07 10:36:35 kls Exp $ + * $Id: timers.h 1.23 2006/01/06 14:13:17 kls Exp $ */ #ifndef __TIMERS_H @@ -29,7 +29,7 @@ class cTimer : public cListObject { private: mutable time_t startTime, stopTime; bool recording, pending, inVpsMargin; - int flags; + uint flags; cChannel *channel; mutable time_t day; ///< midnight of the day this timer shall hit, or of the first day it shall hit in case of a repeating timer int weekdays; ///< bitmask, lowest bits: SSFTWTM (the 'M' is the LSB) @@ -39,10 +39,9 @@ private: int lifetime; char file[MaxFileName]; char *summary; - const cSchedule *schedule; const cEvent *event; public: - cTimer(bool Instant = false, bool Pause = false); + cTimer(bool Instant = false, bool Pause = false, cChannel *Channel = NULL); cTimer(const cEvent *Event); virtual ~cTimer(); cTimer& operator= (const cTimer &Timer); @@ -50,7 +49,7 @@ public: bool Recording(void) const { return recording; } bool Pending(void) const { return pending; } bool InVpsMargin(void) const { return inVpsMargin; } - int Flags(void) const { return flags; } + uint Flags(void) const { return flags; } const cChannel *Channel(void) const { return channel; } time_t Day(void) const { return day; } int WeekDays(void) const { return weekdays; } @@ -78,14 +77,15 @@ public: bool Expired(void) const; time_t StartTime(void) const; time_t StopTime(void) const; - void SetEvent(const cSchedule *Schedule, const cEvent *Event); + void SetEvent(const cEvent *Event); void SetRecording(bool Recording); void SetPending(bool Pending); void SetInVpsMargin(bool InVpsMargin); - void SetFlags(int Flags); - void ClrFlags(int Flags); - void InvFlags(int Flags); - bool HasFlags(int Flags) const; + void SetPriority(int Priority); + void SetFlags(uint Flags); + void ClrFlags(uint Flags); + void InvFlags(uint Flags); + bool HasFlags(uint Flags) const; void Skip(void); void OnOff(void); cString PrintFirstDay(void) const; |