summaryrefslogtreecommitdiff
path: root/recording.h
diff options
context:
space:
mode:
Diffstat (limited to 'recording.h')
-rw-r--r--recording.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/recording.h b/recording.h
index 939878f..93b5a9c 100644
--- a/recording.h
+++ b/recording.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.h 2.14 2010/03/07 14:06:15 kls Exp $
+ * $Id: recording.h 2.16 2011/02/27 12:48:21 kls Exp $
*/
#ifndef __RECORDING_H
@@ -117,6 +117,7 @@ public:
bool IsNew(void) const { return GetResume() <= 0; }
bool IsEdited(void) const;
bool IsPesRecording(void) const { return isPesRecording; }
+ void ReadInfo(void);
bool WriteInfo(void);
bool Delete(void);
// Changes the file name so that it will no longer be visible in the "Recordings" menu
@@ -165,6 +166,7 @@ public:
cRecording *GetByName(const char *FileName);
void AddByName(const char *FileName, bool TriggerUpdate = true);
void DelByName(const char *FileName);
+ void UpdateByName(const char *FileName);
int TotalFileSizeMB(void); ///< Only for deleted recordings!
};
@@ -188,9 +190,13 @@ public:
class cMarks : public cConfig<cMark> {
private:
+ cString fileName;
double framesPerSecond;
+ time_t lastUpdate;
+ time_t lastFileTime;
public:
bool Load(const char *RecordingFileName, double FramesPerSecond = DEFAULTFRAMESPERSECOND, bool IsPesRecording = false);
+ bool Update(void);
void Sort(void);
cMark *Add(int Position);
cMark *Get(int Position);