summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-02-19 18:00:00 +0100
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-02-19 18:00:00 +0100
commitc475c637aba78366763cb122673ff836dd9e7e85 (patch)
tree84548734048499e913f200e1359acec4fa441fb0 /interface.h
downloadvdr-patch-lnbsharing-c475c637aba78366763cb122673ff836dd9e7e85.tar.gz
vdr-patch-lnbsharing-c475c637aba78366763cb122673ff836dd9e7e85.tar.bz2
Version 0.01 (Initial revision).vdr_osm-0.01
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/interface.h b/interface.h
new file mode 100644
index 0000000..e387ab9
--- /dev/null
+++ b/interface.h
@@ -0,0 +1,41 @@
+/*
+ * interface.h: Abstract user interface layer
+ *
+ * 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 $
+ */
+
+#ifndef __INTERFACE_H
+#define __INTERFACE_H
+
+#include "config.h"
+
+class cInterface {
+public:
+ enum { MaxCols = 5 };
+private:
+ int open;
+ int cols[MaxCols];
+ unsigned int GetCh(void);
+ void QueryKeys(void);
+ void Write(int x, int y, char *s);
+public:
+ cInterface(void);
+ void Init(void);
+ void Open(void);
+ void Close(void);
+ eKeys GetKey(void);
+ void Clear(void);
+ void SetCols(int *c);
+ void WriteText(int x, int y, char *s, bool Current = false);
+ void Info(char *s);
+ void Error(char *s);
+ void LearnKeys(void);
+ void DisplayChannel(int Number, char *Name);
+ };
+
+extern cInterface Interface;
+
+#endif //__INTERFACE_H