#include <asichannel.h>
Public Member Functions | |
| ASIChannel (TVRec *parent, const QString &device) | |
| ~ASIChannel (void) | |
| virtual bool | Open (void) |
| Opens the channel changing hardware for use. | |
| virtual void | Close (void) |
| Closes the channel changing hardware to use. | |
| virtual bool | Tune (const DTVMultiplex &, QString) |
| This performs the actual frequency tuning and in some cases input switching. | |
| virtual bool | Tune (const QString &, int) |
| This tunes on the frequency Identification parameter for hardware that supports it. | |
| virtual bool | Tune (uint64_t, QString) |
| virtual bool | IsOpen (void) const |
| Reports whether channel is already open. | |
| virtual QString | GetDevice (void) const |
| Returns String representing device, useful for debugging. | |
| virtual vector< DTVTunerType > | GetTunerTypes (void) const |
| Returns a vector of supported tuning types. | |
| virtual bool | IsPIDTuningSupported (void) const |
Private Attributes | |
| vector< DTVTunerType > | m_tuner_types |
| QString | m_device |
| bool | m_isopen |
Definition at line 18 of file asichannel.h.
| ASIChannel::ASIChannel | ( | TVRec * | parent, | |
| const QString & | device | |||
| ) |
Definition at line 12 of file asichannel.cpp.
| ASIChannel::~ASIChannel | ( | void | ) |
Definition at line 18 of file asichannel.cpp.
| bool ASIChannel::Open | ( | void | ) | [virtual] |
Opens the channel changing hardware for use.
Implements ChannelBase.
Definition at line 24 of file asichannel.cpp.
| void ASIChannel::Close | ( | void | ) | [virtual] |
Closes the channel changing hardware to use.
Implements ChannelBase.
Definition at line 45 of file asichannel.cpp.
Referenced by ~ASIChannel().
| virtual bool ASIChannel::Tune | ( | const DTVMultiplex & | tuning, | |
| QString | inputname | |||
| ) | [inline, virtual] |
This performs the actual frequency tuning and in some cases input switching.
In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.
Implements DTVChannel.
Definition at line 27 of file asichannel.h.
| virtual bool ASIChannel::Tune | ( | const QString & | freqid, | |
| int | finetune | |||
| ) | [inline, virtual] |
This tunes on the frequency Identification parameter for hardware that supports it.
This is only called when there is no frequency set. This is used to implement "Channel Numbers" in analog tuning scenarios and to implement "Virtual Channels" in the OCUR and Firewire tuners.
Reimplemented from DTVChannel.
Definition at line 28 of file asichannel.h.
Reimplemented from DTVChannel.
Definition at line 29 of file asichannel.h.
| virtual bool ASIChannel::IsOpen | ( | void | ) | const [inline, virtual] |
Reports whether channel is already open.
Implements ChannelBase.
Definition at line 32 of file asichannel.h.
Referenced by ~ASIChannel().
| virtual QString ASIChannel::GetDevice | ( | void | ) | const [inline, virtual] |
Returns String representing device, useful for debugging.
Reimplemented from ChannelBase.
Definition at line 33 of file asichannel.h.
Referenced by ASISignalMonitor::ASISignalMonitor(), and ASIRecorder::Open().
| virtual vector<DTVTunerType> ASIChannel::GetTunerTypes | ( | void | ) | const [inline, virtual] |
Returns a vector of supported tuning types.
Reimplemented from DTVChannel.
Definition at line 34 of file asichannel.h.
| virtual bool ASIChannel::IsPIDTuningSupported | ( | void | ) | const [inline, virtual] |
Reimplemented from DTVChannel.
Definition at line 36 of file asichannel.h.
vector<DTVTunerType> ASIChannel::m_tuner_types [private] |
Definition at line 39 of file asichannel.h.
Referenced by ASIChannel(), and GetTunerTypes().
QString ASIChannel::m_device [private] |
Definition at line 40 of file asichannel.h.
Referenced by GetDevice(), and Open().
bool ASIChannel::m_isopen [private] |
Definition at line 41 of file asichannel.h.
1.6.3