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 
8 // Qt headers
9 #include <QString>
10 
11 // MythTV headers
12 #include "dtvchannel.h"
13 
14 class ASIChannel : public DTVChannel
15 {
16  public:
17  ASIChannel(TVRec *parent, QString device);
18  ~ASIChannel(void) override;
19 
20  // Commands
21  bool Open(void) override; // ChannelBase
22  void Close(void) override; // ChannelBase
23 
24  using DTVChannel::Tune;
25  bool Tune(const DTVMultiplex &/*tuning*/) override // DTVChannel
26  { return true; }
27  bool Tune(const QString &/*freqid*/, int /*finetune*/) override // ChannelBase
28  { return true; }
29  bool Tune(uint64_t /*frequency*/) override // DTVChannel
30  { return true; }
31  // Gets
32  bool IsOpen(void) const override // ChannelBase
33  { return m_isOpen; }
34  QString GetDevice(void) const override // ChannelBase
35  { return m_device; }
36  std::vector<DTVTunerType> GetTunerTypes(void) const override // DTVChannel
37  { return m_tunerTypes; }
38  bool IsPIDTuningSupported(void) const override // DTVChannel
39  { return true; }
40 
41  private:
42  std::vector<DTVTunerType> m_tunerTypes;
43  QString m_device;
44  bool m_isOpen {false};
45 };
46 
47 #endif // ASI_CHANNEL_H
DTVMultiplex
Definition: dtvmultiplex.h:24
dtvchannel.h
ASIChannel::Tune
bool Tune(uint64_t) override
Definition: asichannel.h:29
ASIChannel::GetTunerTypes
std::vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: asichannel.h:36
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
ASIChannel::Open
bool Open(void) override
Opens the channel changing hardware for use.
Definition: asichannel.cpp:27
ASIChannel::m_isOpen
bool m_isOpen
Definition: asichannel.h:44
ASIChannel::m_tunerTypes
std::vector< DTVTunerType > m_tunerTypes
Definition: asichannel.h:42
ASIChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: asichannel.h:34
ASIChannel::ASIChannel
ASIChannel(TVRec *parent, QString device)
Definition: asichannel.cpp:15
ASIChannel::IsPIDTuningSupported
bool IsPIDTuningSupported(void) const override
Definition: asichannel.h:38
ASIChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: asichannel.cpp:48
ASIChannel::~ASIChannel
~ASIChannel(void) override
Definition: asichannel.cpp:21
ASIChannel::Tune
bool Tune(const QString &, int) override
Definition: asichannel.h:27
ASIChannel
-*- Mode: c++ -*-
Definition: asichannel.h:14
ASIChannel::Tune
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
Definition: asichannel.h:25
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
ASIChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: asichannel.h:32
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:33
ASIChannel::m_device
QString m_device
Definition: asichannel.h:43