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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561
|
<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>CCamStreamApp Class Reference</h1>The CamStream main application class.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="camstreamapp_h-source.html">CamStreamApp.h</a>></code>
<p>
<p>Inheritance diagram for CCamStreamApp::
<p><center><img src="class_ccamstreamapp.gif" usemap="#CCamStreamApp_map" border="0"></center>
<map name="CCamStreamApp_map">
<area href="class_qapplication.html" alt="QApplication" shape="rect" coords="0,0,108,24">
</map>
<a href="class_ccamstreamapp-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li><a class="el" href="class_ccamstreamapp.html#a0">CCamStreamApp</a> (int argc, char *argv[])
<li><a class="el" href="class_ccamstreamapp.html#a1">~CCamStreamApp</a> ()
<li>QString <a class="el" href="class_ccamstreamapp.html#a2">GetUploadTmpDir</a> () const
<li>int <a class="el" href="class_ccamstreamapp.html#a3">GetNumberOfFileTypes</a> () const
<li>int <a class="el" href="class_ccamstreamapp.html#a4">GetFileTypeMask</a> () const
<li>QString <a class="el" href="class_ccamstreamapp.html#a5">GetFileTypeExtension</a> (int n) const
<li>QString <a class="el" href="class_ccamstreamapp.html#a6">GetFileTypeFormatStr</a> (int n) const
<li>int <a class="el" href="class_ccamstreamapp.html#a7">FormatStrToEnum</a> (const QString &) const
<li>QString <a class="el" href="class_ccamstreamapp.html#a8">FormatStrToExtension</a> (const QString &) const
<li><a class="el" href="struct_svideooptions.html">SVideoOptions</a>* <a class="el" href="class_ccamstreamapp.html#a9">FindVideoOptions</a> (const QString &name, const QString &node, bool create=FALSE)
</ul>
<h2>Public Attributes</h2>
<ul>
<li><a class="el" href="class_cvideocollector.html">CVideoCollector</a>* <a class="el" href="class_ccamstreamapp.html#m0">VideoDevices</a>
<li>struct {
<ul>
<li> QDomDocument <a class="el" href="class_ccamstreamapp.html#m1">Root</a>
<li> QDomElement <a class="el" href="class_ccamstreamapp.html#m2">Defaults</a>
<li> QDomElement <a class="el" href="class_ccamstreamapp.html#m3">VideoDevices</a>
</ul>
<li>} <a class="el" href="class_ccamstreamapp.html#m4">Configuration</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The CamStream main application class.
<p>
<p>
This class is the main object for the CamStream application. It does the following:<ul>
<li>creates the canvas, loads widgets;<li>determines available image file formats;<li>stores and retrieves user settings;</ul>
The configuration is stored as an XML document. The structure still has to be defined fully, and is partially defined by sub-elements.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="CCamStreamApp::CCamStreamApp"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
CCamStreamApp::CCamStreamApp (
</b></td>
<td valign="bottom"><b>
int <em>argc</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
char * <em>argv</em>[] )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructor.
<p>
<p>
Takes the <b>argc</b> and <b>argv</b> arguments from <a class="el" href="caminfo_cc.html#a0">main</a>(). </td>
</tr>
</table>
<a name="a1" doxytag="CCamStreamApp::~CCamStreamApp"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
CCamStreamApp::~CCamStreamApp (
</b></td>
<td valign="bottom"><b>
)
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Destructor.
<p>
<p>
End of program; saves user settings (image formats, etc) </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a9" doxytag="CCamStreamApp::FindVideoOptions"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
struct <a class="el" href="struct_svideooptions.html">SVideoOptions</a> * CCamStreamApp::FindVideoOptions (
</b></td>
<td valign="bottom"><b>
const QString & <em>name</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const QString & <em>node</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
bool <em>create</em> = FALSE )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Find the options of a videodevice, matching by name or device node.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>name</em>
</td><td>
The name from the device, e.g. "CPiA webcam" </td></tr>
<tr><td valign=top><em>node</em>
</td><td>
The device nodename, e.g. /dev/video1 </td></tr>
<tr><td valign=top><em>create</em>
</td><td>
If TRUE, will create a new structure which is added to the internal tree </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
a <a class="el" href="struct_svideooptions.html">SVideoOptions</a> structure, or NULL if nothing was found and create was FALSE
<p>
</dl>This function tries to find a matching <a class="el" href="struct_svideooptions.html">SVideoOptions</a> struct for a device. It first searches the list looking for the 'name' (which is a symbolic name returned by the device), if that fails it uses the device nodename.
<p>
By setting <b>create</b> to TRUE, a <a class="el" href="struct_svideooptions.html">SVideoOptions</a> structure will be created when it wasn't found in the current list, and will be appended to the known configurations. </td>
</tr>
</table>
<a name="a7" doxytag="CCamStreamApp::FormatStrToEnum"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
int CCamStreamApp::FormatStrToEnum (
</b></td>
<td valign="bottom"><b>
const QString & <em>format</em> ) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Find enumeration belonging to file format.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
A positive integer on a match, -1 when nothing was found
<p>
</dl>This function returns a number from <a class="el" href="camstreamapp_h.html#a6">FileTypeEnum</a> that matches the string given in <em><a class="el" href="camstreamapp_cc.html#a3">format</a></em>. See <a class="el" href="class_ccamstreamapp.html#a6">GetFileTypeFormatStr</a> </td>
</tr>
</table>
<a name="a8" doxytag="CCamStreamApp::FormatStrToExtension"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QString CCamStreamApp::FormatStrToExtension (
</b></td>
<td valign="bottom"><b>
const QString & ) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="a5" doxytag="CCamStreamApp::GetFileTypeExtension"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QString CCamStreamApp::GetFileTypeExtension (
</b></td>
<td valign="bottom"><b>
int <em>n</em> ) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get string with the proper filename extension.
<p>
<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>n</em>
</td><td>
One of <a class="el" href="camstreamapp_h.html#a6">FileTypeEnum</a>
<p>
</td></tr>
</table>
</dl>Return the proper filename extension for the given file format. For example, for JPEG files, it will return "jpg". </td>
</tr>
</table>
<a name="a6" doxytag="CCamStreamApp::GetFileTypeFormatStr"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QString CCamStreamApp::GetFileTypeFormatStr (
</b></td>
<td valign="bottom"><b>
int <em>n</em> ) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Get string with format for saving files.
<p>
<p>
Return proper handler string for current file format (which is different from the file extension). See <b>QImage::save(...)</b> </td>
</tr>
</table>
<a name="a4" doxytag="CCamStreamApp::GetFileTypeMask"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
int CCamStreamApp::GetFileTypeMask (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Return bitmak of available file formats.
<p>
<p>
This function returns a bitmask of available formats. Every enumerated fileformat is represented by its corresponding bit (use 1 << <em>n</em> to mask out a bit). The number of fileformats is thus limited to 32. </td>
</tr>
</table>
<a name="a3" doxytag="CCamStreamApp::GetNumberOfFileTypes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
int CCamStreamApp::GetNumberOfFileTypes (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Return number of file formats.
<p>
<p>
This function returns the number of programmed file formats, including the formats that are currently not supported by Qt. The supported formats are determined at run time, see <a class="el" href="class_ccamstreamapp.html#a4">GetFileTypeMask</a>. </td>
</tr>
</table>
<a name="a2" doxytag="CCamStreamApp::GetUploadTmpDir"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QString CCamStreamApp::GetUploadTmpDir (
</b></td>
<td valign="bottom"><b>
) const
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="m4" doxytag="CCamStreamApp::Configuration"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
struct { ... } CCamStreamApp::Configuration
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="m2" doxytag="CCamStreamApp::Defaults"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QDomElement CCamStreamApp::Defaults
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="m1" doxytag="CCamStreamApp::Root"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QDomDocument CCamStreamApp::Root
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="m3" doxytag="CCamStreamApp::VideoDevices"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
QDomElement CCamStreamApp::VideoDevices
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<a name="m0" doxytag="CCamStreamApp::VideoDevices"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td nowrap valign="top"><b>
<a class="el" href="class_cvideocollector.html">CVideoCollector</a>* CCamStreamApp::VideoDevices
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="camstreamapp_cc.html">CamStreamApp.cc</a><li><a class="el" href="camstreamapp_h-source.html">CamStreamApp.h</a></ul>
<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>
|