vdr 2.6.7
|
#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 |
uint16_t | FrameWidth (void) const |
uint16_t | FrameHeight (void) const |
eScanType | ScanType (void) const |
char | ScanTypeChar (void) const |
eAspectRatio | AspectRatio (void) const |
const char * | AspectRatioText (void) const |
cString | FrameParams (void) const |
void | SetFramesPerSecond (double FramesPerSecond) |
void | SetFrameParams (uint16_t FrameWidth, uint16_t FrameHeight, eScanType ScanType, eAspectRatio AspectRatio) |
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) |
Private Attributes | |
tChannelID | channelID |
char * | channelName |
const cEvent * | event |
cEvent * | ownEvent |
char * | aux |
double | framesPerSecond |
uint16_t | frameWidth |
uint16_t | frameHeight |
eScanType | scanType |
eAspectRatio | aspectRatio |
int | priority |
int | lifetime |
char * | fileName |
int | errors |
Friends | |
class | cRecording |
Definition at line 64 of file recording.h.
|
private |
Definition at line 357 of file recording.c.
References cChannel::Alang(), arUnknown, aspectRatio, aux, channelID, channelName, cEvent::Components(), Components(), DEFAULTFRAMESPERSECOND, cChannel::Dlang(), errors, event, fileName, frameHeight, framesPerSecond, frameWidth, cChannel::GetChannelID(), cComponents::GetComponent(), tChannelID::InvalidID, tComponent::language, lifetime, MAXAPIDS, MAXDPIDS, MAXLIFETIME, MAXPRIORITY, MAXSPIDS, cChannel::Name(), cComponents::NumComponents(), ownEvent, priority, scanType, cComponents::SetComponent(), cChannel::Slang(), strn0cpy(), and stUnknown.
cRecordingInfo::cRecordingInfo | ( | const char * | FileName | ) |
Definition at line 421 of file recording.c.
References arUnknown, aspectRatio, aux, channelID, channelName, DEFAULTFRAMESPERSECOND, errors, fileName, frameHeight, framesPerSecond, frameWidth, INFOFILESUFFIX, tChannelID::InvalidID, lifetime, MAXLIFETIME, MAXPRIORITY, ownEvent, priority, scanType, cString::sprintf(), and stUnknown.
cRecordingInfo::~cRecordingInfo | ( | ) |
Definition at line 439 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
Definition at line 99 of file recording.h.
References aspectRatio.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 100 of file recording.h.
References aspectRatio, and AspectRatioTexts.
Referenced by FrameParams().
|
inline |
|
inline |
Definition at line 86 of file recording.h.
References channelID.
|
inline |
Definition at line 87 of file recording.h.
References channelName.
Referenced by cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 92 of file recording.h.
Referenced by cRecordingInfo().
|
inline |
Definition at line 91 of file recording.h.
Referenced by cMenuRecording::Display(), SetData(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 105 of file recording.h.
References errors.
Referenced by cRecorder::cRecorder(), SetErrors(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cRecording::Title(), and cRecording::WriteInfo().
|
inline |
Definition at line 96 of file recording.h.
References frameHeight.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFrameParams().
cString cRecordingInfo::FrameParams | ( | void | ) | const |
Definition at line 629 of file recording.c.
References cString::Append(), arUnknown, aspectRatio, AspectRatioText(), dtoa(), frameHeight, framesPerSecond, frameWidth, scanType, ScanTypeChar(), cString::sprintf(), and stUnknown.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 94 of file recording.h.
References framesPerSecond.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 95 of file recording.h.
References frameWidth.
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 88 of file recording.h.
References event.
Referenced by cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
private |
Definition at line 488 of file recording.c.
References arMax, arUnknown, aspectRatio, AspectRatioTexts, atod(), aux, channelID, channelName, compactspace(), errors, esyslog, frameHeight, framesPerSecond, frameWidth, tChannelID::FromString(), lifetime, ownEvent, cEvent::Parse(), priority, cReadLine::Read(), scanType, ScanTypeChars, cEvent::SetComponents(), cEvent::SetDuration(), cEvent::SetEventID(), cEvent::SetStartTime(), cEvent::SetTableID(), cEvent::SetVersion(), skipspace(), stMax, and stUnknown.
Referenced by cIndexFileGenerator::Action(), cRecorder::cRecorder(), cRecording::cRecording(), cRecording::ReadInfo(), and cRecording::WriteInfo().
bool cRecordingInfo::Read | ( | void | ) |
Definition at line 595 of file recording.c.
References esyslog, fileName, LOG_ERROR_STR, and Read().
Referenced by Read().
|
inline |
|
inline |
Definition at line 98 of file recording.h.
References scanType, and ScanTypeChars.
Referenced by FrameParams().
void cRecordingInfo::SetAux | ( | const char * | Aux | ) |
Definition at line 457 of file recording.c.
Referenced by cRecording::cRecording().
void cRecordingInfo::SetData | ( | const char * | Title, |
const char * | ShortText, | ||
const char * | Description ) |
Definition at line 447 of file recording.c.
References Description(), event, ShortText(), and Title().
Referenced by cRecording::cRecording().
void cRecordingInfo::SetErrors | ( | int | Errors | ) |
Definition at line 483 of file recording.c.
References errors, and Errors().
Referenced by cRecorder::HandleErrors(), and cRecording::WriteInfo().
void cRecordingInfo::SetFileName | ( | const char * | FileName | ) |
Definition at line 476 of file recording.c.
References endswith(), fileName, INFOFILESUFFIX, and cString::sprintf().
Referenced by cRecording::ChangePriorityLifetime().
void cRecordingInfo::SetFrameParams | ( | uint16_t | FrameWidth, |
uint16_t | FrameHeight, | ||
eScanType | ScanType, | ||
eAspectRatio | AspectRatio ) |
Definition at line 468 of file recording.c.
References aspectRatio, AspectRatio(), frameHeight, FrameHeight(), frameWidth, FrameWidth(), scanType, and ScanType().
Referenced by cRecorder::Action(), and cIndexFileGenerator::Action().
void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
Definition at line 463 of file recording.c.
References framesPerSecond, and FramesPerSecond().
Referenced by cRecorder::Action(), and cIndexFileGenerator::Action().
|
inline |
Definition at line 90 of file recording.h.
Referenced by SetData(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 89 of file recording.h.
Referenced by cRecording::cRecording(), SetData(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" ) const |
Definition at line 578 of file recording.c.
References aspectRatio, AspectRatioTexts, aux, channelID, channelName, dtoa(), errors, frameHeight, framesPerSecond, frameWidth, itoa(), lifetime, priority, scanType, ScanTypeChars, tChannelID::ToString(), and tChannelID::Valid().
Referenced by cRecorder::Action(), cIndexFileGenerator::Action(), cRecorder::HandleErrors(), and cRecording::WriteInfo().
bool cRecordingInfo::Write | ( | void | ) | const |
Definition at line 613 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, cSafeFile::Open(), and Write().
Referenced by Write().
|
friend |
Definition at line 65 of file recording.h.
|
private |
Definition at line 76 of file recording.h.
Referenced by AspectRatio(), AspectRatioText(), cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 71 of file recording.h.
Referenced by Aux(), cRecordingInfo(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 67 of file recording.h.
Referenced by ChannelID(), cRecordingInfo(), cRecordingInfo(), Read(), and Write().
|
private |
Definition at line 68 of file recording.h.
Referenced by ChannelName(), cRecordingInfo(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 80 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Errors(), Read(), SetErrors(), and Write().
|
private |
Definition at line 69 of file recording.h.
Referenced by cRecordingInfo(), GetEvent(), and SetData().
|
private |
Definition at line 79 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Read(), SetFileName(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 74 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameHeight(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 72 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), cRecordingInfo(), FrameParams(), FramesPerSecond(), Read(), cRecording::ReadInfo(), SetFramesPerSecond(), and Write().
|
private |
Definition at line 73 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), FrameWidth(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 78 of file recording.h.
Referenced by cRecording::ChangePriorityLifetime(), cRecording::cRecording(), cRecording::cRecording(), cRecordingInfo(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().
|
private |
Definition at line 70 of file recording.h.
Referenced by cRecording::cRecording(), cRecordingInfo(), cRecordingInfo(), Read(), and ~cRecordingInfo().
|
private |
Definition at line 77 of file recording.h.
Referenced by cRecording::ChangePriorityLifetime(), cRecording::cRecording(), cRecording::cRecording(), cRecordingInfo(), cRecordingInfo(), Read(), cRecording::ReadInfo(), and Write().
|
private |
Definition at line 75 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), ScanType(), ScanTypeChar(), SetFrameParams(), and Write().