summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-04-24 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-04-24 18:00:00 +0200
commit85b8e41e8bb16e4e66561768026456ec5f0ee276 (patch)
treedd52f93f8db69b395ed2170d641a3e9d574ed039 /interface.h
parent37250a0568d5b1d689d5c59f983e9be228ed49c2 (diff)
downloadvdr-patch-lnbsharing-vdr-0.04.tar.gz
vdr-patch-lnbsharing-vdr-0.04.tar.bz2
Version 0.04vdr-0.04
- Changed name from 'osm' to 'vdr' to avoid mixups with the 'oms' program that appears to be in use with DVD replay. - Implemented a channel display in the top menu line. - Implemented replay progress display (press "Ok" when replaying to bring it up). - Implemented direct channel selecting by pressing the numeric keys. - Added several 'const' keywords to please stricter compilers. - The repeat function for the remote control no longer adapts dynamically to the timing of the RCU (this sometimes caused the repeat function to kick in too early). - Channel selection is now blocked when recording or replaying. - Improved process handling.
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/interface.h b/interface.h
index 1e5329d..eb4e76b 100644
--- a/interface.h
+++ b/interface.h
@@ -1,10 +1,10 @@
/*
* interface.h: Abstract user interface layer
*
- * See the main source file 'osm.c' for copyright information and
+ * See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.h 1.3 2000/03/19 14:03:28 kls Exp $
+ * $Id: interface.h 1.7 2000/04/24 09:44:25 kls Exp $
*/
#ifndef __INTERFACE_H
@@ -19,16 +19,17 @@ public:
private:
int open;
int cols[MaxCols];
- unsigned int GetCh(void);
+ eKeys keyFromWait;
+ unsigned int GetCh(bool Wait = true);
void QueryKeys(void);
void HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvbColor BgColor);
- eKeys Wait(int Seconds = 1);
+ eKeys Wait(int Seconds = 1, bool KeepChar = false);
public:
cInterface(void);
void Init(void);
- void Open(void);
+ void Open(int NumCols = MenuColumns, int NumLines = MenuLines);
void Close(void);
- eKeys GetKey(void);
+ eKeys GetKey(bool Wait = true);
void Clear(void);
void ClearEol(int x, int y, eDvbColor Color = clrBackground);
void SetCols(int *c);
@@ -41,7 +42,7 @@ public:
bool Confirm(const char *s);
void Help(const char *Red, const char *Green = NULL, const char *Yellow = NULL, const char *Blue = NULL);
void LearnKeys(void);
- void DisplayChannel(int Number, const char *Name);
+ void DisplayChannel(int Number, const char *Name = NULL);
};
extern cInterface Interface;