vdr 2.7.4
cRecordingInfo Class Reference

#include <recording.h>

Public Member Functions

 cRecordingInfo (const char *FileName)
 
 ~cRecordingInfo ()
 
tChannelID ChannelID (void) const
 
const char * ChannelName (void) const
 
const cEventGetEvent (void) const
 
const char * Title (void) const
 
const char * ShortText (void) const
 
const char * Description (void) const
 
const cComponentsComponents (void) const
 
const char * Aux (void) const
 
double FramesPerSecond (void) const
 
uint16_t FrameWidth (void) const
 
uint16_t FrameHeight (void) const
 
eScanType ScanType (void) const
 
char ScanTypeChar (void) const
 
eAspectRatio AspectRatio (void) const
 
const char * AspectRatioText (void) const
 
cString FrameParams (void) const
 
void SetFramesPerSecond (double FramesPerSecond)
 
void SetFrameParams (uint16_t FrameWidth, uint16_t FrameHeight, eScanType ScanType, eAspectRatio AspectRatio)
 
void SetFileName (const char *FileName)
 
int Errors (void) const
 
void SetErrors (int Errors)
 
bool Write (FILE *f, const char *Prefix="") const
 
bool Read (void)
 
bool Write (void) const
 
void SetData (const char *Title, const char *ShortText, const char *Description)
 
void SetAux (const char *Aux)
 

Private Member Functions

 cRecordingInfo (const cChannel *Channel=NULL, const cEvent *Event=NULL)
 
bool Read (FILE *f)
 

Private Attributes

time_t modified
 
tChannelID channelID
 
char * channelName
 
const cEventevent
 
cEventownEvent
 
char * aux
 
double framesPerSecond
 
uint16_t frameWidth
 
uint16_t frameHeight
 
eScanType scanType
 
eAspectRatio aspectRatio
 
int priority
 
int lifetime
 
char * fileName
 
int errors
 

Friends

class cRecording
 

Detailed Description

Definition at line 64 of file recording.h.

Constructor & Destructor Documentation

◆ cRecordingInfo() [1/2]

◆ cRecordingInfo() [2/2]

◆ ~cRecordingInfo()

cRecordingInfo::~cRecordingInfo ( )

Definition at line 441 of file recording.c.

References aux, channelName, fileName, and ownEvent.

Member Function Documentation

◆ AspectRatio()

eAspectRatio cRecordingInfo::AspectRatio ( void ) const
inline

Definition at line 100 of file recording.h.

References aspectRatio.

Referenced by cIndexFileGenerator::Action(), and SetFrameParams().

◆ AspectRatioText()

const char * cRecordingInfo::AspectRatioText ( void ) const
inline

Definition at line 101 of file recording.h.

References aspectRatio, and AspectRatioTexts.

Referenced by FrameParams().

◆ Aux()

const char * cRecordingInfo::Aux ( void ) const
inline

Definition at line 94 of file recording.h.

References aux.

Referenced by SetAux().

◆ ChannelID()

tChannelID cRecordingInfo::ChannelID ( void ) const
inline

Definition at line 87 of file recording.h.

References channelID.

◆ ChannelName()

const char * cRecordingInfo::ChannelName ( void ) const
inline

◆ Components()

const cComponents * cRecordingInfo::Components ( void ) const
inline

Definition at line 93 of file recording.h.

Referenced by cRecordingInfo().

◆ Description()

const char * cRecordingInfo::Description ( void ) const
inline

◆ Errors()

◆ FrameHeight()

uint16_t cRecordingInfo::FrameHeight ( void ) const
inline

Definition at line 97 of file recording.h.

References frameHeight.

Referenced by cIndexFileGenerator::Action(), and SetFrameParams().

◆ FrameParams()

◆ FramesPerSecond()

double cRecordingInfo::FramesPerSecond ( void ) const
inline

Definition at line 95 of file recording.h.

References framesPerSecond.

Referenced by cIndexFileGenerator::Action(), and SetFramesPerSecond().

◆ FrameWidth()

uint16_t cRecordingInfo::FrameWidth ( void ) const
inline

Definition at line 96 of file recording.h.

References frameWidth.

Referenced by cIndexFileGenerator::Action(), and SetFrameParams().

◆ GetEvent()

const cEvent * cRecordingInfo::GetEvent ( void ) const
inline

◆ Read() [1/2]

◆ Read() [2/2]

bool cRecordingInfo::Read ( void )

Definition at line 603 of file recording.c.

References esyslog, fileName, LOG_ERROR_STR, and Read().

Referenced by Read().

◆ ScanType()

eScanType cRecordingInfo::ScanType ( void ) const
inline

Definition at line 98 of file recording.h.

References scanType.

Referenced by SetFrameParams().

◆ ScanTypeChar()

char cRecordingInfo::ScanTypeChar ( void ) const
inline

Definition at line 99 of file recording.h.

References scanType, and ScanTypeChars.

Referenced by FrameParams().

◆ SetAux()

void cRecordingInfo::SetAux ( const char * Aux)

Definition at line 459 of file recording.c.

References Aux(), and aux.

◆ SetData()

void cRecordingInfo::SetData ( const char * Title,
const char * ShortText,
const char * Description )

Definition at line 449 of file recording.c.

References Description(), event, ShortText(), and Title().

◆ SetErrors()

void cRecordingInfo::SetErrors ( int Errors)

Definition at line 485 of file recording.c.

References Errors(), and errors.

Referenced by cIndexFileGenerator::Action().

◆ SetFileName()

void cRecordingInfo::SetFileName ( const char * FileName)

Definition at line 478 of file recording.c.

References endswith(), fileName, INFOFILESUFFIX, and cString::sprintf().

◆ SetFrameParams()

void cRecordingInfo::SetFrameParams ( uint16_t FrameWidth,
uint16_t FrameHeight,
eScanType ScanType,
eAspectRatio AspectRatio )

◆ SetFramesPerSecond()

void cRecordingInfo::SetFramesPerSecond ( double FramesPerSecond)

Definition at line 465 of file recording.c.

References FramesPerSecond(), and framesPerSecond.

Referenced by cIndexFileGenerator::Action().

◆ ShortText()

◆ Title()

◆ Write() [1/2]

bool cRecordingInfo::Write ( FILE * f,
const char * Prefix = "" ) const

◆ Write() [2/2]

bool cRecordingInfo::Write ( void ) const

Definition at line 621 of file recording.c.

References cSafeFile::Close(), fileName, LOG_ERROR_STR, cSafeFile::Open(), and Write().

Referenced by Write().

Friends And Related Symbol Documentation

◆ cRecording

friend class cRecording
friend

Definition at line 65 of file recording.h.

References cRecording.

Referenced by cRecording.

Member Data Documentation

◆ aspectRatio

eAspectRatio cRecordingInfo::aspectRatio
private

◆ aux

char* cRecordingInfo::aux
private

Definition at line 72 of file recording.h.

Referenced by Aux(), cRecordingInfo(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().

◆ channelID

tChannelID cRecordingInfo::channelID
private

Definition at line 68 of file recording.h.

Referenced by ChannelID(), cRecordingInfo(), cRecordingInfo(), Read(), and Write().

◆ channelName

char* cRecordingInfo::channelName
private

Definition at line 69 of file recording.h.

Referenced by ChannelName(), cRecordingInfo(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().

◆ errors

int cRecordingInfo::errors
private

Definition at line 81 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), Errors(), Read(), SetErrors(), and Write().

◆ event

const cEvent* cRecordingInfo::event
private

Definition at line 70 of file recording.h.

Referenced by cRecordingInfo(), GetEvent(), and SetData().

◆ fileName

char* cRecordingInfo::fileName
private

Definition at line 80 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), Read(), SetFileName(), Write(), and ~cRecordingInfo().

◆ frameHeight

uint16_t cRecordingInfo::frameHeight
private

◆ framesPerSecond

double cRecordingInfo::framesPerSecond
private

◆ frameWidth

uint16_t cRecordingInfo::frameWidth
private

◆ lifetime

int cRecordingInfo::lifetime
private

Definition at line 79 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), Read(), and Write().

◆ modified

time_t cRecordingInfo::modified
private

Definition at line 67 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), and Read().

◆ ownEvent

cEvent* cRecordingInfo::ownEvent
private

Definition at line 71 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), Read(), and ~cRecordingInfo().

◆ priority

int cRecordingInfo::priority
private

Definition at line 78 of file recording.h.

Referenced by cRecordingInfo(), cRecordingInfo(), Read(), and Write().

◆ scanType

eScanType cRecordingInfo::scanType
private

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