summaryrefslogtreecommitdiff
path: root/recording.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-20 10:09:05 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-20 10:09:05 +0200
commite5d2240bbb98f24212213df92ad3ca3e1cf1e0e7 (patch)
tree4437cc31dde9ca4b95e0f73f2e27d8110a14170d /recording.h
parent12f60ee151ca1cecf37d768eb62eb7a13fe61641 (diff)
downloadvdr-e5d2240bbb98f24212213df92ad3ca3e1cf1e0e7.tar.gz
vdr-e5d2240bbb98f24212213df92ad3ca3e1cf1e0e7.tar.bz2
The start time of an edited recording is now set to the time of the first editing mark
Diffstat (limited to 'recording.h')
-rw-r--r--recording.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/recording.h b/recording.h
index 578dd455..7683d610 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.22 2011/08/13 12:51:23 kls Exp $
+ * $Id: recording.h 2.23 2011/08/20 09:52:07 kls Exp $
*/
#ifndef __RECORDING_H
@@ -119,6 +119,14 @@ public:
bool IsPesRecording(void) const { return isPesRecording; }
void ReadInfo(void);
bool WriteInfo(void);
+ void 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!
bool Delete(void);
///< Changes the file name so that it will no longer be visible in the "Recordings" menu
///< Returns false in case of error