vdr 2.8.3
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
cRecordingInfo recordingInfo
cCuttingThread * cuttingThread
bool error

Detailed Description

Definition at line 19 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 709 of file cutter.c.

References cuttingThread, error, originalVersionName, and recordingInfo.

Referenced by cRecordingsHandlerEntry::Active().

◆ ~cCutter()

cCutter::~cCutter ( )

Definition at line 717 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 722 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 790 of file cutter.c.

References error.

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

◆ Start()

bool cCutter::Start ( void )

◆ Stop()

void cCutter::Stop ( void )

Member Data Documentation

◆ cuttingThread

cCuttingThread* cCutter::cuttingThread
private

Definition at line 24 of file cutter.h.

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

◆ editedVersionName

cString cCutter::editedVersionName
private

Definition at line 22 of file cutter.h.

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

◆ error

bool cCutter::error
private

Definition at line 25 of file cutter.h.

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

◆ originalVersionName

cString cCutter::originalVersionName
private

Definition at line 21 of file cutter.h.

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

◆ recordingInfo

cRecordingInfo cCutter::recordingInfo
private

Definition at line 23 of file cutter.h.

Referenced by cCutter(), and Start().


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