vdr  1.7.31
recorder.h
Go to the documentation of this file.
1 /*
2  * recorder.h: The actual DVB recorder
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: recorder.h 2.3 2010/12/27 11:17:04 kls Exp $
8  */
9 
10 #ifndef __RECORDER_H
11 #define __RECORDER_H
12 
13 #include "receiver.h"
14 #include "recording.h"
15 #include "remux.h"
16 #include "ringbuffer.h"
17 #include "thread.h"
18 
19 class cRecorder : public cReceiver, cThread {
20 private:
27  char *recordingName;
28  off_t fileSize;
29  time_t lastDiskSpaceCheck;
30  bool RunningLowOnDiskSpace(void);
31  bool NextFile(void);
32 protected:
33  virtual void Activate(bool On);
34  virtual void Receive(uchar *Data, int Length);
35  virtual void Action(void);
36 public:
37  cRecorder(const char *FileName, const cChannel *Channel, int Priority);
38  // Creates a new recorder for the given Channel and
39  // the given Priority that will record into the file FileName.
40  virtual ~cRecorder();
41  };
42 
43 #endif //__RECORDER_H