|
vdr 2.7.9
|
#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 |
| int | Priority (void) const |
| int | Lifetime (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 | SetPriority (int Priority) |
| void | SetLifetime (int Lifetime) |
| void | SetFrameParams (uint16_t FrameWidth, uint16_t FrameHeight, eScanType ScanType, eAspectRatio AspectRatio) |
| void | SetFileName (const char *FileName) |
| int | Errors (void) const |
| int | TmpErrors (void) const |
| void | SetErrors (int Errors, int TmpErrors=0) |
| bool | Write (FILE *f, const char *Prefix="") const |
| bool | Read (bool Force=false) |
| 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, bool Force=false) |
Private Attributes | |
| time_t | modified |
| 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 |
| int | tmpErrors |
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, Components(), DEFAULTFRAMESPERSECOND, cChannel::Dlang(), errors, event, fileName, frameHeight, framesPerSecond, frameWidth, cChannel::GetChannelID(), tChannelID::InvalidID, tComponent::language, lifetime, MAXAPIDS, MAXDPIDS, MAXLIFETIME, MAXPRIORITY, MAXSPIDS, modified, cChannel::Name(), ownEvent, priority, scanType, cChannel::Slang(), strn0cpy(), and stUnknown.
| cRecordingInfo::cRecordingInfo | ( | const char * | FileName | ) |
Definition at line 422 of file recording.c.
References arUnknown, aspectRatio, aux, channelID, channelName, DEFAULTFRAMESPERSECOND, errors, fileName, frameHeight, framesPerSecond, frameWidth, INFOFILESUFFIX, tChannelID::InvalidID, lifetime, MAXLIFETIME, MAXPRIORITY, modified, ownEvent, priority, scanType, cString::sprintf(), stUnknown, and tmpErrors.
| cRecordingInfo::~cRecordingInfo | ( | ) |
Definition at line 442 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
Definition at line 103 of file recording.h.
References aspectRatio.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 104 of file recording.h.
References aspectRatio, and AspectRatioTexts.
Referenced by FrameParams().
|
inline |
|
inline |
Definition at line 88 of file recording.h.
References channelID.
|
inline |
Definition at line 89 of file recording.h.
References channelName.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 94 of file recording.h.
Referenced by cRecordingInfo().
|
inline |
Definition at line 93 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 111 of file recording.h.
References errors.
Referenced by cIndexFileGenerator::Action(), SetErrors(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cRecording::WriteInfo().
|
inline |
Definition at line 100 of file recording.h.
References frameHeight.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
| cString cRecordingInfo::FrameParams | ( | void | ) | const |
Definition at line 660 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 96 of file recording.h.
References framesPerSecond.
Referenced by cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 99 of file recording.h.
References frameWidth.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 90 of file recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
|
inline |
| bool cRecordingInfo::Read | ( | bool | Force = false | ) |
Definition at line 626 of file recording.c.
References esyslog, fileName, LOG_ERROR_STR, and Read().
|
private |
Definition at line 502 of file recording.c.
References arMax, arUnknown, aspectRatio, AspectRatioTexts, atod(), aux, channelID, channelName, compactspace(), errors, esyslog, frameHeight, framesPerSecond, frameWidth, tChannelID::FromString(), lifetime, modified, ownEvent, priority, cReadLine::Read(), scanType, ScanTypeChars, skipspace(), stMax, stUnknown, and tmpErrors.
Referenced by cIndexFileGenerator::Action(), Read(), and cRecording::WriteInfo().
|
inline |
|
inline |
Definition at line 102 of file recording.h.
References scanType, and ScanTypeChars.
Referenced by FrameParams().
| void cRecordingInfo::SetAux | ( | const char * | Aux | ) |
Definition at line 460 of file recording.c.
| void cRecordingInfo::SetData | ( | const char * | Title, |
| const char * | ShortText, | ||
| const char * | Description ) |
Definition at line 450 of file recording.c.
References Description(), event, ShortText(), and Title().
| void cRecordingInfo::SetErrors | ( | int | Errors, |
| int | TmpErrors = 0 ) |
Definition at line 496 of file recording.c.
References Errors(), errors, TmpErrors(), and tmpErrors.
Referenced by cIndexFileGenerator::Action().
| void cRecordingInfo::SetFileName | ( | const char * | FileName | ) |
Definition at line 489 of file recording.c.
References endswith(), fileName, INFOFILESUFFIX, and cString::sprintf().
| void cRecordingInfo::SetFrameParams | ( | uint16_t | FrameWidth, |
| uint16_t | FrameHeight, | ||
| eScanType | ScanType, | ||
| eAspectRatio | AspectRatio ) |
Definition at line 481 of file recording.c.
References AspectRatio(), aspectRatio, FrameHeight(), frameHeight, FrameWidth(), frameWidth, ScanType(), and scanType.
Referenced by cIndexFileGenerator::Action().
| void cRecordingInfo::SetFramesPerSecond | ( | double | FramesPerSecond | ) |
Definition at line 466 of file recording.c.
References FramesPerSecond(), and framesPerSecond.
Referenced by cIndexFileGenerator::Action().
| void cRecordingInfo::SetLifetime | ( | int | Lifetime | ) |
Definition at line 476 of file recording.c.
References Lifetime(), and lifetime.
| void cRecordingInfo::SetPriority | ( | int | Priority | ) |
Definition at line 471 of file recording.c.
References Priority(), and priority.
|
inline |
Definition at line 92 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 91 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 112 of file recording.h.
References tmpErrors.
Referenced by SetErrors(), and cRecording::WriteInfo().
| bool cRecordingInfo::Write | ( | FILE * | f, |
| const char * | Prefix = "" ) const |
Definition at line 606 of file recording.c.
References aspectRatio, AspectRatioTexts, aux, channelID, channelName, dtoa(), errors, frameHeight, framesPerSecond, frameWidth, itoa(), lifetime, priority, scanType, ScanTypeChars, and tmpErrors.
Referenced by cIndexFileGenerator::Action().
| bool cRecordingInfo::Write | ( | void | ) | const |
Definition at line 644 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, cSafeFile::Open(), and Write().
Referenced by Write().
|
friend |
|
private |
Definition at line 77 of file recording.h.
Referenced by AspectRatio(), AspectRatioText(), cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 72 of file recording.h.
Referenced by Aux(), cRecordingInfo(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 68 of file recording.h.
Referenced by ChannelID(), cRecordingInfo(), cRecordingInfo(), Read(), and Write().
|
private |
Definition at line 69 of file recording.h.
Referenced by ChannelName(), cRecordingInfo(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 81 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Errors(), Read(), SetErrors(), and Write().
|
private |
Definition at line 70 of file recording.h.
Referenced by cRecordingInfo(), GetEvent(), and SetData().
|
private |
Definition at line 80 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Read(), SetFileName(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 75 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameHeight(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 73 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), FramesPerSecond(), Read(), SetFramesPerSecond(), and Write().
|
private |
Definition at line 74 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), FrameWidth(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 79 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Lifetime(), Read(), SetLifetime(), and Write().
|
private |
Definition at line 67 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), and Read().
|
private |
Definition at line 71 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Read(), and ~cRecordingInfo().
|
private |
Definition at line 78 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Priority(), Read(), SetPriority(), and Write().
|
private |
Definition at line 76 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), ScanType(), ScanTypeChar(), SetFrameParams(), and Write().
|
private |
Definition at line 82 of file recording.h.
Referenced by cRecordingInfo(), Read(), SetErrors(), TmpErrors(), and Write().