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
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
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
Encapsulates data about MPEG stream and emits events for each table.
bool IsOpen(void) const override
Reports whether channel is already open.
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
bool Open(void) override
Opens the channel changing hardware for use.
void Close(void) override
Closes the channel changing hardware to use.
QMutex m_streamLock
Definition: satipchannel.h:40
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
QString m_device
Definition: satipchannel.h:38
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: satipchannel.h:29
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
bool IsPIDTuningSupported(void) const override
Definition: satipchannel.h:31
SatIPStreamHandler * GetStreamHandler(void) const
Definition: satipchannel.h:35
SatIPStreamHandler * m_streamHandler
Definition: satipchannel.h:41
~SatIPChannel(void) override
SatIPChannel(TVRec *parent, QString device)
MPEGStreamData * m_streamData
Definition: satipchannel.h:42
QMutex m_tuneLock
Definition: satipchannel.h:39
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143