MythTV  master
dvbrecorder.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 #ifndef DVB_RECORDER_H
3 #define DVB_RECORDER_H
4 
5 // Qt includes
6 #include <QString>
7 
8 // MythTV includes
9 #include "dtvrecorder.h"
10 
11 class DVBStreamHandler;
12 class ProgramMapTable;
13 class DVBChannel;
14 
21 class DVBRecorder : public DTVRecorder
22 {
23  public:
24  DVBRecorder(TVRec *rec, DVBChannel *channel);
25 
26  void run(void) override; // RecorderBase
27 
28  bool Open(void);
29  bool IsOpen(void) const;
30  void Close(void);
31  void StartNewFile(void) override; // RecorderBase
32 
33  private:
34  bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
35 
36  QString GetSIStandard(void) const override; // DTVRecorder
37  void SetCAMPMT(const ProgramMapTable *pmt) override; // DTVRecorder
38  void UpdateCAMTimeOffset(void) override; // DTVRecorder
39 
40  private:
41  DVBChannel *m_channel {nullptr};
43 };
44 
45 #endif // DVB_RECORDER_H
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:102
dtvrecorder.h
DVBRecorder::DVBRecorder
DVBRecorder(TVRec *rec, DVBChannel *channel)
Definition: dvbrecorder.cpp:38
ProgramMapTable
A PMT table maps a program described in the ProgramAssociationTable to various PID's which describe t...
Definition: mpegtables.h:694
DVBRecorder::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: dvbrecorder.cpp:171
DVBRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: dvbrecorder.cpp:101
DVBRecorder::SetCAMPMT
void SetCAMPMT(const ProgramMapTable *pmt) override
Definition: dvbrecorder.cpp:204
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:26
DVBStreamHandler
Definition: dvbstreamhandler.h:32
DVBRecorder
This is a specialization of DTVRecorder used to handle streams from DVB drivers.
Definition: dvbrecorder.h:21
DVBChannel
Provides interface to the tuning hardware when using DVB drivers.
Definition: dvbchannel.h:31
DVBRecorder::Open
bool Open(void)
Definition: dvbrecorder.cpp:44
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
DVBRecorder::m_channel
DVBChannel * m_channel
Definition: dvbrecorder.h:41
DVBRecorder::UpdateCAMTimeOffset
void UpdateCAMTimeOffset(void) override
Definition: dvbrecorder.cpp:210
DVBRecorder::IsOpen
bool IsOpen(void) const
Definition: dvbrecorder.cpp:74
DVBRecorder::GetSIStandard
QString GetSIStandard(void) const override
Definition: dvbrecorder.cpp:199
DVBRecorder::StartNewFile
void StartNewFile(void) override
Definition: dvbrecorder.cpp:88
DVBRecorder::Close
void Close(void)
Definition: dvbrecorder.cpp:79
DVBRecorder::m_streamHandler
DVBStreamHandler * m_streamHandler
Definition: dvbrecorder.h:42