MythTV
master
|
Acts as glue between ChannelBase, EITSource and EITHelper. More...
#include <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_source) |
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 |
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.
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 177 of file eitscanner.cpp.
Referenced by TVRec::TuningSignalCheck().
void EITScanner::StopEITEventProcessing | ( | void | ) |
Stops inserting Event Information Tables into DB.
Definition at line 212 of file eitscanner.cpp.
Referenced by StopActiveScan(), and TVRec::TuningShutdowns().
void EITScanner::StartActiveScan | ( | TVRec * | rec, |
std::chrono::seconds | max_seconds_per_source | ||
) |
void EITScanner::StopActiveScan | ( | void | ) |
Stop active EIT scan.
Definition at line 310 of file eitscanner.cpp.
Referenced by TVRec::EnableActiveScan(), TVRec::HandleStateChange(), TeardownAll(), and TVRec::TuningShutdowns().
|
overrideprotected |
This runs the event loop for EITScanner until 'm_exitThread' is true.
Definition at line 74 of file eitscanner.cpp.
|
private |
Stop active scan, delete thread and delete eithelper.
Definition at line 50 of file eitscanner.cpp.
Referenced by ~EITScanner().
|
private |
Tells scheduler about programming changes.
Definition at line 168 of file eitscanner.cpp.
Referenced by run().
|
private |
Definition at line 47 of file eitscanner.h.
Referenced by run(), StartEITEventProcessing(), StopActiveScan(), StopEITEventProcessing(), and TeardownAll().
|
private |
Definition at line 48 of file eitscanner.h.
Referenced by StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 49 of file eitscanner.h.
Referenced by StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 51 of file eitscanner.h.
Referenced by EITScanner(), RescheduleRecordings(), run(), StartEITEventProcessing(), StopEITEventProcessing(), and TeardownAll().
|
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 56 of file eitscanner.h.
Referenced by run(), StartActiveScan(), and StopActiveScan().
Definition at line 57 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StartEITEventProcessing(), and StopActiveScan().
Definition at line 58 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StopActiveScan(), and StopEITEventProcessing().
|
private |
Definition at line 59 of file eitscanner.h.
Referenced by run(), and StopActiveScan().
|
private |
Definition at line 60 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 61 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 62 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 63 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 65 of file eitscanner.h.