MythTV  master
ExternalRecorder.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 /*
3  * Copyright (C) John Poet 2013
4  *
5  * Copyright notice is in ExternalRecorder.cpp of the MythTV project.
6  */
7 
8 #ifndef _EXTERNAL_RECORDER_H_
9 #define _EXTERNAL_RECORDER_H_
10 
11 // MythTV includes
12 #include "dtvrecorder.h"
13 
15 class RecordingProfile;
16 class ExternalChannel;
17 class QString;
18 class TVRec;
19 
29 {
30  public:
32  : DTVRecorder(rec), m_channel(channel) {}
33 
34  void run(void) override; // RecorderBase
35 
36  bool Open(void);
37  bool IsOpen(void) const { return m_stream_handler; }
38  void Close(void);
39  void StartNewFile(void) override; // RecorderBase
40 
41  bool PauseAndWait(int timeout = 100) override; // RecorderBase
42 
43  protected:
44  bool StartStreaming(void);
45  bool StopStreaming(void);
46 
47  private:
50 };
51 
52 #endif // _External_RECORDER_H_
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:28
ExternalChannel * m_channel
ExternalStreamHandler * m_stream_handler
void StartNewFile(void) override
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:141
bool PauseAndWait(int timeout=100) override
If m_request_pause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
ExternalRecorder(TVRec *rec, ExternalChannel *channel)
This is a specialization of DTVRecorder used to handle streams from External 'blackbox' recorders.
bool IsOpen(void) const