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(static_cast<int>(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
SignalMonitorValue::SetValue
void SetValue(int _value)
Definition: signalmonitorvalue.h:74
SignalMonitor::IsAllGood
virtual bool IsAllGood(void) const
Definition: signalmonitor.h:85
signalmonitor.h
ScriptSignalMonitor::UpdateValues
void UpdateValues(void) override
This should be overridden to actually do signal monitoring.
Definition: scriptsignalmonitor.h:21
ScriptSignalMonitor
Definition: scriptsignalmonitor.h:9
SignalMonitor::m_signalStrength
SignalMonitorValue m_signalStrength
Definition: signalmonitor.h:221
ChannelBase
Abstract class providing a generic interface to tuning hardware.
Definition: channelbase.h:31
SignalMonitor::m_signalLock
SignalMonitorValue m_signalLock
Definition: signalmonitor.h:220
SignalMonitor::SendMessageAllGood
void SendMessageAllGood(void)
Definition: signalmonitor.cpp:467
SignalMonitor::EmitStatus
virtual void EmitStatus(void)
Definition: signalmonitor.cpp:474
SignalMonitor::UpdateValues
virtual void UpdateValues(void)
This should be overridden to actually do signal monitoring.
Definition: signalmonitor.cpp:458
ScriptSignalMonitor::ScriptSignalMonitor
ScriptSignalMonitor(int db_cardnum, ChannelBase *_channel, bool _release_stream, uint64_t _flags=0)
Definition: scriptsignalmonitor.h:12
SignalMonitor
Signal monitoring base class.
Definition: signalmonitor.h:34