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
17class CetonChannel;
19
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:
43};
44
45#endif
void StartNewFile(void) override
CetonStreamHandler * m_streamHandler
Definition: cetonrecorder.h:42
void Close(void)
CetonChannel * m_channel
Definition: cetonrecorder.h:41
bool Open(void)
void ReaderPaused(int fd)
CetonRecorder(TVRec *rec, CetonChannel *channel)
Definition: cetonrecorder.h:23
bool IsOpen(void) const
Definition: cetonrecorder.h:32
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
QString GetSIStandard(void) const override
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143