MythTV  master
cetonrecorder.h
Go to the documentation of this file.
1 
8 #ifndef CETONRECORDER_H_
9 #define CETONRECORDER_H_
10 
11 // Qt includes
12 #include <QString>
13 
14 // MythTV includes
15 #include "dtvrecorder.h"
16 
17 class CetonChannel;
18 class CetonStreamHandler;
19 
20 class CetonRecorder : public DTVRecorder
21 {
22  public:
23  CetonRecorder(TVRec *rec, CetonChannel *channel);
24 
25  void run(void) override; // RecorderBase
26 
27  bool Open(void);
28  void Close(void);
29  void StartNewFile(void) override; // RecorderBase
30 
31  bool IsOpen(void) const { return _stream_handler; }
32 
33  QString GetSIStandard(void) const override; // DTVRecorder
34 
35  private:
36  void ReaderPaused(int fd);
37  bool PauseAndWait(int timeout = 100) override; // RecorderBase
38 
39  private:
42 };
43 
44 #endif
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
bool PauseAndWait(int timeout=100) override
If request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
bool Open(void)
void ReaderPaused(int fd)
void StartNewFile(void) override
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:150
bool IsOpen(void) const
Definition: cetonrecorder.h:31
QString GetSIStandard(void) const override
void Close(void)
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
CetonStreamHandler * _stream_handler
Definition: cetonrecorder.h:41
CetonChannel * _channel
Definition: cetonrecorder.h:40
CetonRecorder(TVRec *rec, CetonChannel *channel)