vdr 2.6.8
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::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 644 of file cutter.c.

References cuttingThread, error, and originalVersionName.

◆ ~cCutter()

cCutter::~cCutter ( )

Definition at line 651 of file cutter.c.

References Stop().

Member Function Documentation

◆ Active()

bool cCutter::Active ( void )

◆ EditedFileName()

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 656 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(), cReplayControl::EditCut(), EnoughFreeDiskSpaceForEdit(), and Start().

◆ Error()

bool cCutter::Error ( void )

Returns true if an error occurred while cutting the recording.

Definition at line 721 of file cutter.c.

References error.

Referenced by cRecordingsHandlerEntry::Active(), CutRecording(), and Stop().

◆ Start()

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 668 of file cutter.c.

References cuttingThread, EditedFileName(), editedVersionName, error, cRecordingUserCommand::InvokeCommand(), MakeDirs(), originalVersionName, cVideoDirectory::RemoveVideoFile(), RUC_EDITINGRECORDING, SetRecordingTimerId(), Setup, cString::sprintf(), cSetup::SVDRPHostName, and cRecording::WriteInfo().

Referenced by cRecordingsHandlerEntry::Active(), and CutRecording().

◆ Stop()

void cCutter::Stop ( void )

Member Data Documentation

◆ cuttingThread

cCuttingThread* cCutter::cuttingThread
private

Definition at line 22 of file cutter.h.

Referenced by Active(), cCutter(), Start(), and Stop().

◆ editedVersionName

cString cCutter::editedVersionName
private

Definition at line 21 of file cutter.h.

Referenced by Active(), Start(), and Stop().

◆ error

bool cCutter::error
private

Definition at line 23 of file cutter.h.

Referenced by Active(), cCutter(), Error(), and Start().

◆ originalVersionName

cString cCutter::originalVersionName
private

Definition at line 20 of file cutter.h.

Referenced by Active(), cCutter(), and Start().


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