MythTV  master
iptvsignalmonitor.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef IPTVSIGNALMONITOR_H
4 #define IPTVSIGNALMONITOR_H
5 
6 #include "dtvsignalmonitor.h"
7 
8 class IPTVChannel;
10 
12 {
13  friend class IPTVTableMonitorThread;
14  public:
15  IPTVSignalMonitor(int db_cardnum, IPTVChannel *_channel,
16  bool _release_stream, uint64_t _flags = 0);
17  ~IPTVSignalMonitor() override;
18 
19  void Stop(void) override; // SignalMonitor
20 
21  // DTVSignalMonitor
22  void SetStreamData(MPEGStreamData *data) override; // DTVSignalMonitor
23 
24  // MPEG
25  void HandlePAT(const ProgramAssociationTable *pat) override; // DTVSignalMonitor
26 
27  protected:
30 
31  void UpdateValues(void) override; // SignalMonitor
33 
34  protected:
35  bool m_streamHandlerStarted {false};
36  bool m_locked {false};
37 };
38 
39 #endif // IPTVSIGNALMONITOR_H
IPTVSignalMonitor::IPTVTableMonitorThread
friend class IPTVTableMonitorThread
Definition: iptvsignalmonitor.h:13
IPTVSignalMonitor::HandlePAT
void HandlePAT(const ProgramAssociationTable *pat) override
Definition: iptvsignalmonitor.cpp:68
IPTVSignalMonitor::IPTVSignalMonitor
IPTVSignalMonitor(void)
MPEGStreamData
Encapsulates data about MPEG stream and emits events for each table.
Definition: mpegstreamdata.h:85
IPTVChannel
Definition: iptvchannel.h:25
IPTVSignalMonitor::~IPTVSignalMonitor
~IPTVSignalMonitor() override
Stops signal monitoring and table monitoring threads.
Definition: iptvsignalmonitor.cpp:39
IPTVSignalMonitor::IPTVSignalMonitor
IPTVSignalMonitor(const IPTVSignalMonitor &)
IPTVSignalMonitor::SetStreamData
void SetStreamData(MPEGStreamData *data) override
Sets the MPEG stream data for DTVSignalMonitor to use, and connects the table signals to the monitor.
Definition: iptvsignalmonitor.cpp:62
ProgramAssociationTable
The Program Association Table lists all the programs in a stream, and is always found on PID 0.
Definition: mpegtables.h:605
IPTVSignalMonitor::GetIPTVChannel
IPTVChannel * GetIPTVChannel(void)
Definition: iptvsignalmonitor.cpp:45
IPTVSignalMonitor::Stop
void Stop(void) override
Stop signal monitoring and table monitoring threads.
Definition: iptvsignalmonitor.cpp:53
DTVSignalMonitor
This class is intended to detect the presence of needed tables.
Definition: dtvsignalmonitor.h:19
IPTVSignalMonitor::UpdateValues
void UpdateValues(void) override
Fills in frontend stats and emits status Qt signals.
Definition: iptvsignalmonitor.cpp:81
IPTVSignalMonitor::m_streamHandlerStarted
bool m_streamHandlerStarted
Definition: iptvsignalmonitor.h:35
IPTVSignalMonitor::m_locked
bool m_locked
Definition: iptvsignalmonitor.h:36
IPTVSignalMonitor
Definition: iptvsignalmonitor.h:12
dtvsignalmonitor.h