<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>CamStreamApp.h</h1><a href="camstreamapp_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#ifndef CAMSTREAMAPP_HPP</font> 00002 <font class="preprocessor"></font><font class="preprocessor">#define CAMSTREAMAPP_HPP</font> 00003 <font class="preprocessor"></font> 00004 <font class="preprocessor">#include <qapplication.h></font> 00005 <font class="preprocessor">#include <qcolor.h></font> 00006 <font class="preprocessor">#include <qdict.h></font> 00007 <font class="preprocessor">#include <qdom.h></font> 00008 <font class="preprocessor">#include <qfile.h></font> 00009 <font class="preprocessor">#include <qfont.h></font> 00010 <font class="preprocessor">#include <qstring.h></font> 00011 00012 <font class="preprocessor">#include "<a class="code" href="videooptions_h.html">VideoOptions.h</a>"</font> 00013 <font class="preprocessor">#include "<a class="code" href="videocollector_h.html">VideoCollector.h</a>"</font> 00014 <a name="l00027"></a><a class="code" href="camstreamapp_h.html#a6">00027</a> <font class="keyword">enum</font> FileTypeEnum 00028 { 00029 file_jpeg, 00030 file_png, 00031 file_ppm, 00032 file_bmp, 00033 00034 file_MAX 00035 }; 00036 00037 00038 <font class="keyword">class </font><a class="code" href="class_ccamstreamapp.html">CCamStreamApp</a>: <font class="keyword">public</font> <a class="code" href="class_qapplication.html">QApplication</a> 00039 { 00040 <font class="keyword">private</font>: 00041 QFile ConfigFile; 00042 QString UploadDir; 00043 00044 <font class="keywordtype">int</font> snap_bitmask; <font class="comment">/* possible file formats */</font> 00045 00046 QList<SVideoOptions> VOpts; 00047 00048 QDict<QString> VisiblePanels; 00049 00050 <font class="keywordtype">void</font> InitFileTypes(); 00051 00052 <font class="keywordtype">void</font> ReadConfigFile(); 00053 <font class="keywordtype">void</font> SaveConfigFile(); 00054 00055 <font class="keyword">public</font>: <a name="l00056"></a><a class="code" href="class_ccamstreamapp.html#m0">00056</a> <a class="code" href="class_cvideocollector.html">CVideoCollector</a> *VideoDevices; 00057 <font class="keyword">struct </font>{ <a name="l00058"></a><a class="code" href="class_ccamstreamapp.html#m1">00058</a> QDomDocument Root; <a name="l00059"></a><a class="code" href="class_ccamstreamapp.html#m2">00059</a> QDomElement Defaults; <a name="l00060"></a><a class="code" href="class_ccamstreamapp.html#m3">00060</a> QDomElement VideoDevices; 00061 } Configuration; 00062 00063 <a class="code" href="class_ccamstreamapp.html#a0">CCamStreamApp</a>(<font class="keywordtype">int</font> argc, <font class="keywordtype">char</font> *argv[]); 00064 <a class="code" href="class_ccamstreamapp.html#a1">~CCamStreamApp</a>(); 00065 00066 QString <a class="code" href="class_ccamstreamapp.html#a2">GetUploadTmpDir</a>() <font class="keyword">const</font>; 00067 00068 <font class="comment">/* File name and type for saved images */</font> 00069 <font class="keywordtype">int</font> <a class="code" href="class_ccamstreamapp.html#a3">GetNumberOfFileTypes</a>() <font class="keyword">const</font>; 00070 <font class="keywordtype">int</font> <a class="code" href="class_ccamstreamapp.html#a4">GetFileTypeMask</a>() <font class="keyword">const</font>; 00071 QString <a class="code" href="class_ccamstreamapp.html#a5">GetFileTypeExtension</a>(<font class="keywordtype">int</font> n) <font class="keyword">const</font>; 00072 QString <a class="code" href="class_ccamstreamapp.html#a6">GetFileTypeFormatStr</a>(<font class="keywordtype">int</font> n) <font class="keyword">const</font>; 00073 <font class="keywordtype">int</font> <a class="code" href="class_ccamstreamapp.html#a7">FormatStrToEnum</a>(<font class="keyword">const</font> QString &) <font class="keyword">const</font>; 00074 QString <a class="code" href="class_ccamstreamapp.html#a8">FormatStrToExtension</a>(<font class="keyword">const</font> QString &) <font class="keyword">const</font>; 00075 00076 <a class="code" href="struct_svideooptions.html">SVideoOptions</a> *<a class="code" href="class_ccamstreamapp.html#a9">FindVideoOptions</a>(<font class="keyword">const</font> QString &name, <font class="keyword">const</font> QString &node, <font class="keywordtype">bool</font> create = FALSE); 00077 }; 00078 <a name="l00080"></a><a class="code" href="camstreamapp_h.html#a0">00080</a> <font class="keyword">extern</font> <a class="code" href="class_ccamstreamapp.html">CCamStreamApp</a> *CamApp; 00081 00082 <font class="preprocessor">#endif</font> 00083 <font class="preprocessor"></font> 00084 </pre></div><hr><address><small>Generated at Wed Jun 20 02:51:22 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>