|
vdr 2.8.1
|
#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 |
| int | ParentalRating (void) |
| 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 | SetTitle (const char *Title) |
| void | SetShortText (const char *ShortText) |
| void | SetDescription (const char *Description) |
| void | SetParentalRating (int ParentalRating) |
| 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 70 of file recording.h.
|
private |
Definition at line 392 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 457 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 477 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
Definition at line 110 of file recording.h.
References aspectRatio.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 111 of file recording.h.
References aspectRatio, and AspectRatioTexts.
Referenced by FrameParams().
|
inline |
|
inline |
Definition at line 94 of file recording.h.
References channelID.
|
inline |
Definition at line 95 of file recording.h.
References channelName.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 100 of file recording.h.
Referenced by cRecordingInfo().
|
inline |
Definition at line 99 of file recording.h.
Referenced by SetData(), SetDescription(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 122 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 107 of file recording.h.
References frameHeight.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
| cString cRecordingInfo::FrameParams | ( | void | ) | const |
Definition at line 715 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 102 of file recording.h.
References framesPerSecond.
Referenced by cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 106 of file recording.h.
References frameWidth.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 96 of file recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
|
inline |
Definition at line 105 of file recording.h.
Referenced by SetParentalRating().
|
inline |
| bool cRecordingInfo::Read | ( | bool | Force = false | ) |
Definition at line 681 of file recording.c.
References esyslog, fileName, LOG_ERROR_STR, and Read().
|
private |
Definition at line 557 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 109 of file recording.h.
References scanType, and ScanTypeChars.
Referenced by FrameParams().
| void cRecordingInfo::SetAux | ( | const char * | Aux | ) |
Definition at line 495 of file recording.c.
| void cRecordingInfo::SetData | ( | const char * | Title, |
| const char * | ShortText, | ||
| const char * | Description ) |
Definition at line 485 of file recording.c.
References Description(), SetDescription(), SetShortText(), SetTitle(), ShortText(), and Title().
| void cRecordingInfo::SetDescription | ( | const char * | Description | ) |
Definition at line 526 of file recording.c.
References Description(), and event.
Referenced by SetData().
| void cRecordingInfo::SetErrors | ( | int | Errors, |
| int | TmpErrors = 0 ) |
Definition at line 551 of file recording.c.
References Errors(), errors, TmpErrors(), and tmpErrors.
Referenced by cIndexFileGenerator::Action().
| void cRecordingInfo::SetFileName | ( | const char * | FileName | ) |
Definition at line 544 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 536 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 501 of file recording.c.
References FramesPerSecond(), and framesPerSecond.
Referenced by cIndexFileGenerator::Action().
| void cRecordingInfo::SetLifetime | ( | int | Lifetime | ) |
Definition at line 511 of file recording.c.
References Lifetime(), and lifetime.
| void cRecordingInfo::SetParentalRating | ( | int | ParentalRating | ) |
Definition at line 531 of file recording.c.
References event, and ParentalRating().
Referenced by cMenuRecordingEdit::ApplyChanges().
| void cRecordingInfo::SetPriority | ( | int | Priority | ) |
Definition at line 506 of file recording.c.
References Priority(), and priority.
| void cRecordingInfo::SetShortText | ( | const char * | ShortText | ) |
Definition at line 521 of file recording.c.
References event, and ShortText().
Referenced by SetData().
| void cRecordingInfo::SetTitle | ( | const char * | Title | ) |
|
inline |
Definition at line 98 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and SetShortText().
|
inline |
Definition at line 97 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and SetTitle().
|
inline |
Definition at line 123 of file recording.h.
References tmpErrors.
Referenced by SetErrors(), and cRecording::WriteInfo().
| bool cRecordingInfo::Write | ( | FILE * | f, |
| const char * | Prefix = "" ) const |
Definition at line 661 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 699 of file recording.c.
References cSafeFile::Close(), fileName, LOG_ERROR_STR, cSafeFile::Open(), and Write().
Referenced by Write().
|
friend |
|
private |
Definition at line 83 of file recording.h.
Referenced by AspectRatio(), AspectRatioText(), cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 78 of file recording.h.
Referenced by Aux(), cRecordingInfo(), cRecordingInfo(), Read(), SetAux(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 74 of file recording.h.
Referenced by ChannelID(), cRecordingInfo(), cRecordingInfo(), Read(), and Write().
|
private |
Definition at line 75 of file recording.h.
Referenced by ChannelName(), cRecordingInfo(), cRecordingInfo(), Read(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 87 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Errors(), Read(), SetErrors(), and Write().
|
private |
Definition at line 76 of file recording.h.
Referenced by cRecordingInfo(), GetEvent(), SetDescription(), SetParentalRating(), SetShortText(), and SetTitle().
|
private |
Definition at line 86 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Read(), SetFileName(), Write(), and ~cRecordingInfo().
|
private |
Definition at line 81 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameHeight(), FrameParams(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 79 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), FramesPerSecond(), Read(), SetFramesPerSecond(), and Write().
|
private |
Definition at line 80 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), FrameWidth(), Read(), SetFrameParams(), and Write().
|
private |
Definition at line 85 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Lifetime(), Read(), SetLifetime(), and Write().
|
private |
Definition at line 73 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), and Read().
|
private |
Definition at line 77 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Read(), and ~cRecordingInfo().
|
private |
Definition at line 84 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), Priority(), Read(), SetPriority(), and Write().
|
private |
Definition at line 82 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), ScanType(), ScanTypeChar(), SetFrameParams(), and Write().
|
private |
Definition at line 88 of file recording.h.
Referenced by cRecordingInfo(), Read(), SetErrors(), TmpErrors(), and Write().