openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
avswitch.h
Go to the documentation of this file.
1 #ifndef __avswitch_h
2 #define __avswitch_h
3 
4 #include <lib/base/object.h>
6 
7 class eSocketNotifier;
8 
9 class eAVSwitch: public sigc::trackable
10 {
11  static eAVSwitch *instance;
12  int m_video_mode;
13  bool m_active;
14  ePtr<eSocketNotifier> m_fp_notifier;
15  void fp_event(int what);
16  int m_fp_fd;
17 #ifdef SWIG
18  eAVSwitch();
19  ~eAVSwitch();
20 #endif
21 protected:
22 public:
23 #ifndef SWIG
24  eAVSwitch();
25  ~eAVSwitch();
26 #endif
27  static eAVSwitch *getInstance();
28  bool haveScartSwitch();
29  int getVCRSlowBlanking();
30  void setColorFormat(int format);
31  void setAspectRatio(int ratio);
32  void setVideomode(int mode);
33  void setInput(int val);
34  void setWSS(int val);
35  bool isActive();
37 };
38 
39 #endif
Definition: avswitch.h:10
void setAspectRatio(int ratio)
Definition: avswitch.cpp:184
eAVSwitch()
Definition: avswitch.cpp:15
bool haveScartSwitch()
Definition: avswitch.cpp:103
int getVCRSlowBlanking()
Definition: avswitch.cpp:46
void setVideomode(int mode)
Definition: avswitch.cpp:229
void setColorFormat(int format)
Definition: avswitch.cpp:150
void setInput(int val)
Definition: avswitch.cpp:119
bool isActive()
Definition: avswitch.cpp:145
static eAVSwitch * getInstance()
Definition: avswitch.cpp:98
void setWSS(int val)
Definition: avswitch.cpp:290
PSignal1< void, int > vcr_sb_notifier
Definition: avswitch.h:36
~eAVSwitch()
Definition: avswitch.cpp:92
Gives a callback when data on a file descriptor is ready.
Definition: ebase.h:146
val
Definition: UnitConversions.py:88
uint8_t mode
Definition: vps.cpp:40