vdr  1.7.27
lirc.h
Go to the documentation of this file.
00001 /*
00002  * lirc.h: LIRC remote control
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: lirc.h 2.0 2006/01/27 16:00:19 kls Exp $
00008  */
00009 
00010 #ifndef __LIRC_H
00011 #define __LIRC_H
00012 
00013 #include <sys/un.h>
00014 #include "remote.h"
00015 #include "thread.h"
00016 
00017 class cLircRemote : public cRemote, private cThread {
00018 private:
00019   enum { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 };
00020   int f;
00021   struct sockaddr_un addr;
00022   virtual void Action(void);
00023   bool Connect(void);
00024 public:
00025   cLircRemote(const char *DeviceName);
00026   virtual ~cLircRemote();
00027   virtual bool Ready(void);
00028   };
00029 
00030 #endif //__LIRC_H