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"
15
16class IPTVChannel;
17
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:
36};
37
38#endif // IPTV_RECORDER_H
39
40/* vim: set expandtab tabstop=4 shiftwidth=4: */
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
IPTVChannel * m_channel
Definition: iptvrecorder.h:35
void SetStreamData(MPEGStreamData *data) override
IPTVRecorder(TVRec *rec, IPTVChannel *channel)
~IPTVRecorder() override
bool IsOpen(void) const
bool Open(void)
void Close(void)
void StartNewFile(void) override
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
Encapsulates data about MPEG stream and emits events for each table.
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143