]> git.vomp.tv Git - vompclient.git/blob - remotewin.h
Windows port
[vompclient.git] / remotewin.h
1 /*\r
2     Copyright 2004-2005 Chris Tallon\r
3 \r
4     This file is part of VOMP.\r
5 \r
6     VOMP is free software; you can redistribute it and/or modify\r
7     it under the terms of the GNU General Public License as published by\r
8     the Free Software Foundation; either version 2 of the License, or\r
9     (at your option) any later version.\r
10 \r
11     VOMP is distributed in the hope that it will be useful,\r
12     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14     GNU General Public License for more details.\r
15 \r
16     You should have received a copy of the GNU General Public License\r
17     along with VOMP; if not, write to the Free Software\r
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
19 */\r
20 \r
21 #ifndef REMOTEWIN_H\r
22 #define REMOTEWIN_H\r
23 \r
24 #include <stdio.h>\r
25 \r
26 #include "defines.h"\r
27 #include "log.h"\r
28 #include "remote.h"\r
29 \r
30 #define _WIN32_WINNT 0x501\r
31 #include <winsock2.h>\r
32 #include <windowsx.h> \r
33 \r
34 \r
35 \r
36 class RemoteWin : public Remote\r
37 {\r
38   public:\r
39     RemoteWin();\r
40     ~RemoteWin();\r
41 \r
42     int init(char *devName);\r
43     int shutdown();\r
44     int getDevice();\r
45     UCHAR getButtonPress(int how);\r
46     void clearBuffer();\r
47     void Signal();\r
48     int ReceiveButtonVK(UINT button);//Windows Message from WND_PROC\r
49         int     ReceiveButtonAP(UINT button);\r
50         void SendPower();\r
51 \r
52   private: \r
53     int initted;\r
54         bool signal;\r
55         UCHAR curevent;\r
56         HANDLE event;\r
57 };\r
58 \r
59 #endif\r
60 \r