summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-03-11 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-03-11 18:00:00 +0100
commit6feebe674c09b65e43012bf439c201cfb65aa82c (patch)
tree85cf564cd0f48e44431a93ea2f22bba7fc924e98 /config.h
parentc475c637aba78366763cb122673ff836dd9e7e85 (diff)
downloadvdr-patch-lnbsharing-6feebe674c09b65e43012bf439c201cfb65aa82c.tar.gz
vdr-patch-lnbsharing-6feebe674c09b65e43012bf439c201cfb65aa82c.tar.bz2
Version 0.02vdr_osm-0.02
- Fixed compilation with only DEBUG_REMOTE=1. - Menus now use colors. - Support for "Red", "Green", "Yellow", "Blue" buttons. - Channels and Timers can now be added, deleted and moved. - Basic record/play file handling support (no actual record/playback yet).
Diffstat (limited to 'config.h')
-rw-r--r--config.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/config.h b/config.h
index 3abb7a1..51fd22e 100644
--- a/config.h
+++ b/config.h
@@ -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);
};