Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CCamStreamApp Class Reference

The CamStream main application class. More...

#include <CamStreamApp.h>

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes


Detailed Description

The CamStream main application class.

This class is the main object for the CamStream application. It does the following:

The configuration is stored as an XML document. The structure still has to be defined fully, and is partially defined by sub-elements.


Constructor & Destructor Documentation

CCamStreamApp::CCamStreamApp int  argc,
char *  argv[]
 

Constructor.

Takes the argc and argv arguments from main().

CCamStreamApp::~CCamStreamApp  ) 
 

Destructor.

End of program; saves user settings (image formats, etc)


Member Function Documentation

void CCamStreamApp::DumpConfigFile  ) 
 

QDomNode CCamStreamApp::FindAudioDeviceConfig const QString &  name,
const QString &  node,
bool  create = false
 

QDomNode CCamStreamApp::FindVideoDeviceConfig const QString &  name,
const QString &  node,
bool  create = false
 

Find the options of a videodevice, matching by name or device node.

Parameters:
name The name from the device, e.g. "CPiA webcam"
node The device nodename, e.g. /dev/video1
Returns:
a QDomNode structure, or a null node if nothing was found
This function tries to find a matching QDomNode for a device. It first searches the list looking for the 'name' (which is a symbolic name returned by the device). If there is more than one match, use the node also

int CCamStreamApp::FormatStrToEnum const QString &  format  )  [static]
 

Find enumeration belonging to file format.

Returns:
A positive integer on a match, -1 when nothing was found
This function returns a number from FileTypeEnum that matches the string given in format. See GetFileTypeFormatStr

QString CCamStreamApp::FormatStrToExtension const QString &   )  [static]
 

QString CCamStreamApp::GetFileTypeExtension int  n  )  [static]
 

Get string with the proper filename extension.

Parameters:
n One of FileTypeEnum
Return the proper filename extension for the given file format. For example, for JPEG files, it will return "jpg".

QString CCamStreamApp::GetFileTypeFormatStr int  n  )  [static]
 

Get string with format for saving files.

Return proper handler string for current file format (which is different from the file extension). See QImage::save(...)

int CCamStreamApp::GetFileTypeMask  )  const
 

Return bitmak of available file formats.

This function returns a bitmask of available formats. Every enumerated fileformat is represented by its corresponding bit (use 1 << n to mask out a bit). The number of fileformats is thus limited to 32.

int CCamStreamApp::GetNumberOfFileTypes  )  const
 

Return number of file formats.

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 GetFileTypeMask.

QString CCamStreamApp::GetShareDir  )  const
 

const QString CCamStreamApp::GetTempFileName const QString &  extension = QString::null  ) 
 


Member Data Documentation

struct CCamStreamApp::_Configuration CCamStreamApp::Configuration
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7