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:
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(int timeout = 100) override; // RecorderBase
35 
36  QString GetSIStandard(void) const override; // DTVRecorder
37  void SetCAMPMT(const ProgramMapTable*) override; // DTVRecorder
38  void UpdateCAMTimeOffset(void) override; // DTVRecorder
39 
40  private:
41  DVBChannel *m_channel {nullptr};
43 };
44 
45 #endif // _DVB_RECORDER_H_
bool PauseAndWait(int timeout=100) override
If m_request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
This is a specialization of DTVRecorder used to handle streams from DVB drivers.
Definition: dvbrecorder.h:21
DVBRecorder(TVRec *, DVBChannel *)
Definition: dvbrecorder.cpp:37
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
void SetCAMPMT(const ProgramMapTable *) override
Provides interface to the tuning hardware when using DVB drivers.
Definition: dvbchannel.h:29
DVBStreamHandler * m_stream_handler
Definition: dvbrecorder.h:42
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:141
bool Open(void)
Definition: dvbrecorder.cpp:43
QString GetSIStandard(void) const override
DVBChannel * m_channel
Definition: dvbrecorder.h:41
void StartNewFile(void) override
Definition: dvbrecorder.cpp:87
A PMT table maps a program described in the ProgramAssociationTable to various PID's which describe t...
Definition: mpegtables.h:656
void Close(void)
Definition: dvbrecorder.cpp:78
void UpdateCAMTimeOffset(void) override
bool IsOpen(void) const
Definition: dvbrecorder.cpp:73