MythTV  master
cetonchannel.h
Go to the documentation of this file.
1 
8 #ifndef CETONCHANNEL_H
9 #define CETONCHANNEL_H
10 
11 // Qt headers
12 #include <QString>
13 
14 // MythTV headers
15 #include "dtvchannel.h"
16 
17 class CetonChannel;
18 class CetonStreamHandler;
19 
20 class CetonChannel : public DTVChannel
21 {
22  friend class CetonSignalMonitor;
23  friend class CetonRecorder;
24 
25  public:
26  CetonChannel(TVRec *parent, const QString &device)
27  : DTVChannel(parent), m_device_id(device) {}
28  ~CetonChannel(void);
29 
30  bool Open(void) override; // ChannelBase
31  void Close(void) override; // ChannelBase
32  bool EnterPowerSavingMode(void) override; // DTVChannel
33 
34  // Gets
35  bool IsOpen(void) const override; // ChannelBase
36  QString GetDevice(void) const override // ChannelBase
37  { return m_device_id; }
38  vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
39  { return m_tuner_types; }
40 
41  // Sets
42  bool SetChannelByString(const QString &channum) override; // ChannelBase
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; // ChannelBase
50 
51  private:
52  QString m_device_id;
54  vector<DTVTunerType> m_tuner_types;
55 };
56 
57 #endif
bool Open(void) override
Opens the channel changing hardware for use.
void Close(void) override
Closes the channel changing hardware to use.
vector< DTVTunerType > m_tuner_types
Definition: cetonchannel.h:54
QString m_device_id
Definition: cetonchannel.h:52
vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: cetonchannel.h:38
CetonChannel(TVRec *parent, const QString &device)
Definition: cetonchannel.h:26
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:150
bool IsOpen(void) const override
Reports whether channel is already open.
bool SetChannelByString(const QString &channum) override
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.
~CetonChannel(void)
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: cetonchannel.h:36
CetonStreamHandler * m_stream_handler
Definition: cetonchannel.h:53