]> git.vomp.tv Git - vompclient.git/blob - remotelirc.h
Compile fix for MVP re: location change of hmsf
[vompclient.git] / remotelirc.h
1 /*
2     Copyright 2004-2005 Chris Tallon 2009 Marten Richter
3     Inspired from code from vdr by Klaus Schmidinger
4
5     This file is part of VOMP.
6
7     VOMP is free software; you can redistribute it and/or modify
8     it under the terms of the GNU General Public License as published by
9     the Free Software Foundation; either version 2 of the License, or
10     (at your option) any later version.
11
12     VOMP is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with VOMP; if not, write to the Free Software
19     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 */
21
22 #ifndef REMOTELIRC_H
23 #define REMOTELIRC_H
24
25 #include <stdio.h>
26 #include <unistd.h>
27 #include <fcntl.h>
28 #include <sys/un.h>
29
30 #include "remote.h"
31 #include "defines.h"
32
33 class RemoteLirc : public Remote
34 {
35   public:
36     RemoteLirc();
37     ~RemoteLirc();
38
39     int init(char *devName);
40     int shutdown();
41     int getDevice();
42     UCHAR getButtonPress(int how);
43     void clearBuffer();
44         int sockConnect();
45
46         virtual void InitHWCListwithDefaults();
47     virtual char* HCWDesc(ULLONG hcw);
48
49   private:
50     
51     virtual UCHAR TranslateHWCFixed(ULLONG code);
52           
53         int initted;
54     int device;
55
56         struct sockaddr_un address;
57     struct timeval tv;
58 };
59
60 #endif