Made cRecording::GetResume() public

This commit is contained in:
Klaus Schmidinger 2015-01-31 13:37:02 +01:00
parent 6749e4ead9
commit ebab5f3ec1
3 changed files with 6 additions and 2 deletions

View File

@ -3237,6 +3237,7 @@ Stefan Braun <louis.braun@gmx.de>
for reporting an endless loop in the DrawEllipse() functions for very small ellipses
for suggesting to add the menu category mcRecordingEdit for marking menus that edit
recording properties
for suggesting to make cRecording::GetResume() public
Jochen Dolze <vdr@dolze.de>
for changing cThread::SetIOPriority() from "best effort class" to "idle class" in order

View File

@ -8448,3 +8448,4 @@ Video Disk Recorder Revision History
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
- Added ARGSDIR to the ONEDIR section of Make.config.template (suggested by Derek
Kelly).
- Made cRecording::GetResume() public (suggested by Stefan Braun).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.h 3.5 2015/01/17 14:33:05 kls Exp $
* $Id: recording.h 3.6 2015/01/31 13:34:44 kls Exp $
*/
#ifndef __RECORDING_H
@ -117,7 +117,6 @@ private:
static char *StripEpisodeName(char *s, bool Strip);
char *SortName(void) const;
void ClearSortName(void);
int GetResume(void) const;
time_t start;
int priority;
int lifetime;
@ -160,6 +159,9 @@ public:
int FileSizeMB(void) const;
///< Returns the total file size of this recording (in MB), or -1 if the file
///< size is unknown.
int 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 IsNew(void) const { return GetResume() <= 0; }
bool IsEdited(void) const;
bool IsPesRecording(void) const { return isPesRecording; }