diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-04-29 15:57:42 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-04-29 15:57:42 +0200 |
commit | f13ded672b7fe1836299ca6d7fc2910c0c9c1109 (patch) | |
tree | 2a353d944b8dca194065a4e69601ba46b6c7d8f5 /osd.h | |
parent | 20ad6d5a050fc0ad386a55ac62f26995fa4b1aca (diff) | |
download | vdr-f13ded672b7fe1836299ca6d7fc2910c0c9c1109.tar.gz vdr-f13ded672b7fe1836299ca6d7fc2910c0c9c1109.tar.bz2 |
Better encapsulation of user interaction
Diffstat (limited to 'osd.h')
-rw-r--r-- | osd.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.h 1.4 2000/04/24 09:44:32 kls Exp $ + * $Id: osd.h 1.5 2000/04/29 14:45:47 kls Exp $ */ #ifndef __OSD_H @@ -17,11 +17,12 @@ #define MAXOSDITEMS 9 enum eOSState { osUnknown, + osMenu, osContinue, - osProcessed, osChannels, osTimer, osRecordings, + osReplay, osBack, osEnd, }; @@ -44,7 +45,14 @@ public: virtual eOSState ProcessKey(eKeys Key); }; -class cOsdMenu : public cList<cOsdItem> { +class cOsdBase { +public: + cOsdBase(void) {} + virtual ~cOsdBase() {} + virtual eOSState ProcessKey(eKeys Key) = 0; + }; + +class cOsdMenu : public cOsdBase, public cList<cOsdItem> { private: char *title; int cols[cInterface::MaxCols]; |