Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cRecording Class Reference

#include <recording.h>

Inheritance diagram for cRecording:

Inheritance graph
[legend]
Collaboration diagram for cRecording:

Collaboration graph
[legend]

Detailed Description

Recording file handling.

Definition at line 34 of file recording.h.

Public Methods

 cRecording (cTimer *Timer, const char *Title, const char *Subtitle, const char *Summary)
 cRecording (const char *FileName)
 ~cRecording ()
virtual bool operator< (const cListObject &ListObject)
const char * Name (void)
const char * FileName (void)
const char * Title (char Delimiter= ' ', bool NewIndicator=false, int Level=-1)
const char * Summary (void)
const char * PrefixFileName (char Prefix)
int HierarchyLevels (void)
bool IsNew (void)
bool WriteSummary (void)
bool Delete (void)
bool Remove (void)

Data Fields

time_t start
int priority
int lifetime

Private Methods

char * StripEpisodeName (char *s)
char * SortName (void)
int GetResume (void)

Private Attributes

int resume
char * titleBuffer
char * sortBuffer
char * fileName
char * name
char * summary


Constructor & Destructor Documentation

cRecording::cRecording cTimer   Timer,
const char *    Title,
const char *    Subtitle,
const char *    Summary
 

Definition at line 319 of file recording.c.

References cTimer::Channel(), cTimer::File(), fileName, isempty(), cTimer::IsSingleEvent(), cTimer::Lifetime(), lifetime, cChannel::Name(), name, cTimer::Priority(), priority, resume, RESUME_NOT_INITIALIZED, cTimer::SetFile(), sortBuffer, start, cTimer::StartTime(), strreplace(), cTimer::Summary(), summary, TIMERMACRO_EPISODE, TIMERMACRO_TITLE, and titleBuffer.

cRecording::cRecording const char *    FileName
 

Definition at line 363 of file recording.c.

References esyslog, ExchangeChars(), fileName, LOG_ERROR_STR, MALLOC, name, resume, RESUME_NOT_INITIALIZED, safe_read(), sortBuffer, start, summary, and titleBuffer.

cRecording::~cRecording  
 

Definition at line 425 of file recording.c.


Member Function Documentation

bool cRecording::Delete void   
 

Changes the file name so that it will no longer be visible in the "Recordings" menu Returns false in case of error

Definition at line 582 of file recording.c.

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

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

const char * cRecording::FileName void   
 

Definition at line 481 of file recording.c.

References ExchangeChars(), fileName, and name.

Referenced by cMenuRecordingItem::cMenuRecordingItem(), cMenuRecordings::cMenuRecordings(), cMenuRecordings::Commands(), cRecordControl::cRecordControl(), Delete(), cRecordings::GetByName(), GetResume(), cMenuRecordings::Play(), PrefixFileName(), Remove(), and SortName().

int cRecording::GetResume void    [private]
 

Definition at line 466 of file recording.c.

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

Referenced by IsNew().

int cRecording::HierarchyLevels void   
 

Definition at line 553 of file recording.c.

References name.

Referenced by Title().

bool cRecording::IsNew void    [inline]
 

Definition at line 59 of file recording.h.

References GetResume().

Referenced by cMenuRecordings::cMenuRecordings(), and Title().

const char* cRecording::Name void    [inline]
 

Definition at line 53 of file recording.h.

Referenced by cMenuRecordings::cMenuRecordings(), cRecordControl::cRecordControl(), cReplayControl::cReplayControl(), and cRecordings::Load().

bool cRecording::operator< const cListObject   ListObject [virtual]
 

Reimplemented from cListObject.

Definition at line 475 of file recording.c.

References SortName().

const char * cRecording::PrefixFileName char    Prefix
 

Definition at line 542 of file recording.c.

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

Referenced by cCutter::Start().

bool cRecording::Remove void   
 

Actually removes the file from the disk Returns false in case of error

Definition at line 601 of file recording.c.

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

Referenced by AssertFreeDiskSpace(), and RemoveDeletedRecordings().

char * cRecording::SortName void    [private]
 

Definition at line 454 of file recording.c.

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

Referenced by operator<().

char * cRecording::StripEpisodeName char *    s [private]
 

Definition at line 434 of file recording.c.

Referenced by SortName().

const char* cRecording::Summary void    [inline]
 

Definition at line 56 of file recording.h.

Referenced by cSVDRP::CmdLSTR(), cMenuRecordings::SetHelpKeys(), and cMenuRecordings::Summary().

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

Definition at line 493 of file recording.c.

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

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

bool cRecording::WriteSummary void   
 

Definition at line 564 of file recording.c.

References LOG_ERROR_STR.

Referenced by cRecordControl::cRecordControl(), and cCutter::Start().


Field Documentation

char* cRecording::fileName [private]
 

Definition at line 39 of file recording.h.

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

int cRecording::lifetime
 

Definition at line 48 of file recording.h.

Referenced by AssertFreeDiskSpace(), and cRecording().

char* cRecording::name [private]
 

Definition at line 40 of file recording.h.

Referenced by cRecording(), FileName(), HierarchyLevels(), and Title().

int cRecording::priority
 

Definition at line 47 of file recording.h.

Referenced by AssertFreeDiskSpace(), and cRecording().

int cRecording::resume [private]
 

Definition at line 36 of file recording.h.

Referenced by cRecording(), and GetResume().

char* cRecording::sortBuffer [private]
 

Definition at line 38 of file recording.h.

Referenced by cRecording(), and SortName().

time_t cRecording::start
 

Definition at line 46 of file recording.h.

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

char* cRecording::summary [private]
 

Definition at line 41 of file recording.h.

Referenced by cRecording().

char* cRecording::titleBuffer [private]
 

Definition at line 37 of file recording.h.

Referenced by cRecording(), and Title().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:50 2003 for VDR by doxygen1.3-rc2