vdr
2.2.0
|
#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) |
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 cEvent * | event |
cEvent * | ownEvent |
char * | aux |
double | framesPerSecond |
int | priority |
int | lifetime |
char * | fileName |
Friends | |
class | cRecording |
Definition at line 63 of file recording.h.
|
private |
Definition at line 343 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 402 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 415 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
|
inline |
Definition at line 82 of file recording.h.
References channelID.
|
inline |
Definition at line 83 of file recording.h.
References channelName.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
inline |
Definition at line 88 of file recording.h.
Referenced by cRecordingInfo(), and SetTrackDescriptions().
|
inline |
Definition at line 87 of file recording.h.
Referenced by cMenuRecording::Display(), SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
inline |
Definition at line 90 of file recording.h.
References framesPerSecond.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 84 of file recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
|
private |
Definition at line 451 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 523 of file recording.c.
References esyslog, fileName, and LOG_ERROR_STR.
|
private |
Definition at line 433 of file recording.c.
Referenced by cRecording::cRecording().
|
private |
Definition at line 423 of file recording.c.
References Description(), event, isempty(), ShortText(), and Title().
Referenced by cRecording::cRecording().
void cRecordingInfo::SetFileName | ( | const char * | FileName | ) |
Definition at line 444 of file recording.c.
References endswith(), fileName, INFOFILESUFFIX, and cString::sprintf().
Referenced by cRecording::ChangePriorityLifetime().
void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
Definition at line 439 of file recording.c.
References framesPerSecond, and FramesPerSecond().
Referenced by cRecorder::Action(), and cIndexFileGenerator::Action().
|
inline |
Definition at line 86 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinLCARSDisplayReplay::SetRecording().
|
inline |
Definition at line 85 of file recording.h.
Referenced by cRecording::cRecording(), SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinLCARSDisplayReplay::SetRecording().
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" |
||
) | const |
Definition at line 510 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 541 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, and cSafeFile::Open().
|
friend |
Definition at line 64 of file recording.h.
|
private |
Definition at line 70 of file recording.h.
Referenced by Aux(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 66 of file recording.h.
Referenced by ChannelID(), cRecordingInfo(), Read(), and Write().
|
private |
Definition at line 67 of file recording.h.
Referenced by ChannelName(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 68 of file recording.h.
Referenced by cRecordingInfo(), GetEvent(), and SetData().
|
private |
Definition at line 74 of file recording.h.
Referenced by cRecordingInfo(), Read(), SetFileName(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 71 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), FramesPerSecond(), Read(), cRecording::ReadInfo(), SetFramesPerSecond(), and Write().
|
private |
Definition at line 73 of file recording.h.
Referenced by cRecording::ChangePriorityLifetime(), cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().
|
private |
Definition at line 69 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), and ~cRecordingInfo().
|
private |
Definition at line 72 of file recording.h.
Referenced by cRecording::ChangePriorityLifetime(), cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().