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 "libmythbase/mythchrono.h"
13 
14 #include "dtvrecorder.h"
15 
17 class RecordingProfile;
18 class ExternalChannel;
19 class QString;
20 class TVRec;
21 
31 {
32  public:
34  : DTVRecorder(rec), m_channel(channel) {}
35 
36  void run(void) override; // RecorderBase
37 
38  bool Open(void);
39  bool IsOpen(void) const { return m_streamHandler; }
40  void Close(void);
41  void StartNewFile(void) override; // RecorderBase
42 
43  bool PauseAndWait(std::chrono::milliseconds timeout = 100ms) override; // RecorderBase
44 
45  protected:
46  bool StartStreaming(void);
47  bool StopStreaming(void);
48 
49  private:
52 };
53 
54 #endif // EXTERNAL_RECORDER_H
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:102
dtvrecorder.h
ExternalRecorder::StopStreaming
bool StopStreaming(void)
Definition: ExternalRecorder.cpp:215
ExternalRecorder::run
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
Definition: ExternalRecorder.cpp:43
ExternalRecorder::Close
void Close(void)
Definition: ExternalRecorder.cpp:156
ExternalRecorder::m_channel
ExternalChannel * m_channel
Definition: ExternalRecorder.h:50
ExternalRecorder::IsOpen
bool IsOpen(void) const
Definition: ExternalRecorder.h:39
ExternalRecorder::StartNewFile
void StartNewFile(void) override
Definition: ExternalRecorder.cpp:35
ExternalStreamHandler
Definition: ExternalStreamHandler.h:68
ExternalRecorder::ExternalRecorder
ExternalRecorder(TVRec *rec, ExternalChannel *channel)
Definition: ExternalRecorder.h:33
ExternalRecorder::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: ExternalRecorder.cpp:167
ExternalRecorder::StartStreaming
bool StartStreaming(void)
Definition: ExternalRecorder.cpp:209
ExternalRecorder::Open
bool Open(void)
Definition: ExternalRecorder.cpp:123
DTVRecorder
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:25
ExternalChannel
-*- Mode: c++ -*-
Definition: ExternalChannel.h:20
ExternalRecorder
This is a specialization of DTVRecorder used to handle streams from External 'blackbox' recorders.
Definition: ExternalRecorder.h:30
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
mythchrono.h
RecordingProfile
Definition: recordingprofile.h:41
ExternalRecorder::m_streamHandler
ExternalStreamHandler * m_streamHandler
Definition: ExternalRecorder.h:51