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)

Public Attributes

time_t start
int priority
int lifetime
time_t deleted

Private Member Functions

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 63 of file recording.h.


Constructor & Destructor Documentation

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

Definition at line 484 of file recording.c.

References cTimer::Aux(), cTimer::Channel(), deleted, cTimer::File(), fileName, fileSizeMB, info, isempty(), cTimer::IsSingleEvent(), cTimer::Lifetime(), lifetime, MAX_SUBTITLE_LENGTH, cChannel::Name(), name, cTimer::Priority(), priority, resume, RESUME_NOT_INITIALIZED, cRecordingInfo::SetAux(), cTimer::SetFile(), cTimers::SetModified(), Setup, cEvent::ShortText(), sortBuffer, start, cTimer::StartTime(), strn0cpy(), strreplace(), TIMERMACRO_EPISODE, TIMERMACRO_TITLE, Timers, cEvent::Title(), Title(), titleBuffer, and cSetup::UseSubtitle.

Here is the call graph for this function:

cRecording::cRecording ( const char *  FileName  ) 

Definition at line 539 of file recording.c.

References DATAFORMAT, deleted, esyslog, ExchangeChars(), fileName, fileSizeMB, GetResume(), info, INFOFILESUFFIX, isempty(), lifetime, LOG_ERROR_STR, MALLOC, name, priority, cReadLine::Read(), cRecordingInfo::Read(), resume, RESUME_NOT_INITIALIZED, cRecordingInfo::SetData(), sortBuffer, start, SUMMARYFILESUFFIX, cRecordingInfo::Title(), titleBuffer, and VideoDirectory.

Here is the call graph for this function:

cRecording::~cRecording (  )  [virtual]

Definition at line 637 of file recording.c.

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


Member Function Documentation

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

Definition at line 646 of file recording.c.

Referenced by SortName().

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

Definition at line 666 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 679 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 688 of file recording.c.

References SortName().

Here is the call graph for this function:

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

Definition at line 85 of file recording.h.

References name.

Referenced by cReplayControl::cReplayControl(), cRecordings::ScanVideoDir(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), and cSkinCursesDisplayMenu::SetRecording().

const char * cRecording::FileName ( void   )  const

Definition at line 694 of file recording.c.

References ExchangeChars(), fileName, lifetime, name, NAMEFORMAT, priority, start, and VideoDirectory.

Referenced by cSVDRP::CmdDELR(), cSVDRP::CmdEDIT(), cSVDRP::CmdPLAY(), cMenuRecordingItem::cMenuRecordingItem(), cMenuRecordings::Commands(), cReplayControl::cReplayControl(), cRecordings::DelByName(), Delete(), GetResume(), cMenuRecordings::Play(), PrefixFileName(), Remove(), cMenuRecordings::Set(), and SortName().

Here is the call graph for this function:

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

Definition at line 706 of file recording.c.

References HierarchyLevels(), IsNew(), MALLOC, name, start, stripspace(), strn0cpy(), and titleBuffer.

Referenced by cSVDRP::CmdEDIT(), cSVDRP::CmdLSTR(), cSVDRP::CmdPLAY(), cMenuRecordingItem::cMenuRecordingItem(), cRecording(), and cMenuRecordings::Play().

Here is the call graph for this function:

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

Definition at line 88 of file recording.h.

References info.

Referenced by cSVDRP::CmdLSTR(), cMenuRecording::Display(), cMenuRecordings::Info(), cMenuRecordings::SetHelpKeys(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and SetTrackDescriptions().

const char * cRecording::PrefixFileName ( char  Prefix  ) 

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

References name.

Referenced by Title().

void cRecording::ResetResume ( void   )  const

Definition at line 836 of file recording.c.

References resume, and RESUME_NOT_INITIALIZED.

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

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

References name.

Referenced by AssertFreeDiskSpace().

bool cRecording::WriteInfo ( void   ) 

Definition at line 786 of file recording.c.

References fileName, info, INFOFILESUFFIX, LOG_ERROR_STR, 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:


Friends And Related Function Documentation

friend class cRecordings [friend]

Definition at line 64 of file recording.h.


Member Data Documentation

int cRecording::resume [mutable, private]

Definition at line 66 of file recording.h.

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

char* cRecording::titleBuffer [mutable, private]

Definition at line 67 of file recording.h.

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

char* cRecording::sortBuffer [mutable, private]

Definition at line 68 of file recording.h.

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

char* cRecording::fileName [mutable, private]

Definition at line 69 of file recording.h.

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

char* cRecording::name [mutable, private]

Definition at line 70 of file recording.h.

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

int cRecording::fileSizeMB [mutable, private]

Definition at line 71 of file recording.h.

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

cRecordingInfo* cRecording::info [private]

Definition at line 72 of file recording.h.

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

time_t cRecording::start

Definition at line 77 of file recording.h.

Referenced by AssertFreeDiskSpace(), cRecording(), FileName(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and Title().

int cRecording::priority

Definition at line 78 of file recording.h.

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

int cRecording::lifetime

Definition at line 79 of file recording.h.

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

time_t cRecording::deleted

Definition at line 80 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 6 20:23:47 2007 for VDR by  doxygen 1.5.3-20071008