vdr  2.7.6
cutter.h
Go to the documentation of this file.
1 /*
2  * cutter.h: The video cutting facilities
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: cutter.h 5.1 2024/09/19 20:21:58 kls Exp $
8  */
9 
10 #ifndef __CUTTER_H
11 #define __CUTTER_H
12 
13 #include "recording.h"
14 #include "thread.h"
15 #include "tools.h"
16 
17 class cCuttingThread;
18 
19 class cCutter {
20 private:
25  bool error;
26 public:
27  cCutter(const char *FileName);
30  ~cCutter();
31  static cString EditedFileName(const char *FileName);
36  bool Start(void);
41  void Stop(void);
43  bool Active(void);
45  bool Error(void);
47  };
48 
49 bool CutRecording(const char *FileName);
50 
51 #endif //__CUTTER_H
Definition: cutter.h:19
cCuttingThread * cuttingThread
Definition: cutter.h:24
bool Start(void)
Starts the actual cutting process.
Definition: cutter.c:708
cString editedVersionName
Definition: cutter.h:22
cCutter(const char *FileName)
Sets up a new cutter for the given FileName, which must be the full path name of an existing recordin...
Definition: cutter.c:683
~cCutter()
Definition: cutter.c:691
bool error
Definition: cutter.h:25
cRecordingInfo recordingInfo
Definition: cutter.h:23
void Stop(void)
Stops an ongoing cutting process.
Definition: cutter.c:733
bool Error(void)
Returns true if an error occurred while cutting the recording.
Definition: cutter.c:763
cString originalVersionName
Definition: cutter.h:21
bool Active(void)
Returns true if the cutter is currently active.
Definition: cutter.c:750
static cString EditedFileName(const char *FileName)
Returns the full path name of the edited version of the recording with the given FileName.
Definition: cutter.c:696
Definition: tools.h:178
bool CutRecording(const char *FileName)
Definition: cutter.c:770