MythTV  master
scriptsignalmonitor.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef _SCRIPT_SIGNAL_MONITOR_H_
4 #define _SCRIPT_SIGNAL_MONITOR_H_
5 
6 // MythTV headers
7 #include "signalmonitor.h"
8 
10 {
11  public:
12  ScriptSignalMonitor(int db_cardnum, ChannelBase *_channel,
13  bool _release_stream,
14  uint64_t _flags = 0) :
15  SignalMonitor(db_cardnum, _channel, _release_stream, _flags)
16  {
17  m_signalLock.SetValue(true);
19  }
20 
21  void UpdateValues(void) override // SignalMonitor
22  {
24 
25  EmitStatus();
26  if (IsAllGood())
28  }
29 };
30 
31 #endif // _SCRIPT_SIGNAL_MONITOR_H_
void UpdateValues(void) override
This should be overridden to actually do signal monitoring.
ScriptSignalMonitor(int db_cardnum, ChannelBase *_channel, bool _release_stream, uint64_t _flags=0)
void SetValue(int _value)
void SendMessageAllGood(void)
Signal monitoring base class.
Definition: signalmonitor.h:32
Abstract class providing a generic interface to tuning hardware.
Definition: channelbase.h:31
SignalMonitorValue m_signalStrength
SignalMonitorValue m_signalLock
virtual void EmitStatus(void)
virtual void UpdateValues(void)
This should be overridden to actually do signal monitoring.
virtual bool IsAllGood(void) const
Definition: signalmonitor.h:79