5 #include "remotecontrol.h"
10 #define X10_POWER 0x0074
12 #define X10_DVD 0x0185
13 #define X10_WWW 0x0096
14 #define X10_BOOK 0x009c
15 #define X10_EDIT 0x00b0
16 #define X10_VOLDN 0x0072
17 #define X10_VOLUP 0x0073
18 #define X10_MUTE 0x0071
19 #define X10_CH_DN 0x0193
20 #define X10_CH_UP 0x0192
30 #define X10_MENU 0x008b
32 #define X10_SETUP 0x008d
36 #define X10_PROPS 0x0082
40 #define X10_SCRN 0x0177
44 #define X10_REW 0x00a8
45 #define X10_PLAY 0x00cf
46 #define X10_FWD 0x00d0
47 #define X10_REC 0x00a7
48 #define X10_STOP 0x00a6
49 #define X10_PAUSE 0x0077
52 //#define X10_NEXT 0x0000
53 //#define X10_PREV 0x0000
54 //#define X10_INFO 0x0000
55 //#define X10_HOME 0x0000
56 //#define X10_END 0x0000
57 //#define X10_SELECT 0x0000
61 class X10TV : public Thread
64 X10TV(MWindow *mwindow, int *ifd, int nfds);
69 static int open_usb_inputs(int vendor, int product, int &version,
71 static X10TV *probe(MWindow *mwindow);
73 void handle_event(int fd);
74 int check_menu_keys(int code);
75 virtual int process_code() { return 1; }
86 class X10TVCWindowHandler : public RemoteHandler
89 X10TVCWindowHandler(X10TV *wintv, RemoteControl *remote_control);
90 int x10tv_process_code(int code);
91 int process_key(int key);
92 int is_x10tv() { return 1; }
97 class X10TVRecordHandler : public RemoteHandler
100 X10TVRecordHandler(X10TV *wintv, RemoteControl *remote_control);
101 int wintv_process_code(int code);
102 int process_key(int key);
103 int is_x10tv() { return 1; }