diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-11-11 16:38:41 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-11-11 16:38:41 +0100 |
commit | 54a2e99c7b86cafa5ad350171f021589ef2a80df (patch) | |
tree | d51d12d8ba6365648aabee1c9e70c00bac3d8b46 /config.h | |
parent | 9c499caf87d6d8f3758a8968d35c71d33927cc0e (diff) | |
download | vdr-54a2e99c7b86cafa5ad350171f021589ef2a80df.tar.gz vdr-54a2e99c7b86cafa5ad350171f021589ef2a80df.tar.bz2 |
Implemented 'Commands' menu
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.31 2000/11/11 10:39:00 kls Exp $ + * $Id: config.h 1.32 2000/11/11 14:39:40 kls Exp $ */ #ifndef __CONFIG_H @@ -115,7 +115,7 @@ public: char *summary; cTimer(bool Instant = false); cTimer(const cEventInfo *EventInfo); - ~cTimer(); + virtual ~cTimer(); cTimer& operator= (const cTimer &Timer); const char *ToText(void); bool Parse(const char *s); @@ -132,6 +132,19 @@ public: static const char *PrintDay(int d); }; +class cCommand : public cListObject { +private: + char *title; + char *command; + static char *result; +public: + cCommand(void); + virtual ~cCommand(); + bool Parse(const char *s); + const char *Title(void) { return title; } + const char *Execute(void); + }; + template<class T> class cConfig : public cList<T> { private: char *fileName; @@ -217,11 +230,14 @@ public: cTimer *GetTimer(cTimer *Timer); }; +class cCommands : public cConfig<cCommand> {}; + extern int CurrentGroup; extern cChannels Channels; extern cTimers Timers; extern cKeys Keys; +extern cCommands Commands; class cSetup { private: |