summaryrefslogtreecommitdiff
path: root/interface.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 /interface.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 'interface.h')
-rw-r--r--interface.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/interface.h b/interface.h
index e387ab9..9322cf3 100644
--- a/interface.h
+++ b/interface.h
@@ -4,13 +4,14 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.h 1.1 2000/02/19 13:36:48 kls Exp $
+ * $Id: interface.h 1.2 2000/02/27 14:54:02 kls Exp $
*/
#ifndef __INTERFACE_H
#define __INTERFACE_H
#include "config.h"
+#include "dvbapi.h"
class cInterface {
public:
@@ -20,7 +21,8 @@ private:
int cols[MaxCols];
unsigned int GetCh(void);
void QueryKeys(void);
- void Write(int x, int y, char *s);
+ void HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvbColor BgColor);
+ eKeys Wait(int Seconds = 1);
public:
cInterface(void);
void Init(void);
@@ -28,12 +30,18 @@ public:
void Close(void);
eKeys GetKey(void);
void Clear(void);
+ void ClearEol(int x, int y, eDvbColor Color = clrBackground);
void SetCols(int *c);
- void WriteText(int x, int y, char *s, bool Current = false);
- void Info(char *s);
- void Error(char *s);
+ void Write(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
+ void WriteText(int x, int y, const char *s, bool Current = false);
+ void Title(const char *s);
+ void Status(const char *s, eDvbColor FgColor = clrBlack, eDvbColor BgColor = clrCyan);
+ void Info(const char *s);
+ void Error(const char *s);
+ 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, char *Name);
+ void DisplayChannel(int Number, const char *Name);
};
extern cInterface Interface;