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, QString device);
19  ~ASIChannel(void) override;
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 &/*tuning*/) override // DTVChannel
27  { return true; }
28  bool Tune(const QString &/*freqid*/, int /*finetune*/) override // ChannelBase
29  { return true; }
30  bool Tune(uint64_t /*frequency*/) 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_tunerTypes; }
39  bool IsPIDTuningSupported(void) const override // DTVChannel
40  { return true; }
41 
42  private:
43  vector<DTVTunerType> m_tunerTypes;
44  QString m_device;
45  bool m_isOpen {false};
46 };
47 
48 #endif // ASI_CHANNEL_H
DTVMultiplex
Definition: dtvmultiplex.h:25
dtvchannel.h
ASIChannel::Tune
bool Tune(uint64_t) override
Definition: asichannel.h:30
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
ASIChannel::GetTunerTypes
vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: asichannel.h:37
ASIChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: asichannel.h:35
ASIChannel::IsPIDTuningSupported
bool IsPIDTuningSupported(void) const override
Definition: asichannel.h:39
ASIChannel::Tune
bool Tune(const QString &, int) override
Definition: asichannel.h:28
ASIChannel
Definition: asichannel.h:16
ASIChannel::Tune
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
Definition: asichannel.h:26
ASIChannel::m_tunerTypes
vector< DTVTunerType > m_tunerTypes
Definition: asichannel.h:43
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143
ASIChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: asichannel.h:33
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:35
ASIChannel::m_device
QString m_device
Definition: asichannel.h:44