MythTV  master
satipchannel.h
Go to the documentation of this file.
1 #ifndef _SATIP_CHANNEL_H_
2 #define _SATIP_CHANNEL_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 
22  using DTVChannel::Tune;
23  bool Tune(const DTVMultiplex& tuning) override; // DTVChannel
24  bool Tune(const QString &channum) override; // DTVChannel
25 
26  // Gets
27  bool IsOpen(void) const override; // ChannelBase
28  QString GetDevice(void) const override // ChannelBase
29  { return m_device; }
30  bool IsPIDTuningSupported(void) const override // DTVChannel
31  { return true; }
32  bool IsMaster(void) const override; // DTVChannel
33 
35 
36  private:
37  QString m_device;
38  mutable QMutex m_tuneLock;
39  mutable QMutex m_streamLock;
42 };
43 
44 #endif // _SATIP_CHANNEL_H_
DTVMultiplex
Definition: dtvmultiplex.h:24
dtvchannel.h
SatIPChannel::SatIPChannel
SatIPChannel(TVRec *parent, QString device)
Definition: satipchannel.cpp:17
SatIPChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: satipchannel.cpp:96
SatIPChannel::IsPIDTuningSupported
bool IsPIDTuningSupported(void) const override
Definition: satipchannel.h:30
SatIPChannel::~SatIPChannel
~SatIPChannel(void) override
Definition: satipchannel.cpp:23
SatIPChannel::m_streamData
MPEGStreamData * m_streamData
Definition: satipchannel.h:41
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:29
SatIPChannel::Tune
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
Definition: satipchannel.cpp:89
SatIPChannel
Definition: satipchannel.h:12
SatIPChannel::GetStreamHandler
SatIPStreamHandler * GetStreamHandler(void) const
Definition: satipchannel.h:34
MPEGStreamData
Encapsulates data about MPEG stream and emits events for each table.
Definition: mpegstreamdata.h:84
SatIPChannel::m_streamLock
QMutex m_streamLock
Definition: satipchannel.h:39
SatIPChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: satipchannel.cpp:63
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:37
satipstreamhandler.h
SatIPChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: satipchannel.h:28
SatIPChannel::m_tuneLock
QMutex m_tuneLock
Definition: satipchannel.h:38
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:33
SatIPStreamHandler
Definition: satipstreamhandler.h:24
SatIPChannel::m_streamHandler
SatIPStreamHandler * m_streamHandler
Definition: satipchannel.h:40
SatIPChannel::m_device
QString m_device
Definition: satipchannel.h:37