vdr  1.7.27
nit.h
Go to the documentation of this file.
00001 /*
00002  * nit.h: NIT section filter
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: nit.h 2.0 2007/06/10 08:50:21 kls Exp $
00008  */
00009 
00010 #ifndef __NIT_H
00011 #define __NIT_H
00012 
00013 #include "filter.h"
00014 
00015 #define MAXNITS 16
00016 #define MAXNETWORKNAME Utf8BufSize(256)
00017 
00018 class cNitFilter : public cFilter {
00019 private:
00020 
00021   class cNit {
00022   public:
00023     u_short networkId;
00024     char name[MAXNETWORKNAME];
00025     bool hasTransponder;
00026     };
00027 
00028   cSectionSyncer sectionSyncer;
00029   cNit nits[MAXNITS];
00030   u_short networkId;
00031   int numNits;
00032 protected:
00033   virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
00034 public:
00035   cNitFilter(void);
00036   virtual void SetStatus(bool On);
00037   };
00038 
00039 #endif //__NIT_H