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_stream_handler; }
33 
34  QString GetSIStandard(void) const override; // DTVRecorder
35 
36  private:
37  void ReaderPaused(int fd);
38  bool PauseAndWait(int timeout = 100) override; // RecorderBase
39 
40  private:
41  CetonChannel *m_channel {nullptr};
43 };
44 
45 #endif
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
bool PauseAndWait(int timeout=100) override
If m_request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
bool Open(void)
void ReaderPaused(int fd)
void StartNewFile(void) override
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:150
bool IsOpen(void) const
Definition: cetonrecorder.h:32
QString GetSIStandard(void) const override
void Close(void)
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
CetonChannel * m_channel
Definition: cetonrecorder.h:41
CetonStreamHandler * m_stream_handler
Definition: cetonrecorder.h:42
CetonRecorder(TVRec *rec, CetonChannel *channel)
Definition: cetonrecorder.h:23