summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/config.h b/config.h
index 679e88ed..c6f6ba99 100644
--- a/config.h
+++ b/config.h
@@ -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: