fix possible crash on task abort and work with new getCD return value
[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         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 setFastBlank(int val);
30         void setColorFormat(int format);
31         void setAspectRatio(int ratio);
32         void setVideomode(int mode);
33         void setInput(int val);
34         void setSlowblank(int val);
35         void setWSS(int val);
36         PSignal1<void, int> vcr_sb_notifier;
37 };
38
39 #endif