summaryrefslogtreecommitdiff
path: root/cutter.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-02-16 12:20:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-02-16 12:20:46 +0100
commit26d2fe51d139362a99d76a90de490138dea7477e (patch)
treeb8296cdd1cdeca748b5d4be7fc72ddbc4093415a /cutter.h
parent3432b2638c97ec1ac8afa9aa08246d221e2f89a5 (diff)
downloadvdr-26d2fe51d139362a99d76a90de490138dea7477e.tar.gz
vdr-26d2fe51d139362a99d76a90de490138dea7477e.tar.bz2
An ongoing editing process is now canceled if either the original or the edited version of the recording is deleted from the Recordings menu
Diffstat (limited to 'cutter.h')
-rw-r--r--cutter.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/cutter.h b/cutter.h
index 59c44008..f48ae3fc 100644
--- a/cutter.h
+++ b/cutter.h
@@ -4,27 +4,32 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: cutter.h 2.2 2010/08/29 13:32:33 kls Exp $
+ * $Id: cutter.h 2.3 2012/02/16 12:05:33 kls Exp $
*/
#ifndef __CUTTER_H
#define __CUTTER_H
#include "thread.h"
+#include "tools.h"
class cCuttingThread;
class cCutter {
private:
static cMutex mutex;
- static char *editedVersionName;
+ static cString originalVersionName;
+ static cString editedVersionName;
static cCuttingThread *cuttingThread;
static bool error;
static bool ended;
public:
static bool Start(const char *FileName);
static void Stop(void);
- static bool Active(void);
+ static bool Active(const char *FileName = NULL);
+ ///< Returns true if the cutter is currently active.
+ ///< If a FileName is given, true is only returned if either the
+ ///< original or the edited file name is equal to FileName.
static bool Error(void);
static bool Ended(void);
};