fixes bug #369
[enigma2.git] / lib / driver / avswitch.h
1 #ifndef __avswitch_h
2 #define __avswitch_h
3
4 #include <lib/base/object.h>
5 #include <lib/python/connections.h>
6
7 class eSocketNotifier;
8
9 class eAVSwitch: public Object
10 {
11         static eAVSwitch *instance;
12         int m_video_mode;
13         ePtr<eSocketNotifier> m_fp_notifier;
14         void fp_event(int what);
15         int m_fp_fd;
16 #ifdef SWIG
17         eAVSwitch();
18         ~eAVSwitch();
19 #endif
20 protected:
21 public:
22 #ifndef SWIG
23         eAVSwitch();
24         ~eAVSwitch();
25 #endif
26         static eAVSwitch *getInstance();
27         bool haveScartSwitch();
28         int getVCRSlowBlanking();
29         void setColorFormat(int format);
30         void setAspectRatio(int ratio);
31         void setVideomode(int mode);
32         void setInput(int val);
33         void setWSS(int val);
34         PSignal1<void, int> vcr_sb_notifier;
35 };
36
37 #endif