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
13
14#include "dtvrecorder.h"
15
18class ExternalChannel;
19class QString;
20class 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
This is a specialization of RecorderBase used to handle MPEG-2, MPEG-4, MPEG-4 AVC,...
Definition: dtvrecorder.h:35
-*- Mode: c++ -*-
This is a specialization of DTVRecorder used to handle streams from External 'blackbox' recorders.
ExternalChannel * m_channel
ExternalStreamHandler * m_streamHandler
void run(void) override
run() starts the recording process, and does not exit until the recording is complete.
bool IsOpen(void) const
ExternalRecorder(TVRec *rec, ExternalChannel *channel)
bool PauseAndWait(std::chrono::milliseconds timeout=100ms) override
If m_requestPause is true, sets pause and blocks up to timeout milliseconds or until unpaused,...
void StartNewFile(void) override
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143