vdr  2.2.0
lirc.h
Go to the documentation of this file.
1 /*
2  * lirc.h: LIRC remote control
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: lirc.h 3.0 2006/01/27 16:00:19 kls Exp $
8  */
9 
10 #ifndef __LIRC_H
11 #define __LIRC_H
12 
13 #include <sys/un.h>
14 #include "remote.h"
15 #include "thread.h"
16 
17 class cLircRemote : public cRemote, private cThread {
18 private:
19  enum { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 };
20  int f;
21  struct sockaddr_un addr;
22  virtual void Action(void);
23  bool Connect(void);
24 public:
25  cLircRemote(const char *DeviceName);
26  virtual ~cLircRemote();
27  virtual bool Ready(void);
28  };
29 
30 #endif //__LIRC_H
virtual bool Ready(void)
Definition: lirc.c:52
cLircRemote(const char *DeviceName)
Definition: lirc.c:18
virtual void Action(void)
A derived cThread class must implement the code it wants to execute as a separate thread in this func...
Definition: lirc.c:57
struct sockaddr_un addr
Definition: lirc.h:21
bool Connect(void)
Definition: lirc.c:38
Definition: remote.h:20
virtual ~cLircRemote()
Definition: lirc.c:29
Definition: thread.h:77
int f
Definition: lirc.h:20