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:
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(int timeout = 100) override; // RecorderBase
37 
38  private:
39  HDHRChannel *m_channel {nullptr};
41 };
42 
43 #endif
channel
QDomElement channel
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:501
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:103
HDHRRecorder::PauseAndWait
bool PauseAndWait(int timeout=100) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
Definition: hdhrrecorder.cpp:158
HDHRRecorder::m_channel
HDHRChannel * m_channel
Definition: hdhrrecorder.h:39
dtvrecorder.h
HDHRRecorder::Close
void Close(void)
Definition: hdhrrecorder.cpp:52
HDHRRecorder::GetSIStandard
QString GetSIStandard(void) const override
Definition: hdhrrecorder.cpp:186
HDHRRecorder::HDHRRecorder
HDHRRecorder(TVRec *rec, HDHRChannel *channel)
Definition: hdhrrecorder.h:22
HDHRChannel
Definition: hdhrchannel.h:21
HDHRRecorder::StartNewFile
void StartNewFile(void) override
Definition: hdhrrecorder.cpp:63
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:34
HDHRStreamHandler
Definition: hdhrstreamhandler.h:46
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143
HDHRRecorder::m_streamHandler
HDHRStreamHandler * m_streamHandler
Definition: hdhrrecorder.h:40
HDHRRecorder
Definition: hdhrrecorder.h:20
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:76
HDHRRecorder::Open
bool Open(void)
Definition: hdhrrecorder.cpp:24