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_streamHandler; }
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(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
37 
38  private:
39  HDHRChannel *m_channel {nullptr};
41 };
42 
43 #endif
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:102
HDHRRecorder::m_channel
HDHRChannel * m_channel
Definition: hdhrrecorder.h:39
dtvrecorder.h
HDHRRecorder::Close
void Close(void)
Definition: hdhrrecorder.cpp:53
HDHRRecorder::GetSIStandard
QString GetSIStandard(void) const override
Definition: hdhrrecorder.cpp:187
HDHRRecorder::HDHRRecorder
HDHRRecorder(TVRec *rec, HDHRChannel *channel)
Definition: hdhrrecorder.h:22
HDHRChannel
Definition: hdhrchannel.h:20
HDHRRecorder::PauseAndWait
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
Definition: hdhrrecorder.cpp:159
HDHRRecorder::StartNewFile
void StartNewFile(void) override
Definition: hdhrrecorder.cpp:64
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:26
HDHRStreamHandler
Definition: hdhrstreamhandler.h:47
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
HDHRRecorder::m_streamHandler
HDHRStreamHandler * m_streamHandler
Definition: hdhrrecorder.h:40
HDHRRecorder
Definition: hdhrrecorder.h:19
HDHRRecorder::ReaderPaused
void ReaderPaused(int fd)
HDHRRecorder::IsOpen
bool IsOpen(void) const
Definition: hdhrrecorder.h:28
HDHRRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: hdhrrecorder.cpp:77
HDHRRecorder::Open
bool Open(void)
Definition: hdhrrecorder.cpp:25