Go to the documentation of this file.
5 #include <QMutexLocker>
15 #define LOC QString("SatIPChan[%1]: ").arg(m_inputId)
32 bool is_master = (master ==
this);
39 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Open(%1)").arg(
m_device));
48 LOG(VB_CHANNEL, LOG_DEBUG,
LOC + QString(
"Open(%1) m_tunerType:%2 %3")
53 LOG(VB_CHANNEL, LOG_ERR,
LOC +
"InitializeInput() failed");
65 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Close(%1)").arg(
m_device));
80 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tune(channum=%1) TODO").arg(channum));
83 LOG(VB_CHANNEL, LOG_ERR,
LOC +
"Tune failed, not open");
91 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tune(frequency=%1)").arg(tuning.
m_frequency));
void RegisterForMaster(const QString &key)
static void ReturnMasterLock(DTVChannelP &chan)
SatIPChannel(TVRec *parent, QString device)
bool IsOpen(void) const override
Reports whether channel is already open.
void DeregisterForMaster(const QString &key)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static DTVChannel * GetMasterLock(const QString &key)
~SatIPChannel(void) override
MPEGStreamData * m_streamData
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
virtual void RemoveListener(MPEGStreamData *data)
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
static void Return(SatIPStreamHandler *&ref, int inputid)
static int toTunerType(const QString &deviceid)
void Close(void) override
Closes the channel changing hardware to use.
This is the coordinating class of the Recorder Subsystem.
virtual int GetInputID(void) const
bool Open(void) override
Opens the channel changing hardware for use.
static SatIPStreamHandler * Get(const QString &devname, int inputid)
Class providing a generic interface to digital tuning hardware.
bool Tune(const DTVMultiplex &tuning)
virtual bool InitializeInput(void)
Fills in input map from DB.
SatIPStreamHandler * m_streamHandler