diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-06 14:31:57 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-01-06 14:31:57 +0100 |
commit | 72e93b614bac42cd4a142b10d47e5b1673f19800 (patch) | |
tree | 985000a2d5572c83903247fec904df04fb8c64c3 /timers.h | |
parent | 16f037e3c23efadcc846fd7dc780b42036fabf01 (diff) | |
download | vdr-72e93b614bac42cd4a142b10d47e5b1673f19800.tar.gz vdr-72e93b614bac42cd4a142b10d47e5b1673f19800.tar.bz2 |
The "flags" of a timer are now handled as an unsigned integer value
Diffstat (limited to 'timers.h')
-rw-r--r-- | timers.h | 14 |
1 files changed, 7 insertions, 7 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.22 2006/01/03 11:45:26 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) @@ -49,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; } @@ -82,10 +82,10 @@ public: void SetPending(bool Pending); void SetInVpsMargin(bool InVpsMargin); void SetPriority(int Priority); - void SetFlags(int Flags); - void ClrFlags(int Flags); - void InvFlags(int Flags); - bool HasFlags(int Flags) const; + 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; |