|
MythTV master
|
Acts as glue between ChannelBase, EITSource and EITHelper. More...
#include <libmythtv/eitscanner.h>
Public Member Functions | |
| EITScanner (uint cardnum) | |
| ~EITScanner () override | |
| void | StartEITEventProcessing (ChannelBase *channel, EITSource *eitSource) |
| Start inserting Event Information Tables from the multiplex we happen to be tuned to into the database. More... | |
| void | StopEITEventProcessing (void) |
| Stops inserting Event Information Tables into DB. More... | |
| void | StartActiveScan (TVRec *rec, std::chrono::seconds max_seconds_per_multiplex) |
| Start active EIT scan. More... | |
| void | StopActiveScan (void) |
| Stop active EIT scan. More... | |
Protected Member Functions | |
| void | run (void) override |
| This runs the event loop for EITScanner until 'm_exitThread' is true. More... | |
Private Member Functions | |
| void | TeardownAll (void) |
| Stop active scan, delete thread and delete eithelper. More... | |
| void | RescheduleRecordings (void) |
| Tells scheduler about programming changes. More... | |
Private Attributes | |
| QMutex | m_lock |
| ChannelBase * | m_channel {nullptr} |
| EITSource * | m_eitSource {nullptr} |
| EITHelper * | m_eitHelper {nullptr} |
| MThread * | m_eventThread {nullptr} |
| volatile bool | m_exitThread {false} |
| QWaitCondition | m_exitThreadCond |
| TVRec * | m_rec {nullptr} |
| volatile bool | m_activeScan {false} |
| volatile bool | m_activeScanStopped {true} |
| QWaitCondition | m_activeScanCond |
| QDateTime | m_activeScanNextTrig |
| std::chrono::seconds | m_activeScanTrigTime {0s} |
| QStringList | m_activeScanChannels |
| QStringList::iterator | m_activeScanNextChan |
| uint | m_cardnum {0} |
| uint | m_sourceid {0} |
| QString | m_sourceName |
| uint | m_eitCount {0} |
| uint | m_mplexid {0} |
Acts as glue between ChannelBase, EITSource and EITHelper.
This is the class where the "EIT Crawl" is implemented.
Definition at line 28 of file eitscanner.h.
|
explicit |
Definition at line 35 of file eitscanner.cpp.
|
inlineoverride |
Definition at line 32 of file eitscanner.h.
|
private |
Tells scheduler about programming changes.
Definition at line 179 of file eitscanner.cpp.
Referenced by run(), and StopEITEventProcessing().
|
overrideprotected |
This runs the event loop for EITScanner until 'm_exitThread' is true.
Definition at line 79 of file eitscanner.cpp.
| void EITScanner::StartActiveScan | ( | TVRec * | rec, |
| std::chrono::seconds | max_seconds_per_multiplex | ||
| ) |
| void EITScanner::StartEITEventProcessing | ( | ChannelBase * | channel, |
| EITSource * | eitSource | ||
| ) |
Start inserting Event Information Tables from the multiplex we happen to be tuned to into the database.
Definition at line 188 of file eitscanner.cpp.
Referenced by TVRec::TuningSignalCheck().
| void EITScanner::StopActiveScan | ( | void | ) |
Stop active EIT scan.
Definition at line 333 of file eitscanner.cpp.
Referenced by TVRec::EnableActiveScan(), TVRec::HandleStateChange(), TVRec::run(), TeardownAll(), and TVRec::TuningShutdowns().
| void EITScanner::StopEITEventProcessing | ( | void | ) |
Stops inserting Event Information Tables into DB.
Definition at line 221 of file eitscanner.cpp.
Referenced by StopActiveScan(), and TVRec::TuningShutdowns().
|
private |
Stop active scan, delete thread and delete eithelper.
Definition at line 55 of file eitscanner.cpp.
Referenced by ~EITScanner().
Definition at line 57 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StartEITEventProcessing(), and StopActiveScan().
|
private |
Definition at line 62 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 59 of file eitscanner.h.
Referenced by run(), and StopActiveScan().
|
private |
Definition at line 63 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 60 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
Definition at line 58 of file eitscanner.h.
Referenced by run(), StartActiveScan(), and StopActiveScan().
|
private |
Definition at line 61 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 65 of file eitscanner.h.
|
private |
Definition at line 48 of file eitscanner.h.
Referenced by StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 68 of file eitscanner.h.
Referenced by run(), and StopEITEventProcessing().
|
private |
Definition at line 51 of file eitscanner.h.
Referenced by EITScanner(), RescheduleRecordings(), run(), StartEITEventProcessing(), StopEITEventProcessing(), and TeardownAll().
|
private |
Definition at line 49 of file eitscanner.h.
Referenced by StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 52 of file eitscanner.h.
Referenced by EITScanner(), and TeardownAll().
Definition at line 53 of file eitscanner.h.
Referenced by run(), and TeardownAll().
|
private |
Definition at line 54 of file eitscanner.h.
Referenced by run(), StopActiveScan(), and TeardownAll().
|
private |
Definition at line 47 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StartEITEventProcessing(), StopActiveScan(), StopEITEventProcessing(), and TeardownAll().
|
private |
Definition at line 69 of file eitscanner.h.
Referenced by run(), and StartEITEventProcessing().
|
private |
Definition at line 56 of file eitscanner.h.
Referenced by run(), StartActiveScan(), and StopActiveScan().
|
private |
Definition at line 66 of file eitscanner.h.
Referenced by EITScanner(), run(), StartActiveScan(), StartEITEventProcessing(), StopActiveScan(), and StopEITEventProcessing().
|
private |
Definition at line 67 of file eitscanner.h.
Referenced by EITScanner(), run(), StartActiveScan(), StartEITEventProcessing(), StopActiveScan(), and StopEITEventProcessing().