vdr
2.2.0
Main Page
Namespaces
Classes
Files
File List
File Members
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
cLircRemote::Ready
virtual bool Ready(void)
Definition:
lirc.c:52
cLircRemote::LIRC_KEY_BUF
Definition:
lirc.h:19
cLircRemote::cLircRemote
cLircRemote(const char *DeviceName)
Definition:
lirc.c:18
cLircRemote::Action
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
thread.h
cLircRemote::addr
struct sockaddr_un addr
Definition:
lirc.h:21
cLircRemote::Connect
bool Connect(void)
Definition:
lirc.c:38
cLircRemote::LIRC_BUFFER_SIZE
Definition:
lirc.h:19
cRemote
Definition:
remote.h:20
cLircRemote::~cLircRemote
virtual ~cLircRemote()
Definition:
lirc.c:29
remote.h
cThread
Definition:
thread.h:77
cLircRemote::f
int f
Definition:
lirc.h:20
cLircRemote
Definition:
lirc.h:17
Generated by
1.8.11