diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-10-10 13:13:30 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-10-10 13:13:30 +0200 |
commit | 2bdb599fbcfea5bac49fcf5550cd0fd1bc328d4a (patch) | |
tree | 88e9d6c0b7505f1c4d9374c26a4c3ee27dd6ee90 /cutter.h | |
parent | 3971cc6e8845f2a70018b20706f4a30d71edd41d (diff) | |
download | vdr-2bdb599fbcfea5bac49fcf5550cd0fd1bc328d4a.tar.gz vdr-2bdb599fbcfea5bac49fcf5550cd0fd1bc328d4a.tar.bz2 |
Added renaming and moving recordings and folders, and editing a recording's priority and lifetime; added cutting queue
Diffstat (limited to 'cutter.h')
-rw-r--r-- | cutter.h | 40 |
1 files changed, 25 insertions, 15 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: cutter.h 2.3 2012/02/16 12:05:33 kls Exp $ + * $Id: cutter.h 3.1 2013/10/05 11:34:55 kls Exp $ */ #ifndef __CUTTER_H @@ -17,21 +17,31 @@ class cCuttingThread; class cCutter { private: - static cMutex mutex; - static cString originalVersionName; - static cString editedVersionName; - static cCuttingThread *cuttingThread; - static bool error; - static bool ended; + cString originalVersionName; + cString editedVersionName; + cCuttingThread *cuttingThread; + bool error; public: - static bool Start(const char *FileName); - static void Stop(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); + cCutter(const char *FileName); + ///< Sets up a new cutter for the given FileName, which must be the full path + ///< name of an existing recording directory. + ~cCutter(); + static cString EditedFileName(const char *FileName); + ///< Returns the full path name of the edited version of the recording with + ///< the given FileName. This static function can be used independent of any + ///< cCutter object, to determine the file name beforehand. + ///< Returns NULL in case of error. + bool Start(void); + ///< Starts the actual cutting process. + ///< Returns true if successful. + ///< If Start() is called while the cutting process is already active, nothing + ///< happens and false will be returned. + void Stop(void); + ///< Stops an ongoing cutting process. + bool Active(void); + ///< Returns true if the cutter is currently active. + bool Error(void); + ///< Returns true if an error occurred while cutting the recording. }; bool CutRecording(const char *FileName); |