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 
10 class SatIPChannel;
11 class SatIPStreamHandler;
12 
13 class SatIPRecorder : public DTVRecorder
14 {
15  public:
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 
28  const QString &videodev,
29  const QString &audiodev,
30  const QString &vbidev) override; // RecorderBase
31 
32  private:
33  bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
34 
35  private:
36  SatIPChannel *m_channel {nullptr};
38  int m_inputId {0};
39 };
40 
41 #endif // SATIPRECORDER_H_
channel
QDomElement channel
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:501
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:103
dtvrecorder.h
SatIPRecorder
Definition: satiprecorder.h:13
SatIPRecorder::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: satiprecorder.cpp:153
SatIPRecorder::m_channel
SatIPChannel * m_channel
Definition: satiprecorder.h:36
SatIPRecorder::Close
void Close(void)
Definition: satiprecorder.cpp:49
SatIPChannel
Definition: satipchannel.h:12
SatIPRecorder::Open
bool Open(void)
Definition: satiprecorder.cpp:23
hardwareprofile.scan.profile
profile
Definition: scan.py:99
SatIPRecorder::GetSIStandard
QString GetSIStandard(void) const override
Definition: satiprecorder.cpp:181
SatIPRecorder::m_inputId
int m_inputId
Definition: satiprecorder.h:38
SatIPRecorder::SatIPRecorder
SatIPRecorder(TVRec *rec, SatIPChannel *channel)
Definition: satiprecorder.cpp:16
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:25
SatIPRecorder::StartNewFile
void StartNewFile(void) override
Definition: satiprecorder.cpp:57
SatIPRecorder::SetOptionsFromProfile
void SetOptionsFromProfile(RecordingProfile *profile, const QString &videodev, const QString &audiodev, const QString &vbidev) override
Sets basic recorder options.
Definition: satiprecorder.cpp:186
SatIPRecorder::IsOpen
bool IsOpen(void) const
Definition: satiprecorder.h:21
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
SatIPRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: satiprecorder.cpp:72
RecordingProfile
Definition: recordingprofile.h:39
SatIPStreamHandler
Definition: satipstreamhandler.h:24
SatIPRecorder::m_streamHandler
SatIPStreamHandler * m_streamHandler
Definition: satiprecorder.h:37