diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-10-14 10:41:20 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-10-14 10:41:20 +0200 |
commit | 93d2941ebe777550559b4c27bfc3b04806d684f7 (patch) | |
tree | 764f54f643ea657bd28cea9d0dbc1ed8114f8ee6 /keys.h | |
parent | 7bed3fd6ba154c108872f357a9e8e247122da411 (diff) | |
download | vdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.gz vdr-93d2941ebe777550559b4c27bfc3b04806d684f7.tar.bz2 |
Keys from expanded key macros are now put into the front of the key queue
Diffstat (limited to 'keys.h')
-rw-r--r-- | keys.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: keys.h 1.9 2006/04/15 13:56:03 kls Exp $ + * $Id: keys.h 1.10 2006/10/14 10:41:20 kls Exp $ */ #ifndef __KEYS_H @@ -117,11 +117,16 @@ extern cKeys Keys; class cKeyMacro : public cListObject { private: eKeys macro[MAXKEYSINMACRO]; + int numKeys; char *plugin; public: cKeyMacro(void); ~cKeyMacro(); bool Parse(char *s); + int NumKeys(void) const { return numKeys; } + ///< Returns the number of keys in this macro. The first key (with + ///< index 0) is the macro code. The actual macro expansion codes + ///< start at index 1 and go to NumKeys() - 1. const eKeys *Macro(void) const { return macro; } const char *Plugin(void) const { return plugin; } }; |