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  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  vector<DTVTunerType> m_tunerTypes;
57 };
58 
59 #endif
bool Open(void) override
Opens the channel changing hardware for use.
~CetonChannel(void) override
void Close(void) override
Closes the channel changing hardware to use.
vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: cetonchannel.h:40
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
bool IsOpen(void) const override
Reports whether channel is already open.
vector< DTVTunerType > m_tunerTypes
Definition: cetonchannel.h:56
bool SetChannelByString(const QString &channum) override
CetonStreamHandler * m_streamHandler
Definition: cetonchannel.h:55
CetonChannel(TVRec *parent, QString device)
Definition: cetonchannel.h:28
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: cetonchannel.h:38
QString m_deviceId
Definition: cetonchannel.h:54