00001 #ifndef VIDEODEVICEINPUT_HPP 00002 #define VIDEODEVICEINPUT_HPP 00003 00004 #ifdef HAVE_CONFIG_H 00005 #include <config.h> 00006 #endif 00007 00008 00009 #include <qobject.h> 00010 #include <qvector.h> 00011 00012 #include "VideoDeviceTuner.h" 00013 00014 class CVideoDevice; 00015 00016 class CVideoDeviceInput: public QObject 00017 { 00018 Q_OBJECT 00019 private: 00020 CVideoDevice *pVideo; 00021 int Channel; 00022 QVector <CVideoDeviceTuner>Tuners; 00023 int CurrentTuner; 00024 00025 QString Name; 00026 int Type; 00027 00028 int flags; 00029 00030 public: 00031 enum { 00032 Unknown, 00033 TV, 00034 Camera 00035 } InputTypes; 00036 CVideoDeviceInput(CVideoDevice *video, int channel); 00037 00038 int GetNumber() const; 00039 QString GetName() const; 00040 bool HasAudio() const; 00041 int GetType() const; 00042 00043 int GetTuners() const; 00044 int GetCurrentTuner() const; 00045 CVideoDeviceTuner *GetTuner(int number = -1) const; 00046 bool SelectTuner(int number); 00047 00048 bool Select(); 00049 }; 00050 00051 00052 #endif