diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-20 11:18:09 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-20 11:18:09 +0200 |
commit | 0161197360fb2090dd189daa672871695bc2fef2 (patch) | |
tree | ef4c8d1da99e0a896886f28c93e70d0756f53a95 /eitscan.h | |
parent | 9f9d6a8a9354960eb9c42f9c45ed507f05804ff4 (diff) | |
download | vdr-0161197360fb2090dd189daa672871695bc2fef2.tar.gz vdr-0161197360fb2090dd189daa672871695bc2fef2.tar.bz2 |
Moved the cEITScanner out of dvbapi.h/.c, into the new eitscan.h/.c
Diffstat (limited to 'eitscan.h')
-rw-r--r-- | eitscan.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/eitscan.h b/eitscan.h new file mode 100644 index 00000000..7dacb822 --- /dev/null +++ b/eitscan.h @@ -0,0 +1,33 @@ +/* + * eitscan.h: EIT scanner + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * $Id: eitscan.h 1.1 2002/05/20 11:00:05 kls Exp $ + */ + +#ifndef __EITSCAN_H +#define __EITSCAN_H + +#include <time.h> +#include "config.h" + +class cEITScanner { +private: + enum { ActivityTimeout = 60, + ScanTimeout = 20 + }; + time_t lastScan, lastActivity; + int currentChannel, lastChannel; + int numTransponders, *transponders; + bool TransponderScanned(cChannel *Channel); +public: + cEITScanner(void); + ~cEITScanner(); + bool Active(void) { return currentChannel; } + void Activity(void); + void Process(void); + }; + +#endif //__EITSCAN_H |