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:
24  : DTVRecorder(rec), m_channel(channel) {}
25 
26  void run(void) override; // RecorderBase
27 
28  bool Open(void);
29  void Close(void);
30  void StartNewFile(void) override; // RecorderBase
31 
32  bool IsOpen(void) const { return m_streamHandler; }
33 
34  QString GetSIStandard(void) const override; // DTVRecorder
35 
36  private:
37  void ReaderPaused(int fd);
38  bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
39 
40  private:
41  CetonChannel *m_channel {nullptr};
43 };
44 
45 #endif
CetonStreamHandler
Definition: cetonstreamhandler.h:25
CetonRecorder::ReaderPaused
void ReaderPaused(int fd)
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:103
dtvrecorder.h
CetonRecorder::Close
void Close(void)
Definition: cetonrecorder.cpp:36
CetonChannel
Definition: cetonchannel.h:22
CetonRecorder::IsOpen
bool IsOpen(void) const
Definition: cetonrecorder.h:32
CetonRecorder::GetSIStandard
QString GetSIStandard(void) const override
Definition: cetonrecorder.cpp:155
CetonRecorder::m_channel
CetonChannel * m_channel
Definition: cetonrecorder.h:41
CetonRecorder
Definition: cetonrecorder.h:20
CetonRecorder::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: cetonrecorder.cpp:127
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:25
CetonRecorder::m_streamHandler
CetonStreamHandler * m_streamHandler
Definition: cetonrecorder.h:42
CetonRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: cetonrecorder.cpp:54
CetonRecorder::CetonRecorder
CetonRecorder(TVRec *rec, CetonChannel *channel)
Definition: cetonrecorder.h:23
CetonRecorder::StartNewFile
void StartNewFile(void) override
Definition: cetonrecorder.cpp:47
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:144
CetonRecorder::Open
bool Open(void)
Definition: cetonrecorder.cpp:18