fix possible crash on task abort and work with new getCD return value
[enigma2.git] / lib / driver / avswitch.h
index 9c26b1ad131f309d0b62fe72d0be6259d1f5dd0b..cc92e20e42be80a1580956e6da3c14b066746395 100644 (file)
@@ -1,21 +1,31 @@
 #ifndef __avswitch_h
 #define __avswitch_h
 
-class eAVSwitch
+#include <lib/base/object.h>
+#include <lib/python/connections.h>
+
+class eSocketNotifier;
+
+class eAVSwitch: public Object
 {
        static eAVSwitch *instance;
+       int m_video_mode;
+       eSocketNotifier *m_fp_notifier;
+       void fp_event(int what);
+       int m_fp_fd;
 #ifdef SWIG
        eAVSwitch();
        ~eAVSwitch();
 #endif
-protected:     
+protected:
 public:
 #ifndef SWIG
        eAVSwitch();
        ~eAVSwitch();
 #endif
        static eAVSwitch *getInstance();
-       
+       bool haveScartSwitch();
+       int getVCRSlowBlanking();
        void setFastBlank(int val);
        void setColorFormat(int format);
        void setAspectRatio(int ratio);
@@ -23,6 +33,7 @@ public:
        void setInput(int val);
        void setSlowblank(int val);
        void setWSS(int val);
+       PSignal1<void, int> vcr_sb_notifier;
 };
 
 #endif