vdr 2.7.4
|
#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 | |
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 |
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(), and stUnknown.
cRecordingInfo::~cRecordingInfo | ( | ) |
Definition at line 441 of file recording.c.
References aux, channelName, fileName, and ownEvent.
|
inline |
Definition at line 100 of file recording.h.
References aspectRatio.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 101 of file recording.h.
References aspectRatio, and AspectRatioTexts.
Referenced by FrameParams().
|
inline |
|
inline |
Definition at line 87 of file recording.h.
References channelID.
|
inline |
Definition at line 88 of file recording.h.
References channelName.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 93 of file recording.h.
Referenced by cRecordingInfo().
|
inline |
Definition at line 92 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 106 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 97 of file recording.h.
References frameHeight.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
cString cRecordingInfo::FrameParams | ( | void | ) | const |
Definition at line 637 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 95 of file recording.h.
References framesPerSecond.
Referenced by cIndexFileGenerator::Action(), and SetFramesPerSecond().
|
inline |
Definition at line 96 of file recording.h.
References frameWidth.
Referenced by cIndexFileGenerator::Action(), and SetFrameParams().
|
inline |
Definition at line 89 of file recording.h.
References event.
Referenced by cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
private |
Definition at line 490 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, and stUnknown.
Referenced by cIndexFileGenerator::Action(), and cRecording::WriteInfo().
bool cRecordingInfo::Read | ( | void | ) |
Definition at line 603 of file recording.c.
References esyslog, fileName, LOG_ERROR_STR, and Read().
Referenced by Read().
|
inline |
|
inline |
Definition at line 99 of file recording.h.
References scanType, and ScanTypeChars.
Referenced by FrameParams().
void cRecordingInfo::SetAux | ( | const char * | Aux | ) |
Definition at line 459 of file recording.c.
void cRecordingInfo::SetData | ( | const char * | Title, |
const char * | ShortText, | ||
const char * | Description ) |
Definition at line 449 of file recording.c.
References Description(), event, ShortText(), and Title().
void cRecordingInfo::SetErrors | ( | int | Errors | ) |
Definition at line 485 of file recording.c.
References Errors(), and errors.
Referenced by cIndexFileGenerator::Action().
void cRecordingInfo::SetFileName | ( | const char * | FileName | ) |
Definition at line 478 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 470 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 465 of file recording.c.
References FramesPerSecond(), and framesPerSecond.
Referenced by cIndexFileGenerator::Action().
|
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 90 of file recording.h.
Referenced by SetData(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
bool cRecordingInfo::Write | ( | FILE * | f, |
const char * | Prefix = "" ) const |
Definition at line 586 of file recording.c.
References aspectRatio, AspectRatioTexts, aux, channelID, channelName, dtoa(), errors, frameHeight, framesPerSecond, frameWidth, itoa(), lifetime, priority, scanType, and ScanTypeChars.
Referenced by cIndexFileGenerator::Action().
bool cRecordingInfo::Write | ( | void | ) | const |
Definition at line 621 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(), Read(), 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(), Read(), and Write().
|
private |
Definition at line 76 of file recording.h.
Referenced by cRecordingInfo(), cRecordingInfo(), FrameParams(), Read(), ScanType(), ScanTypeChar(), SetFrameParams(), and Write().