MythTV  master
iptvrecorder.h
Go to the documentation of this file.
1 
9 #ifndef IPTV_RECORDER_H
10 #define IPTV_RECORDER_H
11 
12 // MythTV includes
13 #include "dtvrecorder.h"
14 #include "mpeg/streamlisteners.h"
15 
16 class IPTVChannel;
17 
18 class IPTVRecorder : public DTVRecorder
19 {
20  public:
21  IPTVRecorder(TVRec *rec, IPTVChannel *channel);
22  ~IPTVRecorder() override;
23 
24  bool Open(void);
25  void Close(void);
26  bool IsOpen(void) const;
27  void StartNewFile(void) override; // RecorderBase
28 
29  void SetStreamData(MPEGStreamData *data) override; // DTVRecorder
30  bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
31 
32  void run(void) override; // RecorderBase
33 
34  private:
35  IPTVChannel *m_channel {nullptr};
36 };
37 
38 #endif // IPTV_RECORDER_H
39 
40 /* vim: set expandtab tabstop=4 shiftwidth=4: */
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:102
dtvrecorder.h
IPTVRecorder::~IPTVRecorder
~IPTVRecorder() override
Definition: iptvrecorder.cpp:25
streamlisteners.h
IPTVRecorder::Open
bool Open(void)
Definition: iptvrecorder.cpp:31
IPTVRecorder::Close
void Close(void)
Definition: iptvrecorder.cpp:59
IPTVRecorder::m_channel
IPTVChannel * m_channel
Definition: iptvrecorder.h:35
MPEGStreamData
Encapsulates data about MPEG stream and emits events for each table.
Definition: mpegstreamdata.h:85
IPTVRecorder::IsOpen
bool IsOpen(void) const
Definition: iptvrecorder.cpp:52
IPTVChannel
Definition: iptvchannel.h:24
IPTVRecorder::IPTVRecorder
IPTVRecorder(TVRec *rec, IPTVChannel *channel)
Definition: iptvrecorder.cpp:20
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:26
IPTVRecorder
Definition: iptvrecorder.h:18
IPTVRecorder::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: iptvrecorder.cpp:73
IPTVRecorder::SetStreamData
void SetStreamData(MPEGStreamData *data) override
Definition: iptvrecorder.cpp:66
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
IPTVRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: iptvrecorder.cpp:107
IPTVRecorder::StartNewFile
void StartNewFile(void) override
Definition: iptvrecorder.cpp:100