vdr  2.7.6
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
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
 
int Priority (void) const
 
int Lifetime (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 SetPriority (int Priority)
 
void SetLifetime (int Lifetime)
 
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 (bool Force=false)
 
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, bool Force=false)
 

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::cRecordingInfo ( const cChannel Channel = NULL,
const cEvent Event = NULL 
)
private

◆ cRecordingInfo() [2/2]

cRecordingInfo::cRecordingInfo ( const char *  FileName)

◆ ~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 102 of file recording.h.

References aspectRatio.

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

◆ AspectRatioText()

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

Definition at line 103 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()

int cRecordingInfo::Errors ( void  ) const
inline

◆ FrameHeight()

uint16_t cRecordingInfo::FrameHeight ( void  ) const
inline

Definition at line 99 of file recording.h.

References frameHeight.

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

◆ FrameParams()

cString cRecordingInfo::FrameParams ( void  ) const

◆ FramesPerSecond()

double cRecordingInfo::FramesPerSecond ( void  ) const
inline

◆ FrameWidth()

uint16_t cRecordingInfo::FrameWidth ( void  ) const
inline

Definition at line 98 of file recording.h.

References frameWidth.

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

◆ GetEvent()

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

◆ Lifetime()

int cRecordingInfo::Lifetime ( void  ) const
inline

Definition at line 97 of file recording.h.

References lifetime.

Referenced by cRecording::FileName(), cRecording::Lifetime(), and SetLifetime().

◆ Priority()

int cRecordingInfo::Priority ( void  ) const
inline

Definition at line 96 of file recording.h.

References priority.

Referenced by cRecording::FileName(), cRecording::Priority(), and SetPriority().

◆ Read() [1/2]

bool cRecordingInfo::Read ( bool  Force = false)

Definition at line 617 of file recording.c.

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

◆ Read() [2/2]

bool cRecordingInfo::Read ( FILE *  f,
bool  Force = false 
)
private

◆ ScanType()

eScanType cRecordingInfo::ScanType ( void  ) const
inline

Definition at line 100 of file recording.h.

References scanType.

Referenced by SetFrameParams().

◆ ScanTypeChar()

char cRecordingInfo::ScanTypeChar ( void  ) const
inline

Definition at line 101 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().

Referenced by cRecording::cRecording().

◆ 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().

Referenced by cRecording::cRecording().

◆ SetErrors()

void cRecordingInfo::SetErrors ( int  Errors)

◆ SetFileName()

void cRecordingInfo::SetFileName ( const char *  FileName)

◆ 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 cRecorder::Action(), and cIndexFileGenerator::Action().

◆ SetLifetime()

void cRecordingInfo::SetLifetime ( int  Lifetime)

Definition at line 475 of file recording.c.

References lifetime, and Lifetime().

Referenced by cRecording::ChangePriorityLifetime(), and cRecording::cRecording().

◆ SetPriority()

void cRecordingInfo::SetPriority ( int  Priority)

Definition at line 470 of file recording.c.

References priority, and Priority().

Referenced by cRecording::ChangePriorityLifetime(), and cRecording::cRecording().

◆ ShortText()

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

◆ Title()

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

◆ Write() [1/2]

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

◆ Write() [2/2]

bool cRecordingInfo::Write ( void  ) const

Definition at line 635 of file recording.c.

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

Friends And Related Function Documentation

◆ cRecording

friend class cRecording
friend

Definition at line 65 of file recording.h.

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(), Read(), SetAux(), Write(), and ~cRecordingInfo().

◆ channelID

tChannelID cRecordingInfo::channelID
private

Definition at line 68 of file recording.h.

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

◆ channelName

char* cRecordingInfo::channelName
private

Definition at line 69 of file recording.h.

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

◆ errors

int cRecordingInfo::errors
private

Definition at line 81 of file recording.h.

Referenced by 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(), Read(), SetFileName(), Write(), and ~cRecordingInfo().

◆ frameHeight

uint16_t cRecordingInfo::frameHeight
private

Definition at line 75 of file recording.h.

Referenced by cRecordingInfo(), FrameHeight(), FrameParams(), Read(), SetFrameParams(), and Write().

◆ framesPerSecond

double cRecordingInfo::framesPerSecond
private

◆ frameWidth

uint16_t cRecordingInfo::frameWidth
private

Definition at line 74 of file recording.h.

Referenced by cRecordingInfo(), FrameParams(), FrameWidth(), Read(), SetFrameParams(), and Write().

◆ lifetime

int cRecordingInfo::lifetime
private

Definition at line 79 of file recording.h.

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

◆ modified

time_t cRecordingInfo::modified
private

Definition at line 67 of file recording.h.

Referenced by cRecordingInfo(), and Read().

◆ ownEvent

cEvent* cRecordingInfo::ownEvent
private

Definition at line 71 of file recording.h.

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

◆ priority

int cRecordingInfo::priority
private

Definition at line 78 of file recording.h.

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

◆ scanType

eScanType cRecordingInfo::scanType
private

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