MythTV  master
asichannel.h
Go to the documentation of this file.
1 
3 #ifndef _ASI_CHANNEL_H_
4 #define _ASI_CHANNEL_H_
5 
6 #include <vector>
7 using namespace std;
8 
9 // Qt headers
10 #include <QString>
11 
12 // MythTV headers
13 #include "dtvchannel.h"
14 
15 class ASIChannel : public DTVChannel
16 {
17  public:
18  ASIChannel(TVRec *parent, const QString &device);
19  ~ASIChannel(void);
20 
21  // Commands
22  bool Open(void) override; // ChannelBase
23  void Close(void) override; // ChannelBase
24 
25  using DTVChannel::Tune;
26  bool Tune(const DTVMultiplex&) override // DTVChannel
27  { return true; }
28  bool Tune(const QString&, int) override // ChannelBase
29  { return true; }
30  bool Tune(uint64_t) override // DTVChannel
31  { return true; }
32  // Gets
33  bool IsOpen(void) const override // ChannelBase
34  { return m_isopen; }
35  QString GetDevice(void) const override // ChannelBase
36  { return m_device; }
37  vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
38  { return m_tuner_types; }
39  bool IsPIDTuningSupported(void) const override // DTVChannel
40  { return true; }
41 
42  private:
43  vector<DTVTunerType> m_tuner_types;
44  QString m_device;
45  bool m_isopen {false};
46 };
47 
48 #endif // _ASI_CHANNEL_H_
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: asichannel.h:33
QString m_device
Definition: asichannel.h:44
vector< DTVTunerType > m_tuner_types
Definition: asichannel.h:43
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: asichannel.h:35
bool IsPIDTuningSupported(void) const override
Definition: asichannel.h:39
bool Tune(uint64_t) override
Definition: asichannel.h:30
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
vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: asichannel.h:37
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
Definition: asichannel.h:26
bool Tune(const QString &, int) override
Definition: asichannel.h:28