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 typedef QMap<uint,int> FilterMap;
14 
16 {
17  public:
18  ExternalSignalMonitor(int db_cardnum, ExternalChannel *_channel,
19  bool _release_stream, uint64_t _flags = 0);
20  virtual ~ExternalSignalMonitor();
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 };
44 
45 #endif // EXTERNALSIGNALMONITOR_H
void UpdateValues(void) override
Fills in frontend stats and emits status Qt signals.
ChannelBase * m_channel
ExternalChannel * GetExternalChannel(void)
ExternalStreamHandler * m_stream_handler
void Stop(void) override
Stop signal monitoring and table monitoring threads.
virtual ~ExternalSignalMonitor()
Stops signal monitoring and table monitoring threads.
This class is intended to detect the presence of needed tables.
QMap< uint, int > FilterMap