From a87e7625ddf38cd2e653a256899e9119505e92ac Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Feb 2002 13:05:05 +0100 Subject: Implemented the 'First day' parameter for repeating timers --- config.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index e2e2897f..60cfafde 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.95 2002/02/10 15:44:40 kls Exp $ + * $Id: config.h 1.96 2002/02/17 12:17:29 kls Exp $ */ #ifndef __CONFIG_H @@ -135,6 +135,7 @@ public: int priority; int lifetime; char file[MaxFileName]; + time_t firstday; char *summary; cTimer(bool Instant = false); cTimer(const cEventInfo *EventInfo); @@ -148,17 +149,19 @@ public: int GetMDay(time_t t); int GetWDay(time_t t); bool DayMatches(time_t t); - time_t IncDay(time_t t, int Days); - time_t SetTime(time_t t, int SecondsFromMidnight); + static time_t IncDay(time_t t, int Days); + static time_t SetTime(time_t t, int SecondsFromMidnight); char *SetFile(const char *File); bool Matches(time_t t = 0); time_t StartTime(void); time_t StopTime(void); void SetRecording(bool Recording); void SetPending(bool Pending); + void SkipToday(void); + const char *PrintFirstDay(void); static int TimeToInt(int t); - static int ParseDay(const char *s); - static const char *PrintDay(int d); + static int ParseDay(const char *s, time_t *FirstDay = NULL); + static const char *PrintDay(int d, time_t FirstDay = 0); }; class cCommand : public cListObject { -- cgit v1.2.3