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_streamHandler; }
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
channel
QDomElement channel
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:498
hardwareprofile.smolt.timeout
float timeout
Definition: smolt.py:103
dtvrecorder.h
ExternalRecorder::StopStreaming
bool StopStreaming(void)
Definition: ExternalRecorder.cpp:218
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:157
ExternalRecorder::m_channel
ExternalChannel * m_channel
Definition: ExternalRecorder.h:48
ExternalRecorder::IsOpen
bool IsOpen(void) const
Definition: ExternalRecorder.h:37
ExternalRecorder::StartNewFile
void StartNewFile(void) override
Definition: ExternalRecorder.cpp:35
ExternalStreamHandler
Definition: ExternalStreamHandler.h:60
ExternalRecorder::ExternalRecorder
ExternalRecorder(TVRec *rec, ExternalChannel *channel)
Definition: ExternalRecorder.h:31
ExternalRecorder::PauseAndWait
bool PauseAndWait(int timeout=100) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
Definition: ExternalRecorder.cpp:170
ExternalRecorder::StartStreaming
bool StartStreaming(void)
Definition: ExternalRecorder.cpp:212
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:27
ExternalChannel
Definition: ExternalChannel.h:18
ExternalRecorder
This is a specialization of DTVRecorder used to handle streams from External 'blackbox' recorders.
Definition: ExternalRecorder.h:28
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
RecordingProfile
Definition: recordingprofile.h:39
ExternalRecorder::m_streamHandler
ExternalStreamHandler * m_streamHandler
Definition: ExternalRecorder.h:49