vdr  2.2.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cCutter Class Reference

#include <cutter.h>

Public Member Functions

 cCutter (const char *FileName)
 
 ~cCutter ()
 
bool Start (void)
 
void Stop (void)
 
bool Active (void)
 
bool Error (void)
 

Static Public Member Functions

static cString EditedFileName (const char *FileName)
 

Private Attributes

cString originalVersionName
 
cString editedVersionName
 
cCuttingThreadcuttingThread
 
bool error
 

Detailed Description

Definition at line 18 of file cutter.h.

Constructor & Destructor Documentation

cCutter::cCutter ( const char *  FileName)

Sets up a new cutter for the given FileName, which must be the full path name of an existing recording directory.

Definition at line 645 of file cutter.c.

References cCuttingThread::error.

cCutter::~cCutter ( )

Definition at line 652 of file cutter.c.

Member Function Documentation

bool cCutter::Active ( void  )

Returns true if the cutter is currently active.

Definition at line 709 of file cutter.c.

References cCuttingThread::error, cRecordingUserCommand::InvokeCommand(), and RUC_EDITEDRECORDING.

Referenced by CutRecording().

cString cCutter::EditedFileName ( const char *  FileName)
static

Returns the full path name of the edited version of the recording with the given FileName.

This static function can be used independent of any cCutter object, to determine the file name beforehand. Returns NULL in case of error.

Definition at line 657 of file cutter.c.

References cRecording::FramesPerSecond(), cMarks::GetNextBegin(), cRecording::IsPesRecording(), cMarks::Load(), cRecording::PrefixFileName(), cRecording::SetStartTime(), and cRecording::Start().

Referenced by cMenuRecordingEdit::Action(), cRecordingsHandler::Add(), and cReplayControl::EditCut().

bool cCutter::Error ( void  )

Returns true if an error occurred while cutting the recording.

Definition at line 722 of file cutter.c.

References cCuttingThread::error.

Referenced by CutRecording().

bool cCutter::Start ( void  )

Starts the actual cutting process.

Returns true if successful. If Start() is called while the cutting process is already active, nothing happens and false will be returned.

Definition at line 669 of file cutter.c.

References cRecordings::AddByName(), cCuttingThread::cCuttingThread(), cCuttingThread::error, MakeDirs(), Recordings, cVideoDirectory::RemoveVideoFile(), and cRecording::WriteInfo().

Referenced by CutRecording().

void cCutter::Stop ( void  )

Member Data Documentation

cCuttingThread* cCutter::cuttingThread
private

Definition at line 22 of file cutter.h.

cString cCutter::editedVersionName
private

Definition at line 21 of file cutter.h.

bool cCutter::error
private

Definition at line 23 of file cutter.h.

cString cCutter::originalVersionName
private

Definition at line 20 of file cutter.h.


The documentation for this class was generated from the following files: