vdr 2.6.1
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
 
void SetFramesPerSecond (double FramesPerSecond)
 
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)
 
 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
 
void SetFramesPerSecond (double FramesPerSecond)
 
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)
 
 cRecordingInfo (const cChannel *Channel=NULL, const cEvent *Event=NULL)
 
bool Read (FILE *f)
 

Private Attributes

tChannelID channelID
 
char * channelName
 
const cEventevent
 
cEventownEvent
 
char * aux
 
double framesPerSecond
 
int priority
 
int lifetime
 
char * fileName
 
int errors
 

Friends

class cRecording
 

Detailed Description

Definition at line 63 of file include/vdr/recording.h.

Constructor & Destructor Documentation

◆ cRecordingInfo() [1/4]

cRecordingInfo::cRecordingInfo ( const cChannel Channel = NULL,
const cEvent Event = NULL 
)
private

◆ cRecordingInfo() [2/4]

cRecordingInfo::cRecordingInfo ( const char *  FileName)

◆ ~cRecordingInfo() [1/2]

cRecordingInfo::~cRecordingInfo ( )

Definition at line 425 of file recording.c.

References aux, channelName, fileName, and ownEvent.

◆ cRecordingInfo() [3/4]

cRecordingInfo::cRecordingInfo ( const cChannel Channel = NULL,
const cEvent Event = NULL 
)
private

◆ cRecordingInfo() [4/4]

cRecordingInfo::cRecordingInfo ( const char *  FileName)

◆ ~cRecordingInfo() [2/2]

cRecordingInfo::~cRecordingInfo ( )

Member Function Documentation

◆ Aux() [1/2]

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

Definition at line 88 of file include/vdr/recording.h.

References aux.

Referenced by SetAux().

◆ Aux() [2/2]

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

Definition at line 88 of file recording.h.

References aux.

◆ ChannelID() [1/2]

tChannelID cRecordingInfo::ChannelID ( void  ) const
inline

Definition at line 81 of file include/vdr/recording.h.

References channelID.

◆ ChannelID() [2/2]

tChannelID cRecordingInfo::ChannelID ( void  ) const
inline

Definition at line 81 of file recording.h.

References channelID.

◆ ChannelName() [1/2]

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

◆ ChannelName() [2/2]

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

Definition at line 82 of file recording.h.

References channelName.

◆ Components() [1/2]

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

Definition at line 87 of file include/vdr/recording.h.

Referenced by cRecordingInfo().

◆ Components() [2/2]

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

Definition at line 87 of file recording.h.

◆ Description() [1/2]

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

◆ Description() [2/2]

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

Definition at line 86 of file recording.h.

◆ Errors() [1/2]

int cRecordingInfo::Errors ( void  ) const
inline

◆ Errors() [2/2]

int cRecordingInfo::Errors ( void  ) const
inline

Definition at line 92 of file recording.h.

References errors.

◆ FramesPerSecond() [1/2]

double cRecordingInfo::FramesPerSecond ( void  ) const
inline

◆ FramesPerSecond() [2/2]

double cRecordingInfo::FramesPerSecond ( void  ) const
inline

Definition at line 89 of file recording.h.

References framesPerSecond.

◆ GetEvent() [1/2]

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

◆ GetEvent() [2/2]

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

Definition at line 83 of file recording.h.

References event.

◆ Read() [1/4]

bool cRecordingInfo::Read ( FILE *  f)
private

◆ Read() [2/4]

bool cRecordingInfo::Read ( FILE *  f)
private

◆ Read() [3/4]

bool cRecordingInfo::Read ( void  )

Definition at line 541 of file recording.c.

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

Referenced by Read().

◆ Read() [4/4]

bool cRecordingInfo::Read ( void  )

◆ SetAux() [1/2]

void cRecordingInfo::SetAux ( const char *  Aux)

Definition at line 443 of file recording.c.

References aux, and Aux().

Referenced by cRecording::cRecording().

◆ SetAux() [2/2]

void cRecordingInfo::SetAux ( const char *  Aux)

◆ SetData() [1/2]

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

Definition at line 433 of file recording.c.

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

Referenced by cRecording::cRecording().

◆ SetData() [2/2]

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

◆ SetErrors() [1/2]

void cRecordingInfo::SetErrors ( int  Errors)

Definition at line 461 of file recording.c.

References errors, and Errors().

Referenced by cRecorder::HandleErrors(), and cRecording::WriteInfo().

◆ SetErrors() [2/2]

void cRecordingInfo::SetErrors ( int  Errors)

◆ SetFileName() [1/2]

void cRecordingInfo::SetFileName ( const char *  FileName)

Definition at line 454 of file recording.c.

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

Referenced by cRecording::ChangePriorityLifetime().

◆ SetFileName() [2/2]

void cRecordingInfo::SetFileName ( const char *  FileName)

◆ SetFramesPerSecond() [1/2]

void cRecordingInfo::SetFramesPerSecond ( double  FramesPerSecond)

Definition at line 449 of file recording.c.

References framesPerSecond, and FramesPerSecond().

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

◆ SetFramesPerSecond() [2/2]

void cRecordingInfo::SetFramesPerSecond ( double  FramesPerSecond)

◆ ShortText() [1/2]

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

◆ ShortText() [2/2]

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

Definition at line 85 of file recording.h.

◆ Title() [1/2]

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

◆ Title() [2/2]

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

Definition at line 84 of file recording.h.

◆ Write() [1/4]

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

◆ Write() [2/4]

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

◆ Write() [3/4]

bool cRecordingInfo::Write ( void  ) const

Definition at line 559 of file recording.c.

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

Referenced by Write().

◆ Write() [4/4]

bool cRecordingInfo::Write ( void  ) const

Friends And Related Function Documentation

◆ cRecording

cRecording
friend

Definition at line 64 of file include/vdr/recording.h.

Member Data Documentation

◆ aux

char * cRecordingInfo::aux
private

Definition at line 70 of file include/vdr/recording.h.

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

◆ channelID

tChannelID cRecordingInfo::channelID
private

Definition at line 66 of file include/vdr/recording.h.

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

◆ channelName

char * cRecordingInfo::channelName
private

Definition at line 67 of file include/vdr/recording.h.

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

◆ errors

int cRecordingInfo::errors
private

Definition at line 75 of file include/vdr/recording.h.

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

◆ event

const cEvent * cRecordingInfo::event
private

Definition at line 68 of file include/vdr/recording.h.

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

◆ fileName

char * cRecordingInfo::fileName
private

Definition at line 74 of file include/vdr/recording.h.

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

◆ framesPerSecond

double cRecordingInfo::framesPerSecond
private

◆ lifetime

int cRecordingInfo::lifetime
private

◆ ownEvent

cEvent * cRecordingInfo::ownEvent
private

◆ priority

int cRecordingInfo::priority
private

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