vdr 2.6.1
|
#include <recording.h>
Public Member Functions | |
cRecording (cTimer *Timer, const cEvent *Event) | |
cRecording (const char *FileName) | |
virtual | ~cRecording () |
int | Id (void) const |
time_t | Start (void) const |
int | Priority (void) const |
int | Lifetime (void) const |
time_t | Deleted (void) const |
void | SetDeleted (void) |
virtual int | Compare (const cListObject &ListObject) const |
bool | IsInPath (const char *Path) const |
cString | Folder (void) const |
cString | BaseName (void) const |
const char * | Name (void) const |
const char * | FileName (void) const |
const char * | Title (char Delimiter=' ', bool NewIndicator=false, int Level=-1) const |
cRecordingInfo * | Info (void) const |
const char * | PrefixFileName (char Prefix) |
int | HierarchyLevels (void) const |
void | ResetResume (void) const |
double | FramesPerSecond (void) const |
int | NumFrames (void) const |
int | LengthInSeconds (void) const |
int | FileSizeMB (void) const |
int | GetResume (void) const |
bool | IsNew (void) const |
bool | IsEdited (void) const |
bool | IsPesRecording (void) const |
bool | IsOnVideoDirectoryFileSystem (void) const |
bool | HasMarks (void) const |
bool | DeleteMarks (void) |
void | ReadInfo (void) |
bool | WriteInfo (const char *OtherFileName=NULL) |
void | SetStartTime (time_t Start) |
bool | ChangePriorityLifetime (int NewPriority, int NewLifetime) |
bool | ChangeName (const char *NewName) |
bool | Delete (void) |
bool | Remove (void) |
bool | Undelete (void) |
int | IsInUse (void) const |
cRecording (cTimer *Timer, const cEvent *Event) | |
cRecording (const char *FileName) | |
virtual | ~cRecording () |
int | Id (void) const |
time_t | Start (void) const |
int | Priority (void) const |
int | Lifetime (void) const |
time_t | Deleted (void) const |
void | SetDeleted (void) |
virtual int | Compare (const cListObject &ListObject) const |
bool | IsInPath (const char *Path) const |
cString | Folder (void) const |
cString | BaseName (void) const |
const char * | Name (void) const |
const char * | FileName (void) const |
const char * | Title (char Delimiter=' ', bool NewIndicator=false, int Level=-1) const |
cRecordingInfo * | Info (void) const |
const char * | PrefixFileName (char Prefix) |
int | HierarchyLevels (void) const |
void | ResetResume (void) const |
double | FramesPerSecond (void) const |
int | NumFrames (void) const |
int | LengthInSeconds (void) const |
int | FileSizeMB (void) const |
int | GetResume (void) const |
bool | IsNew (void) const |
bool | IsEdited (void) const |
bool | IsPesRecording (void) const |
bool | IsOnVideoDirectoryFileSystem (void) const |
bool | HasMarks (void) const |
bool | DeleteMarks (void) |
void | ReadInfo (void) |
bool | WriteInfo (const char *OtherFileName=NULL) |
void | SetStartTime (time_t Start) |
bool | ChangePriorityLifetime (int NewPriority, int NewLifetime) |
bool | ChangeName (const char *NewName) |
bool | Delete (void) |
bool | Remove (void) |
bool | Undelete (void) |
int | IsInUse (void) const |
![]() | |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (void) const |
Private Member Functions | |
cRecording (const cRecording &) | |
cRecording & | operator= (const cRecording &) |
char * | SortName (void) const |
void | ClearSortName (void) |
void | SetId (int Id) |
cRecording (const cRecording &) | |
cRecording & | operator= (const cRecording &) |
char * | SortName (void) const |
void | ClearSortName (void) |
void | SetId (int Id) |
Static Private Member Functions | |
static char * | StripEpisodeName (char *s, bool Strip) |
static char * | StripEpisodeName (char *s, bool Strip) |
Private Attributes | |
int | id |
int | resume |
char * | titleBuffer |
char * | sortBufferName |
char * | sortBufferTime |
char * | fileName |
char * | name |
int | fileSizeMB |
int | numFrames |
int | channel |
int | instanceId |
bool | isPesRecording |
int | isOnVideoDirectoryFileSystem |
double | framesPerSecond |
cRecordingInfo * | info |
time_t | start |
int | priority |
int | lifetime |
time_t | deleted |
Friends | |
class | cRecordings |
Definition at line 101 of file include/vdr/recording.h.
|
private |
Definition at line 772 of file recording.c.
References cTimer::Aux(), channel, cTimer::Channel(), DEFAULTFRAMESPERSECOND, deleted, cTimer::File(), fileName, fileSizeMB, FOLDERDELIMCHAR, framesPerSecond, info, instanceId, InstanceId, isempty(), isOnVideoDirectoryFileSystem, isPesRecording, cTimer::IsSingleEvent(), cRecordingInfo::lifetime, lifetime, cTimer::Lifetime(), cChannel::Name(), name, cChannel::Number(), numFrames, cRecordingInfo::priority, priority, cTimer::Priority(), resume, RESUME_NOT_INITIALIZED, cRecordingInfo::SetAux(), cTimer::SetFile(), Setup, cEvent::ShortText(), sortBufferName, sortBufferTime, cString::sprintf(), start, cTimer::StartTime(), strreplace(), TIMERMACRO_EPISODE, TIMERMACRO_TITLE, Title(), cEvent::Title(), titleBuffer, and cSetup::UseSubtitle.
cRecording::cRecording | ( | const char * | FileName | ) |
Definition at line 828 of file recording.c.
References channel, DATAFORMATPES, DATAFORMATTS, DEFAULTFRAMESPERSECOND, deleted, esyslog, ExchangeChars(), fileName, FileName(), fileSizeMB, FOLDERDELIMCHAR, cRecordingInfo::framesPerSecond, framesPerSecond, GetResume(), info, INFOFILESUFFIX, instanceId, isempty(), isOnVideoDirectoryFileSystem, isPesRecording, cRecordingInfo::lifetime, lifetime, LOG_ERROR_STR, MALLOC, MAXLIFETIME, MAXPRIORITY, name, cVideoDirectory::Name(), numFrames, cRecordingInfo::ownEvent, cRecordingInfo::priority, priority, cRecordingInfo::Read(), cReadLine::Read(), resume, RESUME_NOT_INITIALIZED, cRecordingInfo::SetData(), cEvent::SetTitle(), sortBufferName, sortBufferTime, cString::sprintf(), start, strgetlast(), SUMMARYFILESUFFIX, cRecordingInfo::Title(), and titleBuffer.
|
virtual |
Definition at line 953 of file recording.c.
References fileName, info, name, sortBufferName, sortBufferTime, and titleBuffer.
|
private |
cRecording::cRecording | ( | const char * | FileName | ) |
|
virtual |
cString cRecording::BaseName | ( | void | ) | const |
Returns the base name of this recording (without the video directory and folder).
For use in menus etc.
Definition at line 1061 of file recording.c.
References FOLDERDELIMCHAR, name, and strgetlast().
Referenced by cMenuRecordingEdit::cMenuRecordingEdit().
cString cRecording::BaseName | ( | void | ) | const |
Returns the base name of this recording (without the video directory and folder).
For use in menus etc.
bool cRecording::ChangeName | ( | const char * | NewName | ) |
Changes the name of this recording to the given value.
NewName is in the same format as the one returned by Name(), i.e. without the video directory and the actual '*.rec' part, and using FOLDERDELIMCHAR as the directory delimiter. If the new name is the same as the old one, nothing happens. Returns false in case of error.
Definition at line 1253 of file recording.c.
References ClearSortName(), dsyslog, esyslog, fileName, FileName(), isOnVideoDirectoryFileSystem, MakeDirs(), cVideoDirectory::MoveVideoFile(), name, and Name().
Referenced by cMenuRecordingEdit::ApplyChanges().
bool cRecording::ChangeName | ( | const char * | NewName | ) |
Changes the name of this recording to the given value.
NewName is in the same format as the one returned by Name(), i.e. without the video directory and the actual '*.rec' part, and using FOLDERDELIMCHAR as the directory delimiter. If the new name is the same as the old one, nothing happens. Returns false in case of error.
bool cRecording::ChangePriorityLifetime | ( | int | NewPriority, |
int | NewLifetime | ||
) |
Changes the priority and lifetime of this recording to the given values.
If the new values are the same as the old ones, nothing happens. Returns false in case of error.
Definition at line 1228 of file recording.c.
References dsyslog, fileName, FileName(), info, IsPesRecording(), cRecordingInfo::lifetime, lifetime, Lifetime(), Name(), cRecordingInfo::priority, priority, Priority(), cVideoDirectory::RenameVideoFile(), cRecordingInfo::SetFileName(), and WriteInfo().
Referenced by cMenuRecordingEdit::ApplyChanges().
bool cRecording::ChangePriorityLifetime | ( | int | NewPriority, |
int | NewLifetime | ||
) |
Changes the priority and lifetime of this recording to the given values.
If the new values are the same as the old ones, nothing happens. Returns false in case of error.
|
private |
Definition at line 1016 of file recording.c.
References sortBufferName, and sortBufferTime.
Referenced by ChangeName().
|
private |
|
virtual |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented from cListObject.
Definition at line 1037 of file recording.c.
References cSetup::RecSortingDirection, rsdAscending, Setup, and SortName().
|
virtual |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented from cListObject.
bool cRecording::Delete | ( | void | ) |
Changes the file name so that it will no longer be visible in the "Recordings" menu Returns false in case of error.
Definition at line 1280 of file recording.c.
References DELEXT, FileName(), cRecordingUserCommand::InvokeCommand(), isyslog, RECEXT, cVideoDirectory::RemoveVideoFile(), cVideoDirectory::RenameVideoFile(), and RUC_DELETERECORDING.
Referenced by cRecordingsHandlerEntry::Active(), AssertFreeDiskSpace(), and cMenuRecordings::Delete().
bool cRecording::Delete | ( | void | ) |
Changes the file name so that it will no longer be visible in the "Recordings" menu Returns false in case of error.
|
inline |
Definition at line 137 of file include/vdr/recording.h.
References deleted.
|
inline |
Definition at line 137 of file recording.h.
References deleted.
bool cRecording::DeleteMarks | ( | void | ) |
Deletes the editing marks from this recording (if any).
Returns true if the operation was successful. If there is no marks file for this recording, it also returns true.
Definition at line 1187 of file recording.c.
References cMarks::DeleteMarksFile().
bool cRecording::DeleteMarks | ( | void | ) |
Deletes the editing marks from this recording (if any).
Returns true if the operation was successful. If there is no marks file for this recording, it also returns true.
const char * cRecording::FileName | ( | void | ) | const |
Returns the full path name to the recording directory, including the video directory and the actual '*.rec'.
For disk file access use.
Definition at line 1066 of file recording.c.
References channel, DirectoryNameMax, DirectoryPathMax, dsyslog, ExchangeChars(), fileName, instanceId, isPesRecording, lifetime, LimitNameLengths(), name, cVideoDirectory::Name(), Name(), NAMEFORMATPES, NAMEFORMATTS, priority, cString::sprintf(), and start.
Referenced by cMenuRecordingEdit::Action(), cRecordingsHandlerEntry::Active(), cMenuRecordingEdit::ApplyChanges(), ChangeName(), ChangePriorityLifetime(), cMenuRecording::cMenuRecording(), cMenuRecordingEdit::cMenuRecordingEdit(), cMenuRecordings::Commands(), cRecordControl::cRecordControl(), cRecording(), cReplayControl::cReplayControl(), cRecordings::DelByName(), cMenuRecordings::Delete(), Delete(), cMenuRecordingEdit::Delete(), cMarks::DeleteMarksFile(), FileSizeMB(), GetResume(), IsInUse(), IsOnVideoDirectoryFileSystem(), cMarks::MarksFileName(), NumFrames(), cMenuRecordings::Play(), PrefixFileName(), RecordingInUseMessage(), Remove(), cMenuRecordings::Rewind(), cVideoDirectoryScannerThread::ScanVideoDir(), cMenuRecordingEdit::SetHelpKeys(), SortName(), Undelete(), and WriteInfo().
const char * cRecording::FileName | ( | void | ) | const |
Returns the full path name to the recording directory, including the video directory and the actual '*.rec'.
For disk file access use.
int cRecording::FileSizeMB | ( | void | ) | const |
Returns the total file size of this recording (in MB), or -1 if the file size is unknown.
Definition at line 1378 of file recording.c.
References DirSizeMB(), FileName(), fileSizeMB, cIndexFile::IndexFileName(), IsPesRecording(), LastModifiedTime(), and MININDEXAGE.
Referenced by cVideoDirectoryScannerThread::ScanVideoDir().
int cRecording::FileSizeMB | ( | void | ) | const |
Returns the total file size of this recording (in MB), or -1 if the file size is unknown.
cString cRecording::Folder | ( | void | ) | const |
Returns the name of the folder this recording is stored in (without the video directory).
For use in menus etc.
Definition at line 1054 of file recording.c.
References FOLDERDELIMCHAR, and name.
Referenced by cMenuRecordingEdit::ApplyChanges(), and cMenuRecordingEdit::cMenuRecordingEdit().
cString cRecording::Folder | ( | void | ) | const |
Returns the name of the folder this recording is stored in (without the video directory).
For use in menus etc.
|
inline |
Definition at line 160 of file include/vdr/recording.h.
References framesPerSecond.
Referenced by cCuttingThread::cCuttingThread(), cDvbPlayer::cDvbPlayer(), cReplayControl::cReplayControl(), CutRecording(), cCutter::EditedFileName(), and LengthInSeconds().
|
inline |
Definition at line 160 of file recording.h.
References framesPerSecond.
int cRecording::GetResume | ( | void | ) | const |
Returns the index of the frame where replay of this recording shall be resumed, or -1 in case of an error.
Definition at line 1028 of file recording.c.
References FileName(), isPesRecording, cResumeFile::Read(), resume, and RESUME_NOT_INITIALIZED.
Referenced by cRecording(), and IsNew().
int cRecording::GetResume | ( | void | ) | const |
Returns the index of the frame where replay of this recording shall be resumed, or -1 in case of an error.
bool cRecording::HasMarks | ( | void | ) | const |
Returns true if this recording has any editing marks.
Definition at line 1182 of file recording.c.
References cMarks::MarksFileName().
Referenced by cMenuRecordingEdit::SetHelpKeys().
bool cRecording::HasMarks | ( | void | ) | const |
Returns true if this recording has any editing marks.
int cRecording::HierarchyLevels | ( | void | ) | const |
Definition at line 1158 of file recording.c.
References FOLDERDELIMCHAR, and name.
Referenced by Title().
int cRecording::HierarchyLevels | ( | void | ) | const |
|
inline |
Definition at line 133 of file include/vdr/recording.h.
References id.
Referenced by cSVDRPServer::CmdLSTR(), and SetId().
|
inline |
Definition at line 133 of file recording.h.
References id.
|
inline |
Definition at line 156 of file include/vdr/recording.h.
References info.
Referenced by cMenuRecording::Display(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Definition at line 156 of file recording.h.
References info.
bool cRecording::IsEdited | ( | void | ) | const |
Definition at line 1169 of file recording.c.
References FOLDERDELIMCHAR, name, and strgetlast().
Referenced by AssertFreeDiskSpace().
bool cRecording::IsEdited | ( | void | ) | const |
bool cRecording::IsInPath | ( | const char * | Path | ) | const |
Returns true if this recording is stored anywhere under the given Path.
If Path is NULL or an empty string, the entire video directory is checked.
Definition at line 1046 of file recording.c.
References FOLDERDELIMCHAR, isempty(), and name.
bool cRecording::IsInPath | ( | const char * | Path | ) | const |
Returns true if this recording is stored anywhere under the given Path.
If Path is NULL or an empty string, the entire video directory is checked.
int cRecording::IsInUse | ( | void | ) | const |
Checks whether this recording is currently in use and therefore shall not be tampered with.
Returns 0 (ruNone) if the recording is not in use. The return value may consist of several or'd eRecordingUsage flags. If the caller is just interested in whether the recording is in use or not, the return value can be used like a boolean value. A recording may be in use for several reasons (like being recorded and replayed, as in time-shift).
Definition at line 1343 of file recording.c.
References FileName(), cRecordControls::GetRecordControl(), cRecordingsHandler::GetUsage(), cReplayControl::NowReplaying(), RecordingsHandler, ruNone, ruReplay, and ruTimer.
Referenced by cMenuRecordingEdit::Action(), cMenuRecordingItem::cMenuRecordingItem(), and cMenuRecordingEdit::Set().
int cRecording::IsInUse | ( | void | ) | const |
Checks whether this recording is currently in use and therefore shall not be tampered with.
Returns 0 (ruNone) if the recording is not in use. The return value may consist of several or'd eRecordingUsage flags. If the caller is just interested in whether the recording is in use or not, the return value can be used like a boolean value. A recording may be in use for several reasons (like being recorded and replayed, as in time-shift).
|
inline |
Definition at line 172 of file include/vdr/recording.h.
References GetResume().
Referenced by Title().
|
inline |
Definition at line 172 of file recording.h.
References GetResume().
bool cRecording::IsOnVideoDirectoryFileSystem | ( | void | ) | const |
Definition at line 1175 of file recording.c.
References FileName(), isOnVideoDirectoryFileSystem, and cVideoDirectory::IsOnVideoDirectoryFileSystem().
Referenced by AssertFreeDiskSpace(), and cVideoDirectoryScannerThread::ScanVideoDir().
bool cRecording::IsOnVideoDirectoryFileSystem | ( | void | ) | const |
|
inline |
Definition at line 174 of file include/vdr/recording.h.
References isPesRecording.
Referenced by cCuttingThread::cCuttingThread(), cDvbPlayer::cDvbPlayer(), ChangePriorityLifetime(), cReplayControl::cReplayControl(), CutRecording(), cMenuRecordingEdit::Delete(), cCutter::EditedFileName(), FileSizeMB(), GenerateIndex(), cMarks::MarksFileName(), NumFrames(), cMenuRecordings::Rewind(), and cMenuRecordingEdit::SetHelpKeys().
|
inline |
Definition at line 174 of file recording.h.
References isPesRecording.
int cRecording::LengthInSeconds | ( | void | ) | const |
Returns the length (in seconds) of this recording, or -1 in case of error.
Definition at line 1370 of file recording.c.
References FramesPerSecond(), and NumFrames().
Referenced by Title().
int cRecording::LengthInSeconds | ( | void | ) | const |
Returns the length (in seconds) of this recording, or -1 in case of error.
|
inline |
Definition at line 136 of file include/vdr/recording.h.
References lifetime.
Referenced by cMenuRecordingEdit::ApplyChanges(), AssertFreeDiskSpace(), ChangePriorityLifetime(), and cMenuRecordingEdit::cMenuRecordingEdit().
|
inline |
Definition at line 136 of file recording.h.
References lifetime.
|
inline |
Returns the full name of the recording (without the video directory).
For use in menus etc.
Definition at line 149 of file include/vdr/recording.h.
References name.
Referenced by cMenuRecordingEdit::Action(), cMenuRecordingEdit::ApplyChanges(), ChangeName(), ChangePriorityLifetime(), cRecordControl::cRecordControl(), cReplayControl::cReplayControl(), CutRecording(), FileName(), cMenuRecordingEdit::Folder(), GenerateIndex(), cVideoDirectoryScannerThread::ScanVideoDir(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
|
inline |
Returns the full name of the recording (without the video directory).
For use in menus etc.
Definition at line 149 of file recording.h.
References name.
int cRecording::NumFrames | ( | void | ) | const |
Returns the number of frames in this recording.
If the number of frames is unknown, -1 will be returned.
Definition at line 1359 of file recording.c.
References FileName(), cIndexFile::GetLength(), cIndexFile::IndexFileName(), IsPesRecording(), LastModifiedTime(), MININDEXAGE, and numFrames.
Referenced by LengthInSeconds(), and cVideoDirectoryScannerThread::ScanVideoDir().
int cRecording::NumFrames | ( | void | ) | const |
Returns the number of frames in this recording.
If the number of frames is unknown, -1 will be returned.
|
private |
|
private |
const char * cRecording::PrefixFileName | ( | char | Prefix | ) |
Definition at line 1147 of file recording.c.
References fileName, FileName(), and cVideoDirectory::PrefixVideoFileName().
Referenced by cCutter::EditedFileName().
const char * cRecording::PrefixFileName | ( | char | Prefix | ) |
|
inline |
Definition at line 135 of file include/vdr/recording.h.
References priority.
Referenced by cMenuRecordingEdit::ApplyChanges(), AssertFreeDiskSpace(), ChangePriorityLifetime(), and cMenuRecordingEdit::cMenuRecordingEdit().
|
inline |
Definition at line 135 of file recording.h.
References priority.
void cRecording::ReadInfo | ( | void | ) |
Definition at line 1192 of file recording.c.
References cRecordingInfo::framesPerSecond, framesPerSecond, info, cRecordingInfo::lifetime, lifetime, cRecordingInfo::priority, priority, and cRecordingInfo::Read().
void cRecording::ReadInfo | ( | void | ) |
bool cRecording::Remove | ( | void | ) |
Actually removes the file from the disk Returns false in case of error.
Definition at line 1306 of file recording.c.
References DELEXT, endswith(), esyslog, FileName(), isyslog, and cVideoDirectory::RemoveVideoFile().
Referenced by AssertFreeDiskSpace().
bool cRecording::Remove | ( | void | ) |
Actually removes the file from the disk Returns false in case of error.
void cRecording::ResetResume | ( | void | ) | const |
Definition at line 1354 of file recording.c.
References resume, and RESUME_NOT_INITIALIZED.
void cRecording::ResetResume | ( | void | ) | const |
|
inline |
Definition at line 138 of file include/vdr/recording.h.
References deleted.
Referenced by cRecordings::DelByName(), and cVideoDirectoryScannerThread::ScanVideoDir().
|
inline |
Definition at line 138 of file recording.h.
References deleted.
|
private |
|
private |
void cRecording::SetStartTime | ( | time_t | Start | ) |
Sets the start time of this recording to the given value.
If a filename has already been set for this recording, it will be deleted and a new one will be generated (using the new start time) at the next call to FileName(). Use this function with care - it does not check whether a recording with this new name already exists, and if there is one, results may be unexpected!
Definition at line 1221 of file recording.c.
References fileName, start, and Start().
Referenced by cCutter::EditedFileName().
void cRecording::SetStartTime | ( | time_t | Start | ) |
Sets the start time of this recording to the given value.
If a filename has already been set for this recording, it will be deleted and a new one will be generated (using the new start time) at the next call to FileName(). Use this function with care - it does not check whether a recording with this new name already exists, and if there is one, results may be unexpected!
|
private |
Definition at line 992 of file recording.c.
References cSetup::AlwaysSortFoldersFirst, FileName(), MALLOC, cVideoDirectory::Name(), cSetup::RecordingDirs, RecordingsSortMode, cSetup::RecSortingDirection, rsdAscending, rsmName, rsmTime, Setup, sortBufferName, sortBufferTime, start, StripEpisodeName(), and strreplace().
Referenced by Compare().
|
private |
|
inline |
Definition at line 134 of file include/vdr/recording.h.
References start.
Referenced by AssertFreeDiskSpace(), cCutter::EditedFileName(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinLCARSDisplayReplay::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and SetStartTime().
|
inline |
Definition at line 134 of file recording.h.
References start.
|
staticprivate |
Definition at line 963 of file recording.c.
References cSetup::RecSortingDirection, rsdAscending, and Setup.
Referenced by SortName().
|
staticprivate |
const char * cRecording::Title | ( | char | Delimiter = ' ' , |
bool | NewIndicator = false , |
||
int | Level = -1 |
||
) | const |
Definition at line 1084 of file recording.c.
References cRecordingInfo::Errors(), FOLDERDELIMCHAR, HierarchyLevels(), info, IsNew(), LengthInSeconds(), MALLOC, max(), name, cString::sprintf(), start, stripspace(), strn0cpy(), and titleBuffer.
Referenced by cSVDRPServer::CmdLSTR(), cMenuRecordingItem::cMenuRecordingItem(), cRecording(), and cSkinDisplayReplay::SetRecording().
const char * cRecording::Title | ( | char | Delimiter = ' ' , |
bool | NewIndicator = false , |
||
int | Level = -1 |
||
) | const |
bool cRecording::Undelete | ( | void | ) |
Changes the file name so that it will be visible in the "Recordings" menu again and not processed by cRemoveDeletedRecordingsThread.
Returns false in case of error
Definition at line 1317 of file recording.c.
References DELEXT, esyslog, FileName(), isyslog, RECEXT, and cVideoDirectory::RenameVideoFile().
bool cRecording::Undelete | ( | void | ) |
Changes the file name so that it will be visible in the "Recordings" menu again and not processed by cRemoveDeletedRecordingsThread.
Returns false in case of error
bool cRecording::WriteInfo | ( | const char * | OtherFileName = NULL | ) |
Writes in info file of this recording.
If OtherFileName is given, the info file will be written under that recording file name instead of this recording's file name.
Definition at line 1200 of file recording.c.
References cSafeFile::Close(), cRecordingInfo::Errors(), FileName(), info, INFOFILESUFFIX, isPesRecording, LOG_ERROR_STR, max(), cSafeFile::Open(), cRecordingInfo::Read(), cRecordingInfo::SetErrors(), cString::sprintf(), and cRecordingInfo::Write().
Referenced by ChangePriorityLifetime(), cRecordControl::cRecordControl(), and cCutter::Start().
bool cRecording::WriteInfo | ( | const char * | OtherFileName = NULL | ) |
Writes in info file of this recording.
If OtherFileName is given, the info file will be written under that recording file name instead of this recording's file name.
|
friend |
Definition at line 102 of file include/vdr/recording.h.
|
private |
Definition at line 113 of file include/vdr/recording.h.
Referenced by cRecording(), and FileName().
|
private |
Definition at line 128 of file include/vdr/recording.h.
Referenced by cRecording(), Deleted(), and SetDeleted().
|
mutableprivate |
Definition at line 109 of file include/vdr/recording.h.
Referenced by ChangeName(), ChangePriorityLifetime(), cRecording(), cRecordings::DelByName(), FileName(), PrefixFileName(), SetStartTime(), and ~cRecording().
|
mutableprivate |
Definition at line 111 of file include/vdr/recording.h.
Referenced by cRecording(), and FileSizeMB().
|
private |
Definition at line 117 of file include/vdr/recording.h.
Referenced by cRecording(), FramesPerSecond(), and ReadInfo().
|
private |
Definition at line 104 of file include/vdr/recording.h.
Referenced by Id().
|
private |
Definition at line 118 of file include/vdr/recording.h.
Referenced by ChangePriorityLifetime(), cRecording(), Info(), ReadInfo(), Title(), WriteInfo(), and ~cRecording().
|
private |
Definition at line 114 of file include/vdr/recording.h.
Referenced by cRecording(), and FileName().
|
mutableprivate |
Definition at line 116 of file include/vdr/recording.h.
Referenced by ChangeName(), cRecording(), and IsOnVideoDirectoryFileSystem().
|
private |
Definition at line 115 of file include/vdr/recording.h.
Referenced by cRecording(), FileName(), GetResume(), IsPesRecording(), and WriteInfo().
|
private |
Definition at line 127 of file include/vdr/recording.h.
Referenced by ChangePriorityLifetime(), cRecording(), FileName(), Lifetime(), and ReadInfo().
|
mutableprivate |
Definition at line 110 of file include/vdr/recording.h.
Referenced by BaseName(), ChangeName(), cRecording(), FileName(), Folder(), HierarchyLevels(), IsEdited(), IsInPath(), Name(), Title(), and ~cRecording().
|
mutableprivate |
Definition at line 112 of file include/vdr/recording.h.
Referenced by cRecording(), and NumFrames().
|
private |
Definition at line 126 of file include/vdr/recording.h.
Referenced by ChangePriorityLifetime(), cRecording(), FileName(), Priority(), and ReadInfo().
|
mutableprivate |
Definition at line 105 of file include/vdr/recording.h.
Referenced by cRecording(), GetResume(), and ResetResume().
|
mutableprivate |
Definition at line 107 of file include/vdr/recording.h.
Referenced by ClearSortName(), cRecording(), SortName(), and ~cRecording().
|
mutableprivate |
Definition at line 108 of file include/vdr/recording.h.
Referenced by ClearSortName(), cRecording(), SortName(), and ~cRecording().
|
private |
Definition at line 125 of file include/vdr/recording.h.
Referenced by cRecording(), FileName(), SetStartTime(), SortName(), Start(), and Title().
|
mutableprivate |
Definition at line 106 of file include/vdr/recording.h.
Referenced by cRecording(), Title(), and ~cRecording().