diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-05-01 16:29:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-05-01 16:29:46 +0200 |
commit | eff7aa4a3d2247ee3c44031e6bf5d745723cc5ce (patch) | |
tree | 398ba3859a89204ba24fe1e47ca5eab815745ed1 /menu.h | |
parent | f7ac74ede445b099e8fa97a15674f2b4ecde279a (diff) | |
download | vdr-eff7aa4a3d2247ee3c44031e6bf5d745723cc5ce.tar.gz vdr-eff7aa4a3d2247ee3c44031e6bf5d745723cc5ce.tar.bz2 |
Prepared for more than one DVB card
Diffstat (limited to 'menu.h')
-rw-r--r-- | menu.h | 32 |
1 files changed, 25 insertions, 7 deletions
@@ -4,34 +4,52 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.h 1.8 2000/04/30 10:58:49 kls Exp $ + * $Id: menu.h 1.9 2000/05/01 15:16:23 kls Exp $ */ #ifndef _MENU_H #define _MENU_H +#define _GNU_SOURCE + +#include "dvbapi.h" #include "osd.h" class cMenuMain : public cOsdMenu { +private: + time_t lastActivity; public: - cMenuMain(bool Recording); + cMenuMain(bool Replaying); virtual eOSState ProcessKey(eKeys Key); }; -class cRecordControl : public cOsdBase { +class cRecordControl { private: + cDvbApi *dvbApi; cTimer *timer; - bool isInstant; + char *instantId; public: - cRecordControl(cTimer *Timer = NULL); + cRecordControl(cDvbApi *DvbApi, cTimer *Timer = NULL); virtual ~cRecordControl(); - virtual eOSState ProcessKey(eKeys Key); + bool Process(void); void Stop(bool KeepInstant = false); - bool IsInstant(void) { return isInstant; } + bool IsInstant(void) { return instantId; } + const char *InstantId(void) { return instantId; } + }; + +class cRecordControls { +private: + static cRecordControl *RecordControls[MAXDVBAPI]; +public: + static bool Start(cTimer *Timer = NULL); + static void Stop(const char *InstantId); + static const char *GetInstantId(const char *LastInstantId); + static void Process(void); }; class cReplayControl : public cOsdBase { private: + cDvbApi *dvbApi; bool visible, shown; void Show(void); void Hide(void); |