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
16class HDHRChannel;
18class ProgramMapTable;
19
20class 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
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
void Close(void) override
Closes the channel changing hardware to use.
Definition: hdhrchannel.cpp:77
QString m_deviceId
Definition: hdhrchannel.h:52
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
std::vector< DTVTunerType > m_tunerTypes
Definition: hdhrchannel.h:54
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
Definition: hdhrchannel.cpp:87
bool Open(void) override
Opens the channel changing hardware for use.
Definition: hdhrchannel.cpp:54
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: hdhrchannel.h:35
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
Definition: hdhrchannel.cpp:46
bool SetChannelByString(const QString &channum) override
HDHRChannel(TVRec *parent, QString device)
Definition: hdhrchannel.cpp:33
HDHRStreamHandler * m_streamHandler
Definition: hdhrchannel.h:53
~HDHRChannel(void) override
Definition: hdhrchannel.cpp:40
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: hdhrchannel.cpp:93
std::vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: hdhrchannel.h:37
A PMT table maps a program described in the ProgramAssociationTable to various PID's which describe t...
Definition: mpegtables.h:676
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143