vdr  2.2.0
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)
 
bool Write (FILE *f, const char *Prefix="") const
 
bool Read (void)
 
bool Write (void) const
 

Private Member Functions

 cRecordingInfo (const cChannel *Channel=NULL, const cEvent *Event=NULL)
 
bool Read (FILE *f)
 
void SetData (const char *Title, const char *ShortText, const char *Description)
 
void SetAux (const char *Aux)
 

Private Attributes

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

Friends

class cRecording
 

Detailed Description

Definition at line 63 of file recording.h.

Constructor & Destructor Documentation

cRecordingInfo::cRecordingInfo ( const cChannel Channel = NULL,
const cEvent Event = NULL 
)
private
cRecordingInfo::cRecordingInfo ( const char *  FileName)
cRecordingInfo::~cRecordingInfo ( )

Definition at line 415 of file recording.c.

Member Function Documentation

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

Definition at line 89 of file recording.h.

tChannelID cRecordingInfo::ChannelID ( void  ) const
inline

Definition at line 82 of file recording.h.

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

Definition at line 88 of file recording.h.

Referenced by SetTrackDescriptions().

const char* cRecordingInfo::Description ( void  ) const
inline
double cRecordingInfo::FramesPerSecond ( void  ) const
inline
const cEvent* cRecordingInfo::GetEvent ( void  ) const
inline
bool cRecordingInfo::Read ( FILE *  f)
private
bool cRecordingInfo::Read ( void  )

Definition at line 523 of file recording.c.

References esyslog, and LOG_ERROR_STR.

void cRecordingInfo::SetAux ( const char *  Aux)
private

Definition at line 433 of file recording.c.

Referenced by cRecording::cRecording().

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

Definition at line 423 of file recording.c.

References isempty().

void cRecordingInfo::SetFileName ( const char *  FileName)

Definition at line 444 of file recording.c.

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

void cRecordingInfo::SetFramesPerSecond ( double  FramesPerSecond)

Definition at line 439 of file recording.c.

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

const char* cRecordingInfo::ShortText ( void  ) const
inline
const char* cRecordingInfo::Title ( void  ) const
inline
bool cRecordingInfo::Write ( FILE *  f,
const char *  Prefix = "" 
) const

Definition at line 510 of file recording.c.

References dtoa().

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

bool cRecordingInfo::Write ( void  ) const

Definition at line 541 of file recording.c.

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

Friends And Related Function Documentation

friend class cRecording
friend

Definition at line 64 of file recording.h.

Member Data Documentation

char* cRecordingInfo::aux
private

Definition at line 70 of file recording.h.

tChannelID cRecordingInfo::channelID
private

Definition at line 66 of file recording.h.

char* cRecordingInfo::channelName
private

Definition at line 67 of file recording.h.

const cEvent* cRecordingInfo::event
private

Definition at line 68 of file recording.h.

char* cRecordingInfo::fileName
private

Definition at line 74 of file recording.h.

double cRecordingInfo::framesPerSecond
private

Definition at line 71 of file recording.h.

int cRecordingInfo::lifetime
private

Definition at line 73 of file recording.h.

cEvent* cRecordingInfo::ownEvent
private

Definition at line 69 of file recording.h.

int cRecordingInfo::priority
private

Definition at line 72 of file recording.h.


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