Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

CommandLineGrabber Class Reference

#include <commandlinegrabber.h>

Inheritance diagram for CommandLineGrabber:

ImageGrabber List of all members.

Public Member Functions

 CommandLineGrabber (char *filePath, const char *prePoll, const char *startProcess, const char *stopProcess, bool isProcess=false)
bool init ()
bool grab ()
bool tearDown ()

Detailed Description

Abstract class for the different video grabbers used by the VideoView widgets.

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Constructor & Destructor Documentation

CommandLineGrabber::CommandLineGrabber char *  filePath,
const char *  prePoll,
const char *  startProcess,
const char *  stopProcess,
bool  isProcess = false
 

Initializes the member variables.

Parameters:
filePath path to the output file grabbed from a device
prePoll the pre-poll command to be runned before grabbing
startProcess command line for starting the process
stopProcess command line for stopping the process
isProcess true if the process is running in deamon mode, false otherwise


Member Function Documentation

bool CommandLineGrabber::grab  )  [virtual]
 

Grabs one picture from the device.

Returns:
true on success, false otherwise

Implements ImageGrabber.

bool CommandLineGrabber::init  )  [virtual]
 

Starts the grabber if it is marked to be runned in deamon mode.

Returns:
true on success, false otherwise

Implements ImageGrabber.

bool CommandLineGrabber::tearDown  )  [virtual]
 

Shut downs the grabber process either if it is runned in deamon mode or "single grab" mode.

Returns:
true on success, false otherwise

Implements ImageGrabber.


The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2