summaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-05-01 16:29:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-05-01 16:29:46 +0200
commiteff7aa4a3d2247ee3c44031e6bf5d745723cc5ce (patch)
tree398ba3859a89204ba24fe1e47ca5eab815745ed1 /menu.h
parentf7ac74ede445b099e8fa97a15674f2b4ecde279a (diff)
downloadvdr-eff7aa4a3d2247ee3c44031e6bf5d745723cc5ce.tar.gz
vdr-eff7aa4a3d2247ee3c44031e6bf5d745723cc5ce.tar.bz2
Prepared for more than one DVB card
Diffstat (limited to 'menu.h')
-rw-r--r--menu.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/menu.h b/menu.h
index 47bc993b..6ba080cb 100644
--- a/menu.h
+++ b/menu.h
@@ -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);