File: webcamviewer_h-source.html

package info (click to toggle)
camstream 0.26.3-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,744 kB
  • ctags: 2,077
  • sloc: cpp: 7,484; asm: 440; ansic: 427; makefile: 336; sh: 169
file content (133 lines) | stat: -rw-r--r-- 8,351 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>WebCamViewer.h</h1><a href="webcamviewer_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#ifndef WEBCAMVIEWER_HPP</font>
00002 <font class="preprocessor"></font><font class="preprocessor">#define WEBCAMVIEWER_HPP</font>
00003 <font class="preprocessor"></font>
00004 <font class="preprocessor">#ifdef HAVE_CONFIG_H</font>
00005 <font class="preprocessor"></font><font class="preprocessor">#incude &lt;config.h&gt;</font>
00006 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00007 <font class="preprocessor"></font>
00008 <font class="preprocessor">#include &lt;qpixmap.h&gt;</font>
00009 <font class="preprocessor">#include &lt;qbutton.h&gt;</font>
00010 <font class="preprocessor">#include &lt;qdatetime.h&gt;</font>
00011 <font class="preprocessor">#include &lt;qtimer.h&gt;</font>
00012 <font class="preprocessor">#include &lt;qurloperator.h&gt;</font>
00013 <font class="preprocessor">#include &lt;qvaluelist.h&gt;</font>
00014 
00015 <font class="preprocessor">#include "lib/FTPClient.h"</font>
00016 <font class="preprocessor">#include "<a class="code" href="videodevice_h.html">VideoDevice.h</a>"</font>
00017 
00018 <font class="preprocessor">#include "<a class="code" href="snapshotsettingsdlg_h.html">gui/SnapshotSettingsDlg.h</a>"</font>
00019 <font class="preprocessor">#include "<a class="code" href="timesnapshot_h.html">gui/TimeSnapshot.h</a>"</font>
00020 <font class="preprocessor">#include "<a class="code" href="videosettingsdlg_h.html">gui/VideoSettingsDlg.h</a>"</font>
00021 
00022 <font class="preprocessor">#include "<a class="code" href="camwindow_h.html">CamWindow.h</a>"</font>
00023 <font class="preprocessor">#include "<a class="code" href="basicpanel_h.html">BasicPanel.h</a>"</font>
00024 <font class="preprocessor">#include "<a class="code" href="imagepanelrgb_h.html">ImagePanelRGB.h</a>"</font>
00025 <font class="preprocessor">#include "<a class="code" href="imagepanelyuv_h.html">ImagePanelYUV.h</a>"</font>
00026 
00027 <font class="keyword">class </font><a class="code" href="class_cwebcamviewer.html">CWebCamViewer</a>: <font class="keyword">public</font> <a class="code" href="class_ccamwindow.html">CCamWindow</a>
00028 {
00029    Q_OBJECT
00030 <font class="keyword">private</font>:
00031    <font class="keyword">enum</font> {
00032      pbt_controls,
00033      pbt_config,
00034      pbt_showsnap,
00035      pbt_snapshot,
00036      pbt_timesnap,
00037      pbt_sound,
00038      pbt_MAX,
00039    } PushButtons;
00040    QPixmap ButtonPix[pbt_MAX];
00041    QToolButton *pButton[pbt_MAX];
00042 
00043    <a class="code" href="class_cvideodevice.html">CVideoDevice</a> *pVideo;        
00044    <a class="code" href="class_ccampanel.html">CCamPanel</a> *pViewer;          
00045    <a class="code" href="class_cbasicpanel.html">CBasicPanel</a> *pLastSnapshot;  
00046    QTimer *SizeTimer;           
00047 
00048    <a class="code" href="struct_svideooptions.html">SVideoOptions</a> *pVOptions;    
00049    <a class="code" href="class_csnapshotsettingsdlg.html">CSnapshotSettingsDlg</a> *pConfiguration;        
00050    <a class="code" href="class_cvideosettingsdlg.html">CVideoSettingsDlg</a> *pSettings;        
00051 
00052    <a class="code" href="class_ctimesnapdlg.html">CTimeSnapDlg</a> *pTimeSnapDlg;
00053    <font class="keywordtype">int</font> SnapInterval, SnapCounter;
00054    QTimer *pSnapTimer;
00055    QLabel *pSnapLabel;
00056 
00058    <font class="keyword">struct </font>FTPCommandStruct
00059    {
00060       <font class="keywordtype">int</font> Command;
00061       QString Param[4];
00062    };
00063 
00064    <font class="keyword">struct </font>{
<a name="l00065"></a><a class="code" href="class_cwebcamviewer.html#m0">00065</a>      CFTPClient *pClient;
<a name="l00066"></a><a class="code" href="class_cwebcamviewer.html#m1">00066</a>      QList&lt;FTPCommandStruct&gt; Commands;
00067      
<a name="l00068"></a><a class="code" href="class_cwebcamviewer.html#m3">00068</a>      QString LocalFile, RemoteFile;
00069      
<a name="l00070"></a><a class="code" href="class_cwebcamviewer.html#m4">00070</a>      QTime StartTime;
<a name="l00071"></a><a class="code" href="class_cwebcamviewer.html#m5">00071</a>      <font class="keywordtype">bool</font> ErrorCondition, DelAfter;
00072    } Upload;
00073 
00074    <font class="keywordtype">void</font> StartFTPUpload(<font class="keyword">const</font> QString &amp;, <font class="keywordtype">bool</font>);
00075    <font class="keywordtype">void</font> StopFTP();
00076    <font class="keywordtype">void</font> TriggerNextFTPCommand();
00077 
00078 <font class="keyword">private</font> slots:
00079    <font class="keywordtype">void</font> ClickedConfigurationDlg();
00080    <font class="keywordtype">void</font> ConfigurationDlgClosed();
00081    
00082    <font class="comment">// Settings dialog</font>
00083    <font class="keywordtype">void</font> ClickedSettingsDlg();
00084    <font class="keywordtype">void</font> SettingsDlgClosed();
00085 
00086    <font class="keywordtype">void</font> ClickedShowLastSnapshot();
00087 
00088    <font class="keywordtype">void</font> ClickedTimeSnapDlg();
00089    <font class="keywordtype">void</font> TimeSnapDlgClosed();
00090    
00091    <font class="keywordtype">void</font> ClickedSoundOnOff();
00092 
00093    <font class="keywordtype">void</font> FTPChangeState(<font class="keywordtype">int</font> command, <font class="keywordtype">int</font> new_state, <font class="keywordtype">int</font> result, <font class="keyword">const</font> QString &amp;server_msg);
00094    <font class="keywordtype">void</font> NextFTPCommand();
00095 
00096    <font class="keywordtype">void</font> StartTimeSnap();
00097    <font class="keywordtype">void</font> StopTimeSnap();
00098    <font class="keywordtype">void</font> TimeSnapTick();
00099    <font class="keywordtype">void</font> TakeSnapshot();
00100 
00101 <font class="keyword">protected</font>:
00102    <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#b0">RecalcTotalViewSize</a>();
00103 
00104 <font class="keyword">protected</font> slots:
00105    <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h0">DeviceChangedSize</a>(<font class="keyword">const</font> QSize &amp;size);
00106    <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h1">DeviceError</a>(<font class="keywordtype">int</font> err_no);
00107 
00108    <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h2">CallAdjustSize</a>();
00109 
00110 <font class="keyword">public</font>:
00111    <a class="code" href="class_cwebcamviewer.html#a0">CWebCamViewer</a>(<a class="code" href="class_cvideodevice.html">CVideoDevice</a> *video, <font class="keyword">const</font> QSize &amp;hint_size, <a class="code" href="class_qwidget.html">QWidget</a> *parent = 0, <font class="keyword">const</font> <font class="keywordtype">char</font> *name = 0);
00112    <font class="keyword">virtual</font> <a class="code" href="class_cwebcamviewer.html#a1">~CWebCamViewer</a>();   
00113 
00114 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#a2">showMaximized</a>();
00115 };
00116 
00117 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Sat May 18 02:56:55 2002 for Camstream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>