From f13ded672b7fe1836299ca6d7fc2910c0c9c1109 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 29 Apr 2000 15:57:42 +0200 Subject: Better encapsulation of user interaction --- osd.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'osd.h') diff --git a/osd.h b/osd.h index 99821b87..11145319 100644 --- a/osd.h +++ b/osd.h @@ -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 { +class cOsdBase { +public: + cOsdBase(void) {} + virtual ~cOsdBase() {} + virtual eOSState ProcessKey(eKeys Key) = 0; + }; + +class cOsdMenu : public cOsdBase, public cList { private: char *title; int cols[cInterface::MaxCols]; -- cgit v1.2.3