MythTV master
asichannel.h
Go to the documentation of this file.
1
2
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
14class 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
-*- Mode: c++ -*-
Definition: asichannel.h:15
bool m_isOpen
Definition: asichannel.h:44
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: asichannel.h:34
bool IsPIDTuningSupported(void) const override
Definition: asichannel.h:38
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: asichannel.h:32
std::vector< DTVTunerType > m_tunerTypes
Definition: asichannel.h:42
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
Definition: asichannel.h:25
ASIChannel(TVRec *parent, QString device)
Definition: asichannel.cpp:16
~ASIChannel(void) override
Definition: asichannel.cpp:22
bool Open(void) override
Opens the channel changing hardware for use.
Definition: asichannel.cpp:28
std::vector< DTVTunerType > GetTunerTypes(void) const override
Returns a vector of supported tuning types.
Definition: asichannel.h:36
bool Tune(uint64_t) override
Definition: asichannel.h:29
QString m_device
Definition: asichannel.h:43
bool Tune(const QString &, int) override
Definition: asichannel.h:27
void Close(void) override
Closes the channel changing hardware to use.
Definition: asichannel.cpp:49
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143