00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef V4L2_CONNECTOR_H_
00026 #define V4L2_CONNECTOR_H_
00027
00028 #include <linux/types.h>
00029 #include <linux/videodev.h>
00030
00031 #include <string>
00032 #include <list>
00033
00034 #include "Connector.h"
00035
00036 namespace avcap
00037 {
00038
00039 class V4L2_DeviceDescriptor;
00040 class Tuner;
00041
00043
00044 class V4L2_Connector : public Connector
00045 {
00046 private:
00047 Tuner* mTuner;
00048
00049 public:
00050 V4L2_Connector(V4L2_DeviceDescriptor *dd, int index, const std::string& name, int type=0, int audioset=0, int tuner=0);
00051
00052 virtual ~V4L2_Connector();
00053
00054 inline Tuner* getTuner()
00055 { return mTuner; }
00056
00057 inline bool hasTuner() const
00058 { return mType & INPUT_TYPE_TUNER; }
00059 };
00060 }
00061
00062 #endif // V4L2_CONNECTOR_H_