#include <hdhrsignalmonitor.h>
Public Member Functions | |
| HDHRSignalMonitor (int db_cardnum, HDHRChannel *_channel, uint64_t _flags=0) | |
| Initializes signal lock and signal values. | |
| virtual | ~HDHRSignalMonitor () |
| Stops signal monitoring and table monitoring threads. | |
| void | Stop (void) |
| Stop signal monitoring and table monitoring threads. | |
Protected Member Functions | |
| HDHRSignalMonitor (void) | |
| HDHRSignalMonitor (const HDHRSignalMonitor &) | |
| virtual void | UpdateValues (void) |
| Fills in frontend stats and emits status Qt signals. | |
| HDHRChannel * | GetHDHRChannel (void) |
Protected Attributes | |
| bool | streamHandlerStarted |
| HDHRStreamHandler * | streamHandler |
Definition at line 13 of file hdhrsignalmonitor.h.
| HDHRSignalMonitor::HDHRSignalMonitor | ( | int | db_cardnum, | |
| HDHRChannel * | _channel, | |||
| uint64_t | _flags = 0 | |||
| ) |
Initializes signal lock and signal values.
Start() must be called to actually begin continuous signal monitoring. The timeout is set to 3 seconds, and the signal threshold is initialized to 0%.
| db_cardnum | Recorder number to monitor, if this is less than 0, SIGNAL events will not be sent to the frontend even if SetNotifyFrontend(true) is called. | |
| _channel | HDHRChannel for card | |
| _flags | Flags to start with |
Definition at line 40 of file hdhrsignalmonitor.cpp.
| HDHRSignalMonitor::~HDHRSignalMonitor | ( | ) | [virtual] |
Stops signal monitoring and table monitoring threads.
Definition at line 57 of file hdhrsignalmonitor.cpp.
| HDHRSignalMonitor::HDHRSignalMonitor | ( | void | ) | [protected] |
| HDHRSignalMonitor::HDHRSignalMonitor | ( | const HDHRSignalMonitor & | ) | [protected] |
| void HDHRSignalMonitor::Stop | ( | void | ) | [virtual] |
Stop signal monitoring and table monitoring threads.
Reimplemented from SignalMonitor.
Definition at line 67 of file hdhrsignalmonitor.cpp.
Referenced by ~HDHRSignalMonitor().
| void HDHRSignalMonitor::UpdateValues | ( | void | ) | [protected, virtual] |
Fills in frontend stats and emits status Qt signals.
This is automatically called by MonitorLoop(), after Start() has been used to start the signal monitoring thread.
Reimplemented from SignalMonitor.
Definition at line 89 of file hdhrsignalmonitor.cpp.
| HDHRChannel * HDHRSignalMonitor::GetHDHRChannel | ( | void | ) | [protected] |
Definition at line 78 of file hdhrsignalmonitor.cpp.
bool HDHRSignalMonitor::streamHandlerStarted [protected] |
Definition at line 30 of file hdhrsignalmonitor.h.
Referenced by Stop(), and UpdateValues().
HDHRStreamHandler* HDHRSignalMonitor::streamHandler [protected] |
Definition at line 31 of file hdhrsignalmonitor.h.
Referenced by HDHRSignalMonitor(), Stop(), UpdateValues(), and ~HDHRSignalMonitor().
1.6.3