vdr  2.0.2
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:
29  off_t fileSize;
31  bool RunningLowOnDiskSpace(void);
32  bool NextFile(void);
33 protected:
34  virtual void Activate(bool On);
35  virtual void Receive(uchar *Data, int Length);
36  virtual void Action(void);
37 public:
38  cRecorder(const char *FileName, const cChannel *Channel, int Priority);
39  // Creates a new recorder for the given Channel and
40  // the given Priority that will record into the file FileName.
41  virtual ~cRecorder();
42  };
43 
44 #endif //__RECORDER_H
45