1 #ifndef _REMOTECONTROL_H_
2 #define _REMOTECONTROL_H_
7 #include "mwindowgui.inc"
15 class RemoteGUI : public BC_Popup
18 RemoteControl *remote_control;
20 void set_active(RemoteHandler *handler);
22 void fill_color(int color);
23 void tile_windows(int config);
24 int button_press_event();
26 int process_key(int key);
28 RemoteGUI(BC_WindowBase *wdw, RemoteControl *remote_control);
32 class RemoteWindow : public BC_Window
35 RemoteControl *remote_control;
37 RemoteWindow(RemoteControl *remote_control);
47 void activate() { gui->set_active(this); }
48 virtual int remote_key(int key);
49 virtual int process_key(int key);
51 virtual int is_keytv() { return 0; }
52 virtual int is_wintv() { return 0; }
53 virtual int is_x10tv() { return 0; }
55 RemoteHandler(RemoteGUI *gui, int color);
56 virtual ~RemoteHandler();
59 class RemoteControl : Thread {
61 MWindowGUI *mwindow_gui;
62 RemoteWindow *remote_window;
64 RemoteHandler *handler;
68 void set_color(int color);
69 void fill_color(int color);
70 int remote_key(int key);
72 int activate(RemoteHandler *handler=0);
74 bool is_active() { return handler != 0; }
76 RemoteControl(MWindowGUI *gui);