vdr
2.0.5
|
#include <recording.h>
Public Member Functions | |
cRecordingInfo (const char *FileName) | |
~cRecordingInfo () | |
tChannelID | ChannelID (void) const |
const char * | ChannelName (void) const |
const cEvent * | GetEvent (void) const |
const char * | Title (void) const |
const char * | ShortText (void) const |
const char * | Description (void) const |
const cComponents * | Components (void) const |
const char * | Aux (void) const |
double | FramesPerSecond (void) const |
void | SetFramesPerSecond (double FramesPerSecond) |
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 cEvent * | event |
cEvent * | ownEvent |
char * | aux |
double | framesPerSecond |
int | priority |
int | lifetime |
char * | fileName |
Friends | |
class | cRecording |
Definition at line 48 of file recording.h.
|
private |
Definition at line 333 of file recording.c.
References cChannel::Alang(), aux, channelID, channelName, Components(), cEvent::Components(), DEFAULTFRAMESPERSECOND, cChannel::Dlang(), event, fileName, framesPerSecond, cChannel::GetChannelID(), cComponents::GetComponent(), tChannelID::InvalidID, tComponent::language, lifetime, MAXAPIDS, MAXDPIDS, MAXLIFETIME, MAXPRIORITY, MAXSPIDS, cChannel::Name(), cComponents::NumComponents(), ownEvent, priority, cComponents::SetComponent(), cChannel::Slang(), and strn0cpy().
cRecordingInfo::cRecordingInfo | ( | const char * | FileName | ) |
Definition at line 392 of file recording.c.
References aux, channelID, channelName, DEFAULTFRAMESPERSECOND, fileName, framesPerSecond, INFOFILESUFFIX, tChannelID::InvalidID, lifetime, MAXLIFETIME, MAXPRIORITY, ownEvent, priority, and cString::sprintf().
cRecordingInfo::~cRecordingInfo | ( | ) |
Definition at line 405 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
Definition at line 74 of file recording.h.
References aux.
|
inline |
Definition at line 67 of file recording.h.
References channelID.
|
inline |
Definition at line 68 of file recording.h.
References channelName.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
inline |
Definition at line 73 of file recording.h.
Referenced by cRecordingInfo(), and SetTrackDescriptions().
|
inline |
Definition at line 72 of file recording.h.
Referenced by cMenuRecording::Display(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
inline |
Definition at line 75 of file recording.h.
References framesPerSecond.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 69 of file recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
private |
Definition at line 434 of file recording.c.
References atod(), aux, channelID, channelName, compactspace(), esyslog, framesPerSecond, tChannelID::FromString(), lifetime, ownEvent, cEvent::Parse(), priority, cReadLine::Read(), cEvent::SetDuration(), cEvent::SetEventID(), cEvent::SetStartTime(), cEvent::SetTableID(), cEvent::SetVersion(), and skipspace().
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), cRecording::cRecording(), and cRecording::ReadInfo().
bool cRecordingInfo::Read | ( | void | ) |
Definition at line 506 of file recording.c.
References esyslog, fileName, and LOG_ERROR_STR.
|
private |
|
private |
Definition at line 413 of file recording.c.
References event, and isempty().
Referenced by cRecording::cRecording().
void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
Definition at line 429 of file recording.c.
References framesPerSecond, and FramesPerSecond().
Referenced by cRecorder::Action(), and cIndexFileGenerator::Action().
|
inline |
Definition at line 71 of file recording.h.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinLCARSDisplayReplay::SetRecording().
|
inline |
Definition at line 70 of file recording.h.
Referenced by cRecording::cRecording(), cMenuRecordings::Info(), cMenuRecordings::SetHelpKeys(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinLCARSDisplayReplay::SetRecording().
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" |
||
) | const |
Definition at line 493 of file recording.c.
References aux, channelID, channelName, dtoa(), framesPerSecond, lifetime, priority, tChannelID::ToString(), and tChannelID::Valid().
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), cSVDRP::CmdLSTR(), and cRecording::WriteInfo().
bool cRecordingInfo::Write | ( | void | ) | const |
Definition at line 524 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, and cSafeFile::Open().
|
friend |
Definition at line 49 of file recording.h.
|
private |
Definition at line 55 of file recording.h.
Referenced by Aux(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 51 of file recording.h.
Referenced by ChannelID(), cRecordingInfo(), Read(), and Write().
|
private |
Definition at line 52 of file recording.h.
Referenced by ChannelName(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 53 of file recording.h.
Referenced by cRecordingInfo(), GetEvent(), and SetData().
|
private |
Definition at line 59 of file recording.h.
Referenced by cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 56 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), FramesPerSecond(), Read(), cRecording::ReadInfo(), SetFramesPerSecond(), and Write().
|
private |
Definition at line 58 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().
|
private |
Definition at line 54 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), and ~cRecordingInfo().
|
private |
Definition at line 57 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().