fix virtual keyboard bug.
[vuplus_dvbapp] / lib / driver / hdmi_cec.h
1 #ifndef _hdmi_cec_h
2 #define _hdmi_cec_h
3
4 #include <lib/base/object.h>
5 #include <lib/python/connections.h>
6
7 class eSocketNotifier;
8
9 class eHdmiCEC: public Object
10 {
11 #ifndef SWIG
12 public:
13 struct cec_message
14 {
15         unsigned char address;
16         unsigned char length;
17         unsigned char data[256];
18 }__attribute__((packed));
19 #endif
20 protected:
21         static eHdmiCEC *instance;
22         int hdmiFd;
23         ePtr<eSocketNotifier> messageNotifier;
24         void hdmiEvent(int what);
25 #ifdef SWIG
26         eHdmiCEC();
27         ~eHdmiCEC();
28 #endif
29 public:
30 #ifndef SWIG
31         eHdmiCEC();
32         ~eHdmiCEC();
33 #endif
34         static eHdmiCEC *getInstance();
35         PSignal2<void, int, int> messageReceived;
36         PSignal2<void, int, int> messageReceivedKey;
37         void sendMessage(unsigned char address, unsigned char length, char *data);
38 };
39
40 #endif