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
16class HDHRChannel;
18
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(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
37
38 private:
41};
42
43#endif
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
void StartNewFile(void) override
HDHRRecorder(TVRec *rec, HDHRChannel *channel)
Definition: hdhrrecorder.h:22
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
bool Open(void)
HDHRStreamHandler * m_streamHandler
Definition: hdhrrecorder.h:40
QString GetSIStandard(void) const override
bool IsOpen(void) const
Definition: hdhrrecorder.h:28
void Close(void)
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
HDHRChannel * m_channel
Definition: hdhrrecorder.h:39
void ReaderPaused(int fd)
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143