MythTV  master
satipchannel.h
Go to the documentation of this file.
1 #ifndef SATIPCHANNEL_H
2 #define SATIPCHANNEL_H
3 
4 // Qt headers
5 #include <QString>
6 #include <QMutex>
7 
8 // MythTV headers
9 #include "dtvchannel.h"
10 #include "satipstreamhandler.h"
11 
12 class SatIPChannel : public DTVChannel
13 {
14  public:
15  SatIPChannel(TVRec *parent, QString device);
16  ~SatIPChannel(void) override;
17 
18  // Commands
19  bool Open(void) override; // ChannelBase
20  void Close(void) override; // ChannelBase
21  bool EnterPowerSavingMode(void) override; // DTVChannel
22 
23  using DTVChannel::Tune;
24  bool Tune(const DTVMultiplex& tuning) override; // DTVChannel
25  bool Tune(const QString &channum) override; // DTVChannel
26 
27  // Gets
28  bool IsOpen(void) const override; // ChannelBase
29  QString GetDevice(void) const override // ChannelBase
30  { return m_device; }
31  bool IsPIDTuningSupported(void) const override // DTVChannel
32  { return true; }
33  bool IsMaster(void) const override; // DTVChannel
34 
36 
37  private:
38  QString m_device;
39  mutable QMutex m_tuneLock;
40  mutable QMutex m_streamLock;
43 };
44 
45 #endif // SATIPCHANNEL_H
SatIPChannel::EnterPowerSavingMode
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
Definition: satipchannel.cpp:92
DTVMultiplex
Definition: dtvmultiplex.h:24
dtvchannel.h
SatIPChannel::SatIPChannel
SatIPChannel(TVRec *parent, QString device)
Definition: satipchannel.cpp:18
SatIPChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: satipchannel.cpp:97
SatIPChannel::IsPIDTuningSupported
bool IsPIDTuningSupported(void) const override
Definition: satipchannel.h:31
SatIPChannel::~SatIPChannel
~SatIPChannel(void) override
Definition: satipchannel.cpp:24
SatIPChannel::m_streamData
MPEGStreamData * m_streamData
Definition: satipchannel.h:42
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
SatIPChannel::IsMaster
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
Definition: satipchannel.cpp:30
SatIPChannel::Tune
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
Definition: satipchannel.cpp:105
SatIPChannel
Definition: satipchannel.h:12
SatIPChannel::GetStreamHandler
SatIPStreamHandler * GetStreamHandler(void) const
Definition: satipchannel.h:35
MPEGStreamData
Encapsulates data about MPEG stream and emits events for each table.
Definition: mpegstreamdata.h:85
SatIPChannel::m_streamLock
QMutex m_streamLock
Definition: satipchannel.h:40
SatIPChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: satipchannel.cpp:66
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
SatIPChannel::Open
bool Open(void) override
Opens the channel changing hardware for use.
Definition: satipchannel.cpp:38
satipstreamhandler.h
SatIPChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: satipchannel.h:29
SatIPChannel::m_tuneLock
QMutex m_tuneLock
Definition: satipchannel.h:39
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:33
SatIPStreamHandler
Definition: satipstreamhandler.h:22
SatIPChannel::m_streamHandler
SatIPStreamHandler * m_streamHandler
Definition: satipchannel.h:41
SatIPChannel::m_device
QString m_device
Definition: satipchannel.h:38