#include <firewirechannel.h>
Public Member Functions | |
| FirewireChannel (TVRec *parent, const QString &videodevice, const FireWireDBOptions &firewire_opts) | |
| virtual | ~FirewireChannel () |
| 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 &freqid, int finetune) |
| This tunes on the frequency Identification parameter for hardware that supports it. | |
| virtual bool | Retune (void) |
| virtual bool | SetPowerState (bool on) |
| virtual bool | IsOpen (void) const |
| Reports whether channel is already open. | |
| virtual QString | GetDevice (void) const |
| Returns String representing device, useful for debugging. | |
| virtual bool | IsExternalChannelChangeSupported (void) |
Protected Attributes | |
| QString | videodevice |
| FireWireDBOptions | fw_opts |
| FirewireDevice * | device |
| uint | current_channel |
| bool | isopen |
Private Member Functions | |
| virtual FirewireDevice::PowerState | GetPowerState (void) const |
| virtual FirewireDevice * | GetFirewireDevice (void) |
Friends | |
| class | FirewireSignalMonitor |
| class | FirewireRecorder |
Definition at line 14 of file firewirechannel.h.
| FirewireChannel::FirewireChannel | ( | TVRec * | parent, | |
| const QString & | videodevice, | |||
| const FireWireDBOptions & | firewire_opts | |||
| ) |
Definition at line 18 of file firewirechannel.cpp.
| FirewireChannel::~FirewireChannel | ( | ) | [virtual] |
Definition at line 41 of file firewirechannel.cpp.
| bool FirewireChannel::Open | ( | void | ) | [virtual] |
Opens the channel changing hardware for use.
Implements ChannelBase.
Definition at line 47 of file firewirechannel.cpp.
| void FirewireChannel::Close | ( | void | ) | [virtual] |
Closes the channel changing hardware to use.
Implements ChannelBase.
Definition at line 81 of file firewirechannel.cpp.
Referenced by ~FirewireChannel().
| virtual bool FirewireChannel::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 28 of file firewirechannel.h.
Referenced by Retune().
| bool FirewireChannel::Tune | ( | const QString & | freqid, | |
| int | finetune | |||
| ) | [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 143 of file firewirechannel.cpp.
| bool FirewireChannel::Retune | ( | void | ) | [virtual] |
Reimplemented from ChannelBase.
Definition at line 122 of file firewirechannel.cpp.
Referenced by FirewireSignalMonitor::UpdateValues().
Definition at line 96 of file firewirechannel.cpp.
Referenced by FirewireSignalMonitor::UpdateValues().
| virtual bool FirewireChannel::IsOpen | ( | void | ) | const [inline, virtual] |
Reports whether channel is already open.
Implements ChannelBase.
Definition at line 36 of file firewirechannel.h.
| QString FirewireChannel::GetDevice | ( | void | ) | const [virtual] |
Returns String representing device, useful for debugging.
Reimplemented from ChannelBase.
Definition at line 91 of file firewirechannel.cpp.
| virtual bool FirewireChannel::IsExternalChannelChangeSupported | ( | void | ) | [inline, virtual] |
Reimplemented from ChannelBase.
Definition at line 38 of file firewirechannel.h.
| FirewireDevice::PowerState FirewireChannel::GetPowerState | ( | void | ) | const [private, virtual] |
Definition at line 109 of file firewirechannel.cpp.
Referenced by FirewireSignalMonitor::FirewireSignalMonitor(), Retune(), Tune(), and FirewireSignalMonitor::UpdateValues().
| virtual FirewireDevice* FirewireChannel::GetFirewireDevice | ( | void | ) | [inline, private, virtual] |
Definition at line 42 of file firewirechannel.h.
Referenced by FirewireRecorder::Close(), FirewireSignalMonitor::HandlePAT(), FirewireRecorder::Open(), FirewireSignalMonitor::RunTableMonitor(), FirewireRecorder::StartStreaming(), and FirewireRecorder::StopStreaming().
friend class FirewireSignalMonitor [friend] |
Definition at line 16 of file firewirechannel.h.
friend class FirewireRecorder [friend] |
Definition at line 17 of file firewirechannel.h.
QString FirewireChannel::videodevice [protected] |
Definition at line 45 of file firewirechannel.h.
Referenced by FirewireChannel(), and GetDevice().
FireWireDBOptions FirewireChannel::fw_opts [protected] |
Definition at line 46 of file firewirechannel.h.
Referenced by FirewireChannel(), Open(), and Tune().
FirewireDevice* FirewireChannel::device [protected] |
Definition at line 47 of file firewirechannel.h.
Referenced by Close(), FirewireChannel(), GetFirewireDevice(), GetPowerState(), Open(), SetPowerState(), Tune(), and ~FirewireChannel().
uint FirewireChannel::current_channel [protected] |
Definition at line 48 of file firewirechannel.h.
bool FirewireChannel::isopen [protected] |
Definition at line 49 of file firewirechannel.h.
Referenced by Close(), GetPowerState(), IsOpen(), Open(), and SetPowerState().
1.6.3