File: _video_device_input_8h-source.html

package info (click to toggle)
camstream 0.27%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,368 kB
  • ctags: 5,393
  • sloc: cpp: 17,031; sh: 8,154; asm: 455; ansic: 440; makefile: 343
file content (73 lines) | stat: -rw-r--r-- 5,224 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>VideoDeviceInput.h</h1><a href="_video_device_input_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="preprocessor">#ifndef VIDEODEVICEINPUT_HPP</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define VIDEODEVICEINPUT_HPP</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
00005 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="config_8h.html">config.h</a>"</span>
00006 <span class="preprocessor">#endif</span>
00007 <span class="preprocessor"></span>
00008 <span class="preprocessor">#include &lt;qobject.h&gt;</span>
00009 <span class="preprocessor">#include &lt;qvector.h&gt;</span>
00010 
00011 <span class="preprocessor">#include &lt;<a class="code" href="videodev_8h.html">linux/videodev.h</a>&gt;</span>
00012 
00013 <span class="preprocessor">#include "<a class="code" href="_video_device_tuner_8h.html">VideoDeviceTuner.h</a>"</span>
00014 
00015 <span class="keyword">class </span><a class="code" href="class_c_video_device_linux.html">CVideoDeviceLinux</a>;
00016 
<a name="l00017"></a><a class="code" href="class_c_video_device_input.html">00017</a> <span class="keyword">class </span><a class="code" href="class_c_video_device_input.html">CVideoDeviceInput</a>: <span class="keyword">public</span> QObject
00018 {
00019    Q_OBJECT
00020 <span class="keyword">private</span>:
00021    <span class="keyword">struct </span><a class="code" href="structvideo__channel.html">video_channel</a> m_VChan;
00022 
00023    <a class="code" href="class_c_video_device_linux.html">CVideoDeviceLinux</a> *m_pVideo;
00024    QVector&lt;CVideoDeviceTuner&gt; m_Tuners;
00025    <span class="keywordtype">int</span> m_CurrentTuner;
00026 
00027    QString m_Name;
00028    <span class="keywordtype">int</span> m_Type;
00029    <span class="keywordtype">int</span> m_Flags;
00030 
00031 <span class="keyword">private</span> slots:
00032    <span class="keywordtype">void</span> VideoTunerSwitched(<span class="keywordtype">int</span>);
00033 
00034 <span class="keyword">public</span>:
00035    <span class="keyword">enum</span> {
00036      <a class="code" href="class_c_video_device_input.html#w3w0">Unknown</a>,
00037      <a class="code" href="class_c_video_device_input.html#w3w1">TV</a>,
00038      <a class="code" href="class_c_video_device_input.html#w3w2">Camera</a>
00039    } <a class="code" href="class_c_video_device_input.html#o0">InputTypes</a>;
00040 
00041    <a class="code" href="class_c_video_device_input.html">CVideoDeviceInput</a>(<a class="code" href="class_c_video_device_linux.html">CVideoDeviceLinux</a> *video, <span class="keywordtype">int</span> channel);
00042 
00043    <span class="keywordtype">int</span> <a class="code" href="class_c_video_device_input.html#a1">GetNumber</a>() <span class="keyword">const</span>;
00044    QString <a class="code" href="class_c_video_device_input.html#a2">GetName</a>() <span class="keyword">const</span>;
00045    <span class="keywordtype">int</span> <a class="code" href="class_c_video_device_input.html#a3">GetType</a>() <span class="keyword">const</span>;
00046    <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_input.html#a4">HasAudio</a>() <span class="keyword">const</span>;
00047 
00048    <span class="keywordtype">bool</span> <a class="code" href="class_c_video_device_input.html#a5">Select</a>();
00049 
00050    <span class="keywordtype">int</span> <a class="code" href="class_c_video_device_input.html#a6">GetNumberOfTuners</a>() <span class="keyword">const</span>;
00051    <a class="code" href="class_c_video_device_tuner.html">CVideoDeviceTuner</a> *<a class="code" href="class_c_video_device_input.html#a7">GetTuner</a>(<span class="keywordtype">int</span> number = -1) <span class="keyword">const</span>;
00052    <span class="keywordtype">int</span> <a class="code" href="class_c_video_device_input.html#a8">GetCurrentTuner</a>() <span class="keyword">const</span>;
00053 
00054 signals:
00055    <span class="keywordtype">void</span> <a class="code" href="class_c_video_device_input.html#l0">Selected</a>(<span class="keywordtype">int</span>);
00056 };
00057 
00058 
00059 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Wed Dec 13 23:38:46 2006 for CamStream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>