vdr 2.6.1
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 1.4 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
17class cLircRemote : public cRemote, private cThread {
18private:
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);
24public:
25 cLircRemote(const char *DeviceName);
26 virtual ~cLircRemote();
27 virtual bool Ready(void);
28 };
29
30#endif //__LIRC_H
virtual bool Ready(void)
struct sockaddr_un addr
virtual ~cLircRemote()
virtual void Action(void)
A derived cThread class must implement the code it wants to execute as a separate thread in this func...
cLircRemote(const char *DeviceName)
bool Connect(void)