MythTV  master
hdhrchannel.h
Go to the documentation of this file.
1 
7 #ifndef HDHOMERUNCHANNEL_H
8 #define HDHOMERUNCHANNEL_H
9 
10 // Qt headers
11 #include <QString>
12 
13 // MythTV headers
14 #include "dtvchannel.h"
15 
16 class HDHRChannel;
17 class HDHRStreamHandler;
18 class ProgramMapTable;
19 
20 class HDHRChannel : public DTVChannel
21 {
22  friend class HDHRSignalMonitor;
23  friend class HDHRRecorder;
24 
25  public:
26  HDHRChannel(TVRec *parent, QString device);
27  ~HDHRChannel(void) override;
28 
29  bool Open(void) override; // ChannelBase
30  void Close(void) override; // ChannelBase
31  bool EnterPowerSavingMode(void) override; // DTVChannel
32 
33  // Gets
34  bool IsOpen(void) const override; // ChannelBase
35  QString GetDevice(void) const override // ChannelBase
36  { return m_deviceId; }
37  std::vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
38  { return m_tunerTypes; }
39  bool IsMaster(void) const override; // DTVChannel
40 
41  // Sets
42  bool SetChannelByString(const QString &channum) override; // DTVChannel
43 
44  using DTVChannel::Tune;
45  // ATSC/DVB scanning/tuning stuff
46  bool Tune(const DTVMultiplex &tuning) override; // DTVChannel
47 
48  // Virtual tuning
49  bool Tune(const QString &freqid, int /*finetune*/) override; // DTVChannel
50 
51  private:
52  QString m_deviceId;
54  std::vector<DTVTunerType> m_tunerTypes;
55 };
56 
57 #endif
DTVMultiplex
Definition: dtvmultiplex.h:25
dtvchannel.h
HDHRChannel::m_tunerTypes
std::vector< DTVTunerType > m_tunerTypes
Definition: hdhrchannel.h:54
HDHRChannel::Open
bool Open(void) override
Opens the channel changing hardware for use.
Definition: hdhrchannel.cpp:54
HDHRChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: hdhrchannel.cpp:93
HDHRChannel::~HDHRChannel
~HDHRChannel(void) override
Definition: hdhrchannel.cpp:40
ProgramMapTable
A PMT table maps a program described in the ProgramAssociationTable to various PID's which describe t...
Definition: mpegtables.h:682
HDHRChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: hdhrchannel.cpp:77
HDHRChannel::GetTunerTypes
std::vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: hdhrchannel.h:37
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
HDHRChannel::m_streamHandler
HDHRStreamHandler * m_streamHandler
Definition: hdhrchannel.h:53
HDHRChannel
Definition: hdhrchannel.h:21
HDHRChannel::SetChannelByString
bool SetChannelByString(const QString &channum) override
Definition: hdhrchannel.cpp:181
HDHRSignalMonitor
Definition: hdhrsignalmonitor.h:14
HDHRChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: hdhrchannel.h:35
HDHRStreamHandler
Definition: hdhrstreamhandler.h:46
HDHRChannel::IsMaster
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
Definition: hdhrchannel.cpp:46
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143
HDHRChannel::EnterPowerSavingMode
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
Definition: hdhrchannel.cpp:87
HDHRRecorder
Definition: hdhrrecorder.h:20
HDHRChannel::HDHRChannel
HDHRChannel(TVRec *parent, QString device)
Definition: hdhrchannel.cpp:33
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
HDHRChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
HDHRChannel::m_deviceId
QString m_deviceId
Definition: hdhrchannel.h:52