#include <iptvsignalmonitor.h>
Public Member Functions | |
| IPTVSignalMonitor (int db_cardnum, IPTVChannel *_channel, uint64_t _flags=0) | |
| Initializes signal lock and signal values. | |
| virtual | ~IPTVSignalMonitor () |
| Stops signal monitoring and table monitoring threads. | |
| void | Stop (void) |
| Stop signal monitoring and table monitoring threads. | |
| bool | HasExtraSlowTuning (void) const |
| bool | IsAllGood (void) const |
| void | AddData (const unsigned char *data, unsigned int dataSize) |
| Callback function to add MPEG2 TS data. | |
Protected Member Functions | |
| IPTVSignalMonitor (void) | |
| IPTVSignalMonitor (const IPTVSignalMonitor &) | |
| virtual void | UpdateValues (void) |
| Fills in frontend stats and emits status Qt signals. | |
| void | RunTableMonitor (void) |
| IPTVChannel * | GetChannel (void) |
Protected Attributes | |
| volatile bool | dtvMonitorRunning |
| IPTVTableMonitorThread * | tableMonitorThread |
Private Attributes | |
| bool | m_gotlock |
Friends | |
| class | IPTVTableMonitorThread |
Definition at line 23 of file iptvsignalmonitor.h.
| IPTVSignalMonitor::IPTVSignalMonitor | ( | int | db_cardnum, | |
| IPTVChannel * | _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 | IPTVChannel for card | |
| _flags | Flags to start with |
Definition at line 39 of file iptvsignalmonitor.cpp.
| IPTVSignalMonitor::~IPTVSignalMonitor | ( | ) | [virtual] |
Stops signal monitoring and table monitoring threads.
Definition at line 61 of file iptvsignalmonitor.cpp.
| IPTVSignalMonitor::IPTVSignalMonitor | ( | void | ) | [protected] |
| IPTVSignalMonitor::IPTVSignalMonitor | ( | const IPTVSignalMonitor & | ) | [protected] |
| void IPTVSignalMonitor::Stop | ( | void | ) | [virtual] |
Stop signal monitoring and table monitoring threads.
Reimplemented from SignalMonitor.
Definition at line 80 of file iptvsignalmonitor.cpp.
Referenced by ~IPTVSignalMonitor().
| bool IPTVSignalMonitor::HasExtraSlowTuning | ( | void | ) | const [inline, virtual] |
Reimplemented from SignalMonitor.
Definition at line 32 of file iptvsignalmonitor.h.
| bool IPTVSignalMonitor::IsAllGood | ( | void | ) | const [virtual] |
Reimplemented from DTVSignalMonitor.
Definition at line 121 of file iptvsignalmonitor.cpp.
Referenced by UpdateValues().
| void IPTVSignalMonitor::AddData | ( | const unsigned char * | data, | |
| unsigned int | dataSize | |||
| ) | [virtual] |
Callback function to add MPEG2 TS data.
Implements TSDataListener.
Definition at line 115 of file iptvsignalmonitor.cpp.
| void IPTVSignalMonitor::UpdateValues | ( | void | ) | [protected, virtual] |
Fills in frontend stats and emits status Qt signals.
This is automatically called by run(), after Start() has been used to start the signal monitoring thread.
Reimplemented from SignalMonitor.
Definition at line 140 of file iptvsignalmonitor.cpp.
| void IPTVSignalMonitor::RunTableMonitor | ( | void | ) | [protected] |
Definition at line 98 of file iptvsignalmonitor.cpp.
Referenced by IPTVTableMonitorThread::run().
| IPTVChannel * IPTVSignalMonitor::GetChannel | ( | void | ) | [protected] |
Definition at line 72 of file iptvsignalmonitor.cpp.
Referenced by IPTVSignalMonitor(), RunTableMonitor(), Stop(), and ~IPTVSignalMonitor().
friend class IPTVTableMonitorThread [friend] |
Definition at line 25 of file iptvsignalmonitor.h.
Referenced by UpdateValues().
volatile bool IPTVSignalMonitor::dtvMonitorRunning [protected] |
Definition at line 49 of file iptvsignalmonitor.h.
Referenced by RunTableMonitor(), Stop(), and UpdateValues().
Definition at line 50 of file iptvsignalmonitor.h.
Referenced by Stop(), and UpdateValues().
bool IPTVSignalMonitor::m_gotlock [mutable, private] |
Definition at line 53 of file iptvsignalmonitor.h.
Referenced by IPTVSignalMonitor(), IsAllGood(), and ~IPTVSignalMonitor().
1.6.3