MythTV  master
cetonchannel.h
Go to the documentation of this file.
1 
8 #ifndef CETONCHANNEL_H
9 #define CETONCHANNEL_H
10 
11 #include <utility>
12 
13 // Qt headers
14 #include <QString>
15 
16 // MythTV headers
17 #include "dtvchannel.h"
18 
19 class CetonChannel;
20 class CetonStreamHandler;
21 
22 class CetonChannel : public DTVChannel
23 {
24  friend class CetonSignalMonitor;
25  friend class CetonRecorder;
26 
27  public:
28  CetonChannel(TVRec *parent, QString device)
29  : DTVChannel(parent), m_deviceId(std::move(device)) {}
30  ~CetonChannel(void) override;
31 
32  bool Open(void) override; // ChannelBase
33  void Close(void) override; // ChannelBase
34  bool EnterPowerSavingMode(void) override; // DTVChannel
35 
36  // Gets
37  bool IsOpen(void) const override; // ChannelBase
38  QString GetDevice(void) const override // ChannelBase
39  { return m_deviceId; }
40  std::vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
41  { return m_tunerTypes; }
42 
43  // Sets
44  bool SetChannelByString(const QString &channum) override; // ChannelBase
45 
46  using DTVChannel::Tune;
47  // ATSC/DVB scanning/tuning stuff
48  bool Tune(const DTVMultiplex &tuning) override; // DTVChannel
49 
50  // Virtual tuning
51  bool Tune(const QString &freqid, int /*finetune*/) override; // ChannelBase
52 
53  private:
54  QString m_deviceId;
56  std::vector<DTVTunerType> m_tunerTypes;
57 };
58 
59 #endif
CetonStreamHandler
Definition: cetonstreamhandler.h:25
DTVMultiplex
Definition: dtvmultiplex.h:24
dtvchannel.h
CetonChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: cetonchannel.cpp:62
CetonChannel::CetonChannel
CetonChannel(TVRec *parent, QString device)
Definition: cetonchannel.h:28
CetonChannel::~CetonChannel
~CetonChannel(void) override
Definition: cetonchannel.cpp:19
CetonChannel
Definition: cetonchannel.h:22
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
CetonChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: cetonchannel.cpp:45
CetonChannel::Tune
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
Definition: cetonchannel.cpp:86
CetonChannel::GetTunerTypes
std::vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: cetonchannel.h:40
CetonRecorder
Definition: cetonrecorder.h:20
CetonChannel::m_deviceId
QString m_deviceId
Definition: cetonchannel.h:54
CetonSignalMonitor
Definition: cetonsignalmonitor.h:18
CetonChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: cetonchannel.h:38
CetonChannel::m_streamHandler
CetonStreamHandler * m_streamHandler
Definition: cetonchannel.h:55
std
Definition: mythchrono.h:23
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:33
CetonChannel::SetChannelByString
bool SetChannelByString(const QString &channum) override
Definition: cetonchannel.cpp:102
CetonChannel::m_tunerTypes
std::vector< DTVTunerType > m_tunerTypes
Definition: cetonchannel.h:56
CetonChannel::Open
bool Open(void) override
Opens the channel changing hardware for use.
Definition: cetonchannel.cpp:24
CetonChannel::EnterPowerSavingMode
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
Definition: cetonchannel.cpp:55