MythTV master
satiprecorder.h
Go to the documentation of this file.
1#ifndef SATIPRECORDER_H
2#define SATIPRECORDER_H
3
4// Qt includes
5#include <QString>
6
7// MythTV includes
8#include "dtvrecorder.h"
9
10class SatIPChannel;
12
14{
15 public:
16 SatIPRecorder(TVRec *rec, SatIPChannel *channel);
17
18 void run(void) override; // RecorderBase
19
20 bool Open(void);
21 bool IsOpen(void) const { return m_streamHandler; }
22 void Close(void);
23 void StartNewFile(void) override; // RecorderBase
24
25 QString GetSIStandard(void) const override; // DTVRecorder
26
27 private:
28 bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
29
30 private:
33 int m_inputId {0};
34};
35
36#endif // SATIPRECORDER_H
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
QString GetSIStandard(void) const override
SatIPStreamHandler * m_streamHandler
Definition: satiprecorder.h:32
bool Open(void)
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
bool IsOpen(void) const
Definition: satiprecorder.h:21
SatIPChannel * m_channel
Definition: satiprecorder.h:31
void StartNewFile(void) override
void Close(void)
SatIPRecorder(TVRec *rec, SatIPChannel *channel)
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 the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143