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