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"
14 #include "streamlisteners.h"
15 
16 class IPTVChannel;
17 
18 class IPTVRecorder : public DTVRecorder
19 {
20  public:
22  ~IPTVRecorder();
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*) override; // DTVRecorder
30  bool PauseAndWait(int timeout = 100) override; // RecorderBase
31 
32  void run(void) override; // RecorderBase
33 
34  private:
35  IPTVChannel *m_channel {nullptr};
36 };
37 
38 #endif // _IPTV_RECORDER_H_
39 
40 /* vim: set expandtab tabstop=4 shiftwidth=4: */
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
bool Open(void)
bool IsOpen(void) const
void SetStreamData(MPEGStreamData *) override
IPTVChannel * m_channel
Definition: iptvrecorder.h:35
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 the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:141
void Close(void)
IPTVRecorder(TVRec *, IPTVChannel *)
Encapsulates data about MPEG stream and emits events for each table.
void StartNewFile(void) override