Go to the documentation of this file.
14 #ifdef USING_OSX_FIREWIRE
19 #define LOC QString("FireChan[%1](%2): ").arg(m_inputId).arg(FirewireChannel::GetDevice())
24 m_videodevice(std::move(_videodevice)),
25 m_fwOpts(std::move(firewire_opts))
30 #ifdef USING_LINUX_FIREWIRE
34 #endif // USING_LINUX_FIREWIRE
36 #ifdef USING_OSX_FIREWIRE
38 #endif // USING_OSX_FIREWIRE
49 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Open()");
66 LOG(VB_GENERAL, LOG_ERR,
LOC +
82 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Close()");
99 LOG(VB_GENERAL, LOG_ERR,
LOC +
100 "SetPowerState() called on closed FirewireChannel.");
112 LOG(VB_GENERAL, LOG_ERR,
LOC +
113 "GetPowerState() called on closed FirewireChannel.");
123 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Retune()");
127 LOG(VB_GENERAL, LOG_ERR,
LOC +
128 "STB is turned off, must be on to retune.");
136 return Tune(freqid, 0);
144 LOG(VB_CHANNEL, LOG_INFO, QString(
"Tune(%1)").arg(freqid));
147 uint channel = freqid.toUInt(&ok);
153 LOG(VB_GENERAL, LOG_WARNING,
LOC +
154 "STB is turned off, must be on to set channel.");
FirewireDevice * m_device
bool Open(void) override
Opens the channel changing hardware for use.
FireWireDBOptions m_fwOpts
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static uint64_t string_to_guid(const QString &guid)
FirewireChannel(TVRec *parent, QString videodevice, FireWireDBOptions firewire_opts)
void Close(void) override
Closes the channel changing hardware to use.
bool Retune(void) override
~FirewireChannel() override
virtual bool IsExternalChannelChangeInUse(void)
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
static const uint kConnectionP2P
virtual FirewireDevice::PowerState GetPowerState(void) const
static bool IsSTBSupported(const QString &model)
virtual bool SetPowerState(bool on)
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
This is the coordinating class of the Recorder Subsystem.
#define LOC
FirewireChannel Copyright (c) 2005 by Jim Westfall, Dave Abrahams Copyright (c) 2006 by Daniel Kristj...
virtual PowerState GetPowerState(void)
Class providing a generic interface to digital tuning hardware.
virtual bool SetChannel(const QString &panel_model, uint alt_method, uint channel)
virtual bool SetPowerState(bool on)
virtual bool InitializeInput(void)
Fills in input map from DB.
virtual bool ClosePort(void)=0
virtual bool OpenPort(void)=0