vdr  2.0.6
Public Member Functions | Private Attributes | List of all members
cMarks Class Reference

#include <recording.h>

Collaboration diagram for cMarks:
[legend]

Public Member Functions

bool Load (const char *RecordingFileName, double FramesPerSecond=DEFAULTFRAMESPERSECOND, bool IsPesRecording=false)
 
bool Update (void)
 
bool Save (void)
 
void Align (void)
 
void Sort (void)
 
void Add (int Position)
 
cMarkGet (int Position)
 
cMarkGetPrev (int Position)
 
cMarkGetNext (int Position)
 
cMarkGetNextBegin (cMark *EndMark=NULL)
 
cMarkGetNextEnd (cMark *BeginMark)
 
int GetNumSequences (void)
 
- Public Member Functions inherited from cConfig< cMark >
 cConfig (void)
 
virtual ~cConfig ()
 
const char * FileName (void)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Save (void)
 
- Public Member Functions inherited from cList< cMark >
cMarkGet (int Index) const
 
cMarkFirst (void) const
 
cMarkLast (void) const
 
cMarkPrev (const cMark *object) const
 
cMarkNext (const cMark *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
cListObjectGet (int Index) const
 
int Count (void) const
 
void Sort (void)
 

Private Attributes

cString recordingFileName
 
cString fileName
 
double framesPerSecond
 
bool isPesRecording
 
time_t nextUpdate
 
time_t lastFileTime
 
time_t lastChange
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (void)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

Definition at line 229 of file recording.h.

Member Function Documentation

void cMarks::Add ( int  Position)
void cMarks::Align ( void  )
cMark * cMarks::Get ( int  Position)
cMark * cMarks::GetNext ( int  Position)
cMark * cMarks::GetNextBegin ( cMark EndMark = NULL)

Returns the next "begin" mark after EndMark, skipping any marks at the same position as EndMark.

If EndMark is NULL, the first actual "begin" will be returned (if any).

Definition at line 1635 of file recording.c.

References cList< cMark >::First(), cList< cMark >::Next(), and cMark::Position().

Referenced by cCuttingThread::Action(), GetNumSequences(), and cCutter::Start().

cMark * cMarks::GetNextEnd ( cMark BeginMark)

Returns the next "end" mark after BeginMark, skipping any marks at the same position as BeginMark.

Definition at line 1651 of file recording.c.

References cList< cMark >::Next(), and cMark::Position().

Referenced by cCuttingThread::Action(), and GetNumSequences().

int cMarks::GetNumSequences ( void  )

Returns the actual number of sequences to be cut from the recording.

If there is only one actual "begin" mark, and it is positioned at index 0 (the beginning of the recording), and there is no "end" mark, the return value is 0, which means that the result is the same as the original recording.

Definition at line 1669 of file recording.c.

References GetNextBegin(), and GetNextEnd().

Referenced by cCuttingThread::cCuttingThread(), CutRecording(), and cReplayControl::EditCut().

cMark * cMarks::GetPrev ( int  Position)

Definition at line 1617 of file recording.c.

References cList< cMark >::Last(), and cList< cMark >::Prev().

Referenced by cReplayControl::MarkJump().

bool cMarks::Load ( const char *  RecordingFileName,
double  FramesPerSecond = DEFAULTFRAMESPERSECOND,
bool  IsPesRecording = false 
)
bool cMarks::Save ( void  )

Definition at line 1569 of file recording.c.

References fileName, lastFileTime, and LastModifiedTime().

Referenced by cReplayControl::Hide(), and cCuttingThread::ProcessSequence().

void cMarks::Sort ( void  )

Definition at line 1590 of file recording.c.

References cList< cMark >::First(), cList< cMark >::Next(), and swap().

Referenced by Add(), and Update().

bool cMarks::Update ( void  )

Member Data Documentation

cString cMarks::fileName
private

Definition at line 232 of file recording.h.

Referenced by Load(), Save(), and Update().

double cMarks::framesPerSecond
private

Definition at line 233 of file recording.h.

Referenced by Add(), Align(), Load(), and Update().

bool cMarks::isPesRecording
private

Definition at line 234 of file recording.h.

Referenced by Align(), and Load().

time_t cMarks::lastChange
private

Definition at line 237 of file recording.h.

Referenced by Load(), and Update().

time_t cMarks::lastFileTime
private

Definition at line 236 of file recording.h.

Referenced by Load(), Save(), and Update().

time_t cMarks::nextUpdate
private

Definition at line 235 of file recording.h.

Referenced by Load(), and Update().

cString cMarks::recordingFileName
private

Definition at line 231 of file recording.h.

Referenced by Align(), and Load().


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