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  ~CetonChannel(void);
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 _device_id; }
37  vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
38  { return _tuner_types; }
39 
40  // Sets
41  bool SetChannelByString(const QString &channum) override; // ChannelBase
42 
43  using DTVChannel::Tune;
44  // ATSC/DVB scanning/tuning stuff
45  bool Tune(const DTVMultiplex &tuning) override; // DTVChannel
46 
47  // Virtual tuning
48  bool Tune(const QString &freqid, int /*finetune*/) override; // ChannelBase
49 
50  private:
51  QString _device_id;
53  vector<DTVTunerType> _tuner_types;
54 };
55 
56 #endif
bool Open(void) override
Opens the channel changing hardware for use.
void Close(void) override
Closes the channel changing hardware to use.
QString _device_id
Definition: cetonchannel.h:51
vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: cetonchannel.h:37
CetonChannel(TVRec *parent, const QString &device)
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.
vector< DTVTunerType > _tuner_types
Definition: cetonchannel.h:53
CetonStreamHandler * _stream_handler
Definition: cetonchannel.h:52
~CetonChannel(void)
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: cetonchannel.h:35