vdr  1.7.27
transfer.h
Go to the documentation of this file.
00001 /*
00002  * transfer.h: Transfer mode
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: transfer.h 2.2 2010/01/29 16:38:09 kls Exp $
00008  */
00009 
00010 #ifndef __TRANSFER_H
00011 #define __TRANSFER_H
00012 
00013 #include "player.h"
00014 #include "receiver.h"
00015 #include "remux.h"
00016 
00017 class cTransfer : public cReceiver, public cPlayer {
00018 private:
00019   cPatPmtGenerator patPmtGenerator;
00020 protected:
00021   virtual void Activate(bool On);
00022   virtual void Receive(uchar *Data, int Length);
00023 public:
00024   cTransfer(const cChannel *Channel);
00025   virtual ~cTransfer();
00026   };
00027 
00028 class cTransferControl : public cControl {
00029 private:
00030   cTransfer *transfer;
00031   static cDevice *receiverDevice;
00032 public:
00033   cTransferControl(cDevice *ReceiverDevice, const cChannel *Channel);
00034   ~cTransferControl();
00035   virtual void Hide(void) {}
00036   static cDevice *ReceiverDevice(void) { return receiverDevice; }
00037   };
00038 
00039 #endif //__TRANSFER_H