vdr  1.7.27
dvbci.h
Go to the documentation of this file.
00001 /*
00002  * dvbci.h: Common Interface for DVB devices
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: dvbci.h 2.0 2006/11/26 11:19:42 kls Exp $
00008  */
00009 
00010 #ifndef __DVBCI_H
00011 #define __DVBCI_H
00012 
00013 #include "ci.h"
00014 
00015 class cDvbCiAdapter : public cCiAdapter {
00016 private:
00017   cDevice *device;
00018   int fd;
00019 protected:
00020   virtual int Read(uint8_t *Buffer, int MaxLength);
00021   virtual void Write(const uint8_t *Buffer, int Length);
00022   virtual bool Reset(int Slot);
00023   virtual eModuleStatus ModuleStatus(int Slot);
00024   virtual bool Assign(cDevice *Device, bool Query = false);
00025   cDvbCiAdapter(cDevice *Device, int Fd);
00026 public:
00027   virtual ~cDvbCiAdapter();
00028   static cDvbCiAdapter *CreateCiAdapter(cDevice *Device, int Fd);
00029   };
00030 
00031 #endif //__DVBCI_H