2002-09-29 13:40:45 +02:00
|
|
|
/*
|
|
|
|
* lirc.h: LIRC remote control
|
|
|
|
*
|
|
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2005-07-31 11:38:40 +02:00
|
|
|
* $Id: lirc.h 1.3 2005/07/31 10:18:15 kls Exp $
|
2002-09-29 13:40:45 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LIRC_H
|
|
|
|
#define __LIRC_H
|
|
|
|
|
|
|
|
#include "remote.h"
|
|
|
|
#include "thread.h"
|
|
|
|
|
|
|
|
class cLircRemote : public cRemote, private cThread {
|
|
|
|
private:
|
|
|
|
enum { LIRC_KEY_BUF = 30, LIRC_BUFFER_SIZE = 128 };
|
|
|
|
int f;
|
|
|
|
virtual void Action(void);
|
|
|
|
public:
|
2005-07-31 11:38:40 +02:00
|
|
|
cLircRemote(const char *DeviceName);
|
2002-09-29 13:40:45 +02:00
|
|
|
virtual ~cLircRemote();
|
2003-04-12 14:37:57 +02:00
|
|
|
virtual bool Ready(void);
|
2002-09-29 13:40:45 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__LIRC_H
|