summaryrefslogtreecommitdiff
path: root/remote.c
blob: e1f392d0f1658a0d013e75f1c40c95aab4a38843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* 
 * remote.c: remote control 
 *
 * See the README file for copyright information and how to reach the author.
 *
 */
 

#include <vdr/interface.h>

#include "osdworker.h"
#include "remote.h"
 
cMyRemote::cMyRemote(const char *Name)
:cRemote(Name)
{

}

bool cMyRemote::Ready(void)
{
	return true;
}

bool cMyRemote::Initialize(void)
{
	return true;
}

bool cMyRemote::Put(uint64 Code, bool Repeat, bool Release)
{
	return cRemote::Put(Code, Repeat ,Release);
}



cLearningThread::cLearningThread(void)
{
    Start();
}

cLearningThread::~cLearningThread(void)
{
}

void cLearningThread::Action(void)
{
    while (!cOSDWorker::ClientIsReady())
	usleep(100000);
	
    while (cOsd::IsOpen() > 0)
	usleep(100000);

    sleep(5);
    dsyslog("[ffnetdev] start learning keys");
    Interface->LearnKeys();
    delete this;
}