cRecording Class Reference

#include <recording.h>

Inheritance diagram for cRecording:

Inheritance graph
[legend]
Collaboration diagram for cRecording:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cRecording (cTimer *Timer, const cEvent *Event)
 cRecording (const char *FileName)
virtual ~cRecording ()
virtual int Compare (const cListObject &ListObject) const
const char * Name (void) const
const char * FileName (void) const
const char * Title (char Delimiter= ' ', bool NewIndicator=false, int Level=-1) const
const cRecordingInfoInfo (void) const
const char * PrefixFileName (char Prefix)
int HierarchyLevels (void) const
void ResetResume (void) const
double FramesPerSecond (void)
bool IsNew (void) const
bool IsEdited (void) const
bool IsPesRecording (void) const
bool WriteInfo (void)
bool Delete (void)
bool Remove (void)
bool Undelete (void)

Public Attributes

time_t start
int priority
int lifetime
time_t deleted

Private Member Functions

 cRecording (const cRecording &)
cRecordingoperator= (const cRecording &)
char * SortName (void) const
int GetResume (void) const

Static Private Member Functions

static char * StripEpisodeName (char *s)

Private Attributes

int resume
char * titleBuffer
char * sortBuffer
char * fileName
char * name
int fileSizeMB
int channel
int resumeId
bool isPesRecording
double framesPerSecond
cRecordingInfoinfo

Friends

class cRecordings


Detailed Description

Definition at line 75 of file recording.h.


Constructor & Destructor Documentation

cRecording::cRecording ( const cRecording  )  [private]

cRecording::cRecording ( cTimer Timer,
const cEvent Event 
)

cRecording::cRecording ( const char *  FileName  ) 

cRecording::~cRecording (  )  [virtual]

Definition at line 765 of file recording.c.

References fileName, info, name, sortBuffer, and titleBuffer.


Member Function Documentation

cRecording& cRecording::operator= ( const cRecording  )  [private]

char * cRecording::StripEpisodeName ( char *  s  )  [static, private]

Definition at line 774 of file recording.c.

Referenced by SortName().

char * cRecording::SortName ( void   )  const [private]

Definition at line 794 of file recording.c.

References FileName(), MALLOC, sortBuffer, StripEpisodeName(), strreplace(), and VideoDirectory.

Referenced by Compare().

Here is the call graph for this function:

int cRecording::GetResume ( void   )  const [private]

Definition at line 807 of file recording.c.

References FileName(), isPesRecording, cResumeFile::Read(), resume, and RESUME_NOT_INITIALIZED.

Referenced by cRecording(), and IsNew().

Here is the call graph for this function:

int cRecording::Compare ( const cListObject ListObject  )  const [virtual]

Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".

Reimplemented from cListObject.

Definition at line 816 of file recording.c.

References SortName().

Here is the call graph for this function:

const char* cRecording::Name ( void   )  const [inline]

const char * cRecording::FileName ( void   )  const

const char * cRecording::Title ( char  Delimiter = ' ',
bool  NewIndicator = false,
int  Level = -1 
) const

const cRecordingInfo* cRecording::Info ( void   )  const [inline]

const char * cRecording::PrefixFileName ( char  Prefix  ) 

Definition at line 888 of file recording.c.

References fileName, FileName(), and PrefixVideoFileName().

Referenced by cCutter::Start().

Here is the call graph for this function:

int cRecording::HierarchyLevels ( void   )  const

Definition at line 899 of file recording.c.

References name.

Referenced by Title().

void cRecording::ResetResume ( void   )  const

Definition at line 991 of file recording.c.

References resume, and RESUME_NOT_INITIALIZED.

double cRecording::FramesPerSecond ( void   )  [inline]

bool cRecording::IsNew ( void   )  const [inline]

Definition at line 111 of file recording.h.

References GetResume().

Referenced by Title().

Here is the call graph for this function:

bool cRecording::IsEdited ( void   )  const

Definition at line 910 of file recording.c.

References name.

Referenced by AssertFreeDiskSpace().

bool cRecording::IsPesRecording ( void   )  const [inline]

bool cRecording::WriteInfo ( void   ) 

Definition at line 917 of file recording.c.

References fileName, info, INFOFILESUFFIX, isPesRecording, LOG_ERROR_STR, cString::sprintf(), and cRecordingInfo::Write().

Referenced by cCutter::Start().

Here is the call graph for this function:

bool cRecording::Delete ( void   ) 

Definition at line 930 of file recording.c.

References DELEXT, FileName(), isyslog, RECEXT, RemoveVideoFile(), and RenameVideoFile().

Referenced by AssertFreeDiskSpace(), cSVDRP::CmdDELR(), and cMenuRecordings::Delete().

Here is the call graph for this function:

bool cRecording::Remove ( void   ) 

Definition at line 954 of file recording.c.

References DELEXT, endswith(), esyslog, FileName(), isyslog, and RemoveVideoFile().

Referenced by cRemoveDeletedRecordingsThread::Action(), and AssertFreeDiskSpace().

Here is the call graph for this function:

bool cRecording::Undelete ( void   ) 

Definition at line 965 of file recording.c.

References DELEXT, esyslog, FileName(), isyslog, RECEXT, and RenameVideoFile().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class cRecordings [friend]

Definition at line 76 of file recording.h.


Member Data Documentation

int cRecording::resume [mutable, private]

Definition at line 78 of file recording.h.

Referenced by cRecording(), GetResume(), and ResetResume().

char* cRecording::titleBuffer [mutable, private]

Definition at line 79 of file recording.h.

Referenced by cRecording(), Title(), and ~cRecording().

char* cRecording::sortBuffer [mutable, private]

Definition at line 80 of file recording.h.

Referenced by cRecording(), SortName(), and ~cRecording().

char* cRecording::fileName [mutable, private]

Definition at line 81 of file recording.h.

Referenced by cRecording(), FileName(), PrefixFileName(), WriteInfo(), and ~cRecording().

char* cRecording::name [mutable, private]

Definition at line 82 of file recording.h.

Referenced by cRecording(), FileName(), HierarchyLevels(), IsEdited(), Name(), Title(), and ~cRecording().

int cRecording::fileSizeMB [mutable, private]

Definition at line 83 of file recording.h.

Referenced by cRecording(), cRecordings::DelByName(), and cRecordings::ScanVideoDir().

int cRecording::channel [private]

Definition at line 84 of file recording.h.

Referenced by cRecording(), and FileName().

int cRecording::resumeId [private]

Definition at line 85 of file recording.h.

Referenced by cRecording(), and FileName().

Definition at line 86 of file recording.h.

Referenced by cRecording(), FileName(), GetResume(), IsPesRecording(), and WriteInfo().

double cRecording::framesPerSecond [private]

Definition at line 87 of file recording.h.

Referenced by cRecording(), and FramesPerSecond().

Definition at line 88 of file recording.h.

Referenced by cRecording(), Info(), WriteInfo(), and ~cRecording().

Definition at line 96 of file recording.h.

Referenced by AssertFreeDiskSpace(), cRecording(), and FileName().

Definition at line 97 of file recording.h.

Referenced by AssertFreeDiskSpace(), cRecording(), and FileName().

Definition at line 98 of file recording.h.

Referenced by cRecording(), cRecordings::DelByName(), and cRecordings::ScanVideoDir().


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

Generated on Tue Jan 13 14:31:29 2009 for VDR by  doxygen 1.5.6