Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

rcu.h

Go to the documentation of this file.
00001 
00010 #ifndef __RCU_H
00011 #define __RCU_H
00012 
00013 #include "remote.h"
00014 #include "status.h"
00015 #include "thread.h"
00016 
00018 class cRcuRemote : public cRemote, private cThread, private cStatus {
00019 private:
00020   enum { modeH = 'h', modeB = 'b', modeS = 's' };
00021   int f;
00022   unsigned char dp, code, mode;
00023   int numberToSend;
00024   int lastNumber;
00025   bool receivedCommand;
00026   bool SendCommand(unsigned char Cmd);
00027   int ReceiveByte(int TimeoutMs = 0);
00028   bool SendByteHandshake(unsigned char c);
00029   bool SendByte(unsigned char c);
00030   bool Digit(int n, int v);
00031   bool SetCode(unsigned char Code);
00032   bool SetMode(unsigned char Mode);
00033   bool Number(int n, bool Hex = false);
00034   void SetPoints(unsigned char Dp, bool On);
00035   bool String(char *s);
00036   bool DetectCode(unsigned char *Code);
00037   virtual void Action(void);
00038   virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber);
00039   virtual void Recording(const cDevice *Device, const char *Name);
00040 public:
00041   cRcuRemote(char *DeviceName);
00042   virtual ~cRcuRemote();
00043   virtual bool Initialize(void);
00044   };
00045 
00046 #endif //__RCU_H
00047 

Generated on Wed Feb 5 23:30:11 2003 for VDR by doxygen1.3-rc2