diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-03-11 11:22:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-03-11 11:22:37 +0100 |
commit | 571686d90996968c01a8bc560659e364efab2942 (patch) | |
tree | 85cf564cd0f48e44431a93ea2f22bba7fc924e98 /config.h | |
parent | 4a9d9c5876cde9f21ccd165a7630727e6aca576a (diff) | |
download | vdr-571686d90996968c01a8bc560659e364efab2942.tar.gz vdr-571686d90996968c01a8bc560659e364efab2942.tar.bz2 |
Menu uses colors; support for RGYB buttons; fixed DEBUG_REMOTE; Add, Del and Move for channels and timers; basic record/play file handling0.0.2
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'osm.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.1 2000/02/19 13:36:48 kls Exp $ + * $Id: config.h 1.2 2000/03/05 14:58:23 kls Exp $ */ #ifndef __CONFIG_H @@ -12,6 +12,7 @@ #include <stdio.h> #include <string.h> +#include <time.h> #include "tools.h" #define MaxBuffer 1000 @@ -25,6 +26,10 @@ enum eKeys { // "Up" and "Down" must be the first two keys! kLeft, kRight, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9, + kRed, + kGreen, + kYellow, + kBlue, kNone }; @@ -60,6 +65,7 @@ public: int vpid; int apid; cChannel(void); + cChannel(const cChannel *Channel); bool Parse(char *s); bool Save(FILE *f); bool Switch(void); @@ -67,8 +73,11 @@ public: }; class cTimer : public cListObject { +private: + time_t startTime, stopTime; public: enum { MaxFileName = 256 }; + bool recording; int active; int channel; int day; @@ -82,9 +91,14 @@ public: cTimer(void); bool Parse(char *s); bool Save(FILE *f); + bool IsSingleEvent(void); bool Matches(void); + time_t StartTime(void); + time_t StopTime(void); + void SetRecording(bool Recording); static cTimer *GetMatch(void); static int TimeToInt(int t); + static time_t Day(time_t t); static int ParseDay(char *s); static char *PrintDay(int d); }; |