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
bool IsNew (void) const
bool IsEdited (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
cRecordingInfoinfo

Friends

class cRecordings


Detailed Description

Definition at line 65 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 639 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 648 of file recording.c.

Referenced by SortName().

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

Definition at line 668 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 681 of file recording.c.

References FileName(), 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 690 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 759 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 770 of file recording.c.

References name.

Referenced by Title().

void cRecording::ResetResume ( void   )  const

Definition at line 862 of file recording.c.

References resume, and RESUME_NOT_INITIALIZED.

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

Definition at line 96 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 781 of file recording.c.

References name.

Referenced by AssertFreeDiskSpace().

bool cRecording::WriteInfo ( void   ) 

Definition at line 788 of file recording.c.

References fileName, info, INFOFILESUFFIX, 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 801 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 825 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 836 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 66 of file recording.h.


Member Data Documentation

int cRecording::resume [mutable, private]

Definition at line 68 of file recording.h.

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

char* cRecording::titleBuffer [mutable, private]

Definition at line 69 of file recording.h.

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

char* cRecording::sortBuffer [mutable, private]

Definition at line 70 of file recording.h.

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

char* cRecording::fileName [mutable, private]

Definition at line 71 of file recording.h.

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

char* cRecording::name [mutable, private]

Definition at line 72 of file recording.h.

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

int cRecording::fileSizeMB [mutable, private]

Definition at line 73 of file recording.h.

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

Definition at line 74 of file recording.h.

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

Definition at line 82 of file recording.h.

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

Definition at line 83 of file recording.h.

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

Definition at line 84 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 Nov 4 20:01:01 2008 for VDR by  doxygen 1.5.6