From ae8fe25312b6b0ec18fd0c6c2a275f334ada02db Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 26 Aug 2001 18:00:00 +0200 Subject: Version 0.93 - The menus and the channel display now show the current date and time. - The new Setup parameter MaxVideoFileSize can be used to customize the maximum size of the recorded video files. - Fixed a bug in handling repeating timers that record over midnight (the calculation of matching timers has been completely rewritten). - Timers that are currently recording are now marked with '#' in the "Timers" menu. - Timers are now sorted in the "Timers" menu, showing the sequence in which they will be recording. This can be disabled in the "Setup" menu. Note that the "Mark" button doesn't work if timers are displayed sorted. --- config.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index ce77598..70f3574 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.61 2001/08/17 13:00:48 kls Exp $ + * $Id: config.h 1.66 2001/08/26 14:46:53 kls Exp $ */ #ifndef __CONFIG_H @@ -19,7 +19,7 @@ #include "eit.h" #include "tools.h" -#define VDRVERSION "0.92" +#define VDRVERSION "0.93" #define MaxBuffer 10000 @@ -137,18 +137,22 @@ public: cTimer(const cEventInfo *EventInfo); virtual ~cTimer(); cTimer& operator= (const cTimer &Timer); + bool operator< (const cTimer &Timer); const char *ToText(void); bool Parse(const char *s); bool Save(FILE *f); bool IsSingleEvent(void); + 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); bool Matches(time_t t = 0); time_t StartTime(void); time_t StopTime(void); void SetRecording(bool Recording); void SetPending(bool Pending); - static cTimer *GetMatch(void); static int TimeToInt(int t); - static time_t Day(time_t t); static int ParseDay(const char *s); static const char *PrintDay(int d); }; @@ -251,6 +255,8 @@ public: class cTimers : public cConfig { public: cTimer *GetTimer(cTimer *Timer); + cTimer *GetMatch(void); + cTimer *GetNextActiveTimer(void); }; class cCommands : public cConfig {}; @@ -282,11 +288,13 @@ public: int EPGScanTimeout; int EPGBugfixLevel; int SVDRPTimeout; + int SortTimers; int PrimaryLimit; int DefaultPriority, DefaultLifetime; int VideoFormat; int ChannelInfoPos; int OSDwidth, OSDheight; + int MaxVideoFileSize; int CurrentChannel; cSetup(void); bool Load(const char *FileName); -- cgit v1.2.3