vdr
1.7.27
|
#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 |
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) |
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 49 of file include/vdr/recording.h.
cRecordingInfo::cRecordingInfo | ( | const cChannel * | Channel = NULL , |
const cEvent * | Event = NULL |
||
) | [private] |
Definition at line 316 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 375 of file recording.c.
References aux, channelID, channelName, DEFAULTFRAMESPERSECOND, fileName, framesPerSecond, INFOFILESUFFIX, tChannelID::InvalidID, lifetime, MAXLIFETIME, MAXPRIORITY, ownEvent, priority, and cString::sprintf().
Definition at line 388 of file recording.c.
References aux, channelName, fileName, and ownEvent.
cRecordingInfo::cRecordingInfo | ( | const cChannel * | Channel = NULL , |
const cEvent * | Event = NULL |
||
) | [private] |
cRecordingInfo::cRecordingInfo | ( | const char * | FileName | ) |
const char* cRecordingInfo::Aux | ( | void | ) | const [inline] |
Definition at line 75 of file include/vdr/recording.h.
References aux.
const char* cRecordingInfo::Aux | ( | void | ) | const [inline] |
Definition at line 75 of file recording.h.
References aux.
tChannelID cRecordingInfo::ChannelID | ( | void | ) | const [inline] |
Definition at line 68 of file include/vdr/recording.h.
References channelID.
tChannelID cRecordingInfo::ChannelID | ( | void | ) | const [inline] |
Definition at line 68 of file recording.h.
References channelID.
const char* cRecordingInfo::ChannelName | ( | void | ) | const [inline] |
Definition at line 69 of file include/vdr/recording.h.
References channelName.
const char* cRecordingInfo::ChannelName | ( | void | ) | const [inline] |
Definition at line 69 of file recording.h.
References channelName.
const cComponents* cRecordingInfo::Components | ( | void | ) | const [inline] |
Definition at line 74 of file include/vdr/recording.h.
Referenced by cRecordingInfo(), and SetTrackDescriptions().
const cComponents* cRecordingInfo::Components | ( | void | ) | const [inline] |
Definition at line 74 of file recording.h.
const char* cRecordingInfo::Description | ( | void | ) | const [inline] |
Definition at line 73 of file include/vdr/recording.h.
Referenced by cMenuRecording::Display(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
const char* cRecordingInfo::Description | ( | void | ) | const [inline] |
Definition at line 73 of file recording.h.
double cRecordingInfo::FramesPerSecond | ( | void | ) | const [inline] |
Definition at line 76 of file include/vdr/recording.h.
References framesPerSecond.
Referenced by cRecorder::Action(), and SetFramesPerSecond().
double cRecordingInfo::FramesPerSecond | ( | void | ) | const [inline] |
Definition at line 76 of file recording.h.
References framesPerSecond.
const cEvent* cRecordingInfo::GetEvent | ( | void | ) | const [inline] |
Definition at line 70 of file recording.h.
References event.
const cEvent* cRecordingInfo::GetEvent | ( | void | ) | const [inline] |
Definition at line 70 of file include/vdr/recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
bool cRecordingInfo::Read | ( | FILE * | f | ) | [private] |
bool cRecordingInfo::Read | ( | FILE * | f | ) | [private] |
Definition at line 417 of file recording.c.
References 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(), cRecording::cRecording(), and cRecording::ReadInfo().
bool cRecordingInfo::Read | ( | void | ) |
Definition at line 489 of file recording.c.
References esyslog, fileName, and LOG_ERROR_STR.
bool cRecordingInfo::Read | ( | void | ) |
void cRecordingInfo::SetAux | ( | const char * | Aux | ) | [private] |
void cRecordingInfo::SetAux | ( | const char * | Aux | ) | [private] |
void cRecordingInfo::SetData | ( | const char * | Title, |
const char * | ShortText, | ||
const char * | Description | ||
) | [private] |
void cRecordingInfo::SetData | ( | const char * | Title, |
const char * | ShortText, | ||
const char * | Description | ||
) | [private] |
Definition at line 396 of file recording.c.
References event, and isempty().
Referenced by cRecording::cRecording().
void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
Definition at line 412 of file recording.c.
References framesPerSecond, and FramesPerSecond().
Referenced by cRecorder::Action().
const char* cRecordingInfo::ShortText | ( | void | ) | const [inline] |
Definition at line 72 of file include/vdr/recording.h.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
const char* cRecordingInfo::ShortText | ( | void | ) | const [inline] |
Definition at line 72 of file recording.h.
const char* cRecordingInfo::Title | ( | void | ) | const [inline] |
Definition at line 71 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), cMenuRecordings::Info(), cMenuRecordings::SetHelpKeys(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
const char* cRecordingInfo::Title | ( | void | ) | const [inline] |
Definition at line 71 of file recording.h.
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" |
||
) | const |
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" |
||
) | const |
Definition at line 476 of file recording.c.
References aux, channelID, channelName, framesPerSecond, lifetime, priority, tChannelID::ToString(), and tChannelID::Valid().
Referenced by cRecorder::Action(), cSVDRP::CmdLSTR(), and cRecording::WriteInfo().
bool cRecordingInfo::Write | ( | void | ) | const |
Definition at line 507 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, and cSafeFile::Open().
bool cRecordingInfo::Write | ( | void | ) | const |
cRecording [friend] |
Definition at line 50 of file include/vdr/recording.h.
char * cRecordingInfo::aux [private] |
Definition at line 56 of file include/vdr/recording.h.
Referenced by Aux(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
tChannelID cRecordingInfo::channelID [private] |
Definition at line 52 of file include/vdr/recording.h.
Referenced by ChannelID(), cRecordingInfo(), Read(), and Write().
char * cRecordingInfo::channelName [private] |
Definition at line 53 of file include/vdr/recording.h.
Referenced by ChannelName(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
const cEvent * cRecordingInfo::event [private] |
Definition at line 54 of file include/vdr/recording.h.
Referenced by cRecordingInfo(), GetEvent(), and SetData().
char * cRecordingInfo::fileName [private] |
Definition at line 60 of file include/vdr/recording.h.
Referenced by cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
double cRecordingInfo::framesPerSecond [private] |
Definition at line 57 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), FramesPerSecond(), Read(), cRecording::ReadInfo(), SetFramesPerSecond(), and Write().
int cRecordingInfo::lifetime [private] |
Definition at line 59 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().
cEvent * cRecordingInfo::ownEvent [private] |
Definition at line 55 of file include/vdr/recording.h.
Referenced by cRecordingInfo(), Read(), and ~cRecordingInfo().
int cRecordingInfo::priority [private] |
Definition at line 58 of file include/vdr/recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().