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
|
<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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </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">#include <time.h></font>
00005
00006 <font class="preprocessor">#include <qpixmap.h></font>
00007 <font class="preprocessor">#include <qbutton.h></font>
00008 <font class="preprocessor">#include <qtimer.h></font>
00009 <font class="preprocessor">#include <qurloperator.h></font>
00010
00011 <font class="preprocessor">#include "<a class="code" href="videodevice_h.html">VideoDevice.h</a>"</font>
00012
00013 <font class="preprocessor">#include "<a class="code" href="snapshotsettingsdlg_h.html">gui/SnapshotSettingsDlg.h</a>"</font>
00014 <font class="preprocessor">#include "gui/TimeSnapshot.h"</font>
00015
00016 <font class="preprocessor">#include "<a class="code" href="camwindow_h.html">CamWindow.h</a>"</font>
00017 <font class="preprocessor">#include "CamDialogs.h"</font>
00018 <font class="preprocessor">#include "<a class="code" href="basicpanel_h.html">BasicPanel.h</a>"</font>
00019 <font class="preprocessor">#include "<a class="code" href="imagepanelrgb_h.html">ImagePanelRGB.h</a>"</font>
00020 <font class="preprocessor">#include "<a class="code" href="imagepanelyuv_h.html">ImagePanelYUV.h</a>"</font>
00021
00022 <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>
00023 {
00024 Q_OBJECT
00025 <font class="keyword">private</font>:
00026 <font class="keyword">enum</font> {
00027 pbt_controls,
00028 pbt_config,
00029 pbt_showsnap,
00030 pbt_snapshot,
00031 pbt_timesnap,
00032 pbt_MAX,
00033 } PushButtons;
00034 QPixmap ButtonPix[pbt_MAX];
00035 QToolButton *pButton[pbt_MAX];
00036
00037 <a class="code" href="class_cvideodevice.html">CVideoDevice</a> *pVideo;
00038 <a class="code" href="class_ccampanel.html">CCamPanel</a> *pViewer;
00039 <a class="code" href="class_cbasicpanel.html">CBasicPanel</a> *pLastSnapshot;
00040 QTimer *SizeTimer;
00041
00042 <a class="code" href="struct_svideooptions.html">SVideoOptions</a> *pVOptions;
00043 <a class="code" href="class_csnapshotsettingsdlg.html">CSnapshotSettingsDlg</a> *pConfiguration;
00044 CCamDialogs *pSettings;
00045
00046 CTimeSnapDlg *pTimeSnapDlg;
00047 <font class="keywordtype">int</font> SnapInterval, SnapCounter;
00048 QTimer *pSnapTimer;
00049 QLabel *pSnapLabel;
00050
00052 <font class="keyword">struct </font>{
<a name="l00053"></a><a class="code" href="class_cwebcamviewer.html#m0">00053</a> QUrlOperator *pClient;
<a name="l00054"></a><a class="code" href="class_cwebcamviewer.html#m2">00054</a> QUrl LocalUrl, RemoteUrl;
<a name="l00055"></a><a class="code" href="class_cwebcamviewer.html#m3">00055</a> <font class="keywordtype">int</font> State;
<a name="l00056"></a><a class="code" href="class_cwebcamviewer.html#m4">00056</a> time_t StartTime;
<a name="l00057"></a><a class="code" href="class_cwebcamviewer.html#m5">00057</a> <font class="keywordtype">bool</font> ErrorCondition;
00058
00059 <font class="keyword">enum</font> {
00060 NotConnected,
00061 Login,
00062 Binary,
00063 Idle,
00064 Uploading,
00065 Done
00066 };
00067 } Upload;
00068
00069 <font class="keywordtype">void</font> StartUpload(<font class="keyword">const</font> QString &, <font class="keywordtype">bool</font>);
00070
00071 <font class="keyword">private</font> slots:
00072 <font class="keywordtype">void</font> ClickedConfigurationDlg();
00073 <font class="keywordtype">void</font> ConfigurationDlgClosed();
00074
00075 <font class="comment">// Settings dialog</font>
00076 <font class="keywordtype">void</font> ClickedSettingsDlg();
00077 <font class="keywordtype">void</font> SettingsDlgClosed();
00078
00079 <font class="keywordtype">void</font> ClickedShowLastSnapshot();
00080
00081 <font class="keywordtype">void</font> ClickedTimeSnapDlg();
00082 <font class="keywordtype">void</font> TimeSnapDlgClosed();
00083 <font class="keywordtype">void</font> StartTimeSnap();
00084 <font class="keywordtype">void</font> StopTimeSnap();
00085 <font class="keywordtype">void</font> TimeSnapTick();
00086
00087 <font class="keywordtype">void</font> FTPStart(QNetworkOperation *);
00088 <font class="keywordtype">void</font> FTPState(<font class="keywordtype">int</font>, <font class="keyword">const</font> QString &);
00089 <font class="keywordtype">void</font> FTPDone(QNetworkOperation *);
00090
00091 <font class="keywordtype">void</font> TakeSnapshot();
00092
00093 <font class="keyword">protected</font>:
00094 <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#b0">RecalcTotalViewSize</a>();
00095
00096 <font class="keyword">protected</font> slots:
00097 <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h0">DeviceChangedSize</a>(<font class="keyword">const</font> QSize &size);
00098 <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h1">DeviceError</a>(<font class="keywordtype">int</font> err_no);
00099
00100 <font class="keywordtype">void</font> <a class="code" href="class_cwebcamviewer.html#h2">CallAdjustSize</a>();
00101
00102 <font class="keyword">public</font>:
00103 <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 &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);
00104 <a class="code" href="class_cwebcamviewer.html#a1">~CWebCamViewer</a>();
00105 };
00106
00107 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Wed Jun 20 02:51:23 2001 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>,
© 1997-2001</small></address>
</body>
</html>
|