MythTV  master
ExternalSignalMonitor.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef EXTERNALSIGNALMONITOR_H
4 #define EXTERNALSIGNALMONITOR_H
5 
6 #include <QMap>
7 
8 #include "dtvsignalmonitor.h"
9 #include "ExternalChannel.h"
10 
12 
13 using FilterMap = QMap<uint,int>;
14 
16 {
17  public:
18  ExternalSignalMonitor(int db_cardnum, ExternalChannel *_channel,
19  bool _release_stream, uint64_t _flags = 0);
20  ~ExternalSignalMonitor() override;
21 
22  void Stop(void) override; // SignalMonitor
23 
24  protected:
27 
28  void UpdateValues(void) override; // SignalMonitor
30  { return dynamic_cast<ExternalChannel*>(m_channel); }
31 
32  bool HasLock(void);
33  int GetSignalStrengthPercent(void);
34  int GetLockTimeout(void);
35 
36 // void AddHandlerListener(MPEGStreamData *data)
37 // { m_stream_handler->AddListener(data); }
38 
39  protected:
42  int m_lock_timeout {0};
43  QString m_loc;
44 };
45 
46 #endif // EXTERNALSIGNALMONITOR_H
SignalMonitor::m_channel
ChannelBase * m_channel
Definition: signalmonitor.h:203
ExternalSignalMonitor::GetLockTimeout
int GetLockTimeout(void)
Definition: ExternalSignalMonitor.cpp:214
ExternalSignalMonitor::GetSignalStrengthPercent
int GetSignalStrengthPercent(void)
Definition: ExternalSignalMonitor.cpp:188
ExternalStreamHandler
Definition: ExternalStreamHandler.h:60
ExternalSignalMonitor::m_loc
QString m_loc
Definition: ExternalSignalMonitor.h:43
FilterMap
QMap< uint, int > FilterMap
Definition: ExternalSignalMonitor.h:13
ExternalSignalMonitor::~ExternalSignalMonitor
~ExternalSignalMonitor() override
Stops signal monitoring and table monitoring threads.
Definition: ExternalSignalMonitor.cpp:63
ExternalChannel
Definition: ExternalChannel.h:18
ExternalSignalMonitor
Definition: ExternalSignalMonitor.h:15
ExternalSignalMonitor::HasLock
bool HasLock(void)
Definition: ExternalSignalMonitor.cpp:172
ExternalSignalMonitor::m_stream_handler
ExternalStreamHandler * m_stream_handler
Definition: ExternalSignalMonitor.h:40
ExternalSignalMonitor::m_lock_timeout
int m_lock_timeout
Definition: ExternalSignalMonitor.h:42
ExternalSignalMonitor::m_stream_handler_started
bool m_stream_handler_started
Definition: ExternalSignalMonitor.h:41
ExternalChannel.h
ExternalSignalMonitor::GetExternalChannel
ExternalChannel * GetExternalChannel(void)
Definition: ExternalSignalMonitor.h:29
DTVSignalMonitor
This class is intended to detect the presence of needed tables.
Definition: dtvsignalmonitor.h:15
ExternalSignalMonitor::UpdateValues
void UpdateValues(void) override
Fills in frontend stats and emits status Qt signals.
Definition: ExternalSignalMonitor.cpp:96
ExternalSignalMonitor::Stop
void Stop(void) override
Stop signal monitoring and table monitoring threads.
Definition: ExternalSignalMonitor.cpp:73
ExternalSignalMonitor::ExternalSignalMonitor
ExternalSignalMonitor(void)
dtvsignalmonitor.h