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
|
<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">#ifdef HAVE_CONFIG_H</font>
00005 <font class="preprocessor"></font><font class="preprocessor">#incude <config.h></font>
00006 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00007 <font class="preprocessor"></font>
00008 <font class="preprocessor">#include <qapplication.h></font>
00009 <font class="preprocessor">#include <qcolor.h></font>
00010 <font class="preprocessor">#include <qdict.h></font>
00011 <font class="preprocessor">#include <qdom.h></font>
00012 <font class="preprocessor">#include <qfile.h></font>
00013 <font class="preprocessor">#include <qfont.h></font>
00014 <font class="preprocessor">#include <qstring.h></font>
00015
00016 <font class="preprocessor">#include "<a class="code" href="videooptions_h.html">VideoOptions.h</a>"</font>
00017 <font class="preprocessor">#include "<a class="code" href="videocollector_h.html">VideoCollector.h</a>"</font>
00018
<a name="l00031"></a><a class="code" href="camstreamapp_h.html#a6">00031</a> <font class="keyword">enum</font> FileTypeEnum
00032 {
00033 file_jpeg,
00034 file_png,
00035 file_ppm,
00036 file_bmp,
00037
00038 file_MAX
00039 };
00040
00041
00042 <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>
00043 {
00044 <font class="keyword">private</font>:
00045 QFile ConfigFile;
00046 QString UploadDir;
00047
00048 <font class="keywordtype">int</font> snap_bitmask; <font class="comment">/* possible file formats */</font>
00049
00050 QList<SVideoOptions> VOpts;
00051
00052 QDict<QString> VisiblePanels;
00053
00054 <font class="keywordtype">void</font> InitFileTypes();
00055
00056 <font class="keywordtype">void</font> ReadConfigFile();
00057 <font class="keywordtype">void</font> SaveConfigFile();
00058
00059 <font class="keyword">public</font>:
<a name="l00060"></a><a class="code" href="class_ccamstreamapp.html#m0">00060</a> <a class="code" href="class_cvideocollector.html">CVideoCollector</a> *VideoDevices;
00061 <font class="keyword">struct </font>{
<a name="l00062"></a><a class="code" href="class_ccamstreamapp.html#m1">00062</a> QDomDocument Root;
<a name="l00063"></a><a class="code" href="class_ccamstreamapp.html#m2">00063</a> QDomElement Defaults;
<a name="l00064"></a><a class="code" href="class_ccamstreamapp.html#m3">00064</a> QDomElement VideoDevices;
00065 } Configuration;
00066
00067 <a class="code" href="class_ccamstreamapp.html#a0">CCamStreamApp</a>(<font class="keywordtype">int</font> argc, <font class="keywordtype">char</font> *argv[]);
00068 <a class="code" href="class_ccamstreamapp.html#a1">~CCamStreamApp</a>();
00069
00070 QString <a class="code" href="class_ccamstreamapp.html#a2">GetUploadTmpDir</a>() <font class="keyword">const</font>;
00071
00072 <font class="comment">/* File name and type for saved images */</font>
00073 <font class="keywordtype">int</font> <a class="code" href="class_ccamstreamapp.html#a3">GetNumberOfFileTypes</a>() <font class="keyword">const</font>;
00074 <font class="keywordtype">int</font> <a class="code" href="class_ccamstreamapp.html#a4">GetFileTypeMask</a>() <font class="keyword">const</font>;
00075 QString <a class="code" href="class_ccamstreamapp.html#a5">GetFileTypeExtension</a>(<font class="keywordtype">int</font> n) <font class="keyword">const</font>;
00076 QString <a class="code" href="class_ccamstreamapp.html#a6">GetFileTypeFormatStr</a>(<font class="keywordtype">int</font> n) <font class="keyword">const</font>;
00077 <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>;
00078 QString <a class="code" href="class_ccamstreamapp.html#a8">FormatStrToExtension</a>(<font class="keyword">const</font> QString &) <font class="keyword">const</font>;
00079
00080 <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);
00081 };
00082
<a name="l00084"></a><a class="code" href="camstreamapp_h.html#a0">00084</a> <font class="keyword">extern</font> <a class="code" href="class_ccamstreamapp.html">CCamStreamApp</a> *CamApp;
00085
00086 <font class="preprocessor">#endif</font>
00087 <font class="preprocessor"></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>,
© 1997-2001</small></address>
</body>
</html>
|