summaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-12-24 15:53:53 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-12-24 15:53:53 +0100
commit186a3213d04c3a041148e14c18caa59f1a71b573 (patch)
treed92d8d007dc0fac4726d6d90794932d216ee5a02 /menu.h
parent60d56fceb9c1e05f314a0a4c05e47a663fb8c1af (diff)
downloadvdr-186a3213d04c3a041148e14c18caa59f1a71b573.tar.gz
vdr-186a3213d04c3a041148e14c18caa59f1a71b573.tar.bz2
The main menu now dynamically updates its contents
Diffstat (limited to 'menu.h')
-rw-r--r--menu.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/menu.h b/menu.h
index 729d3759..c285669a 100644
--- a/menu.h
+++ b/menu.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.h 1.77 2005/11/05 17:26:09 kls Exp $
+ * $Id: menu.h 1.78 2005/12/24 15:44:56 kls Exp $
*/
#ifndef __MENU_H
@@ -55,11 +55,18 @@ public:
class cMenuMain : public cOsdMenu {
private:
+ time_t lastDiskSpaceCheck;
+ int lastFreeMB;
bool replaying;
+ cOsdItem *stopReplayItem;
+ cOsdItem *cancelEditingItem;
+ cOsdItem *stopRecordingItem;
+ int recordControlsState;
static cOsdObject *pluginOsdObject;
void Set(void);
+ bool Update(bool Force = false);
public:
- cMenuMain(bool Replaying, eOSState State = osUnknown);
+ cMenuMain(eOSState State = osUnknown);
virtual eOSState ProcessKey(eKeys Key);
static cOsdObject *PluginOsdObject(void);
};
@@ -189,6 +196,7 @@ public:
class cRecordControls {
private:
static cRecordControl *RecordControls[];
+ static int state;
public:
static bool Start(cTimer *Timer = NULL, bool Pause = false);
static void Stop(const char *InstantId);
@@ -201,6 +209,8 @@ public:
static void ChannelDataModified(cChannel *Channel);
static bool Active(void);
static void Shutdown(void);
+ static void ChangeState(void) { state++; }
+ static bool StateChanged(int &State);
};
class cReplayControl : public cDvbPlayerControl {