/* * eitscan.h: EIT scanner * * See the main source file 'vdr.c' for copyright information and * how to reach the author. * * $Id: eitscan.h 1.4 2003/09/06 13:05:51 kls Exp $ */ #ifndef __EITSCAN_H #define __EITSCAN_H #include #include "config.h" class cEITScanner { private: enum { ActivityTimeout = 60, ScanTimeout = 20 }; time_t lastScan, lastActivity; cDevice *currentDevice; int currentChannel; int lastChannel[MAXDEVICES]; int numTransponders, *transponders; bool TransponderScanned(cChannel *Channel); public: cEITScanner(void); ~cEITScanner(); bool Active(void) { return currentChannel; } bool UsesDevice(const cDevice *Device) { return currentDevice == Device; } void Activity(void); void Process(void); }; extern cEITScanner EITScanner; #endif //__EITSCAN_H