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) |
void | StopActiveScan (void) |
Protected Member Functions | |
void | run (void) override |
This runs the event loop for EITScanner until 'exitThread' is true. More... | |
Private Member Functions | |
void | TeardownAll (void) |
void | RescheduleRecordings (void) |
Tells scheduler about programming changes. More... | |
Static Private Member Functions | |
static void * | SpawnEventLoop (void *) |
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_activeScanNextChanIndex {0} |
uint | m_cardnum |
Static Private Attributes | |
static QMutex | s_resched_lock |
static QDateTime | s_resched_next_time |
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 183 of file eitscanner.cpp.
Referenced by TVRec::TuningSignalCheck().
void EITScanner::StopEITEventProcessing | ( | void | ) |
Stops inserting Event Information Tables into DB.
Definition at line 215 of file eitscanner.cpp.
Referenced by StopActiveScan(), and TVRec::TuningShutdowns().
void EITScanner::StartActiveScan | ( | TVRec * | rec, |
std::chrono::seconds | max_seconds_per_source | ||
) |
Definition at line 234 of file eitscanner.cpp.
Referenced by TVRec::run().
void EITScanner::StopActiveScan | ( | void | ) |
Definition at line 300 of file eitscanner.cpp.
Referenced by TVRec::HandleStateChange(), TeardownAll(), and TVRec::TuningShutdowns().
|
overrideprotected |
This runs the event loop for EITScanner until 'exitThread' is true.
Definition at line 72 of file eitscanner.cpp.
|
private |
Definition at line 48 of file eitscanner.cpp.
Referenced by ~EITScanner().
|
staticprivate |
|
private |
Tells scheduler about programming changes.
Definition at line 174 of file eitscanner.cpp.
Referenced by run().
|
private |
Definition at line 48 of file eitscanner.h.
Referenced by run(), StartEITEventProcessing(), StopActiveScan(), StopEITEventProcessing(), and TeardownAll().
|
private |
Definition at line 49 of file eitscanner.h.
Referenced by StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 50 of file eitscanner.h.
Referenced by run(), StartEITEventProcessing(), and StopEITEventProcessing().
|
private |
Definition at line 52 of file eitscanner.h.
Referenced by EITScanner(), RescheduleRecordings(), run(), StartEITEventProcessing(), StopEITEventProcessing(), and TeardownAll().
|
private |
Definition at line 53 of file eitscanner.h.
Referenced by EITScanner(), and TeardownAll().
Definition at line 54 of file eitscanner.h.
Referenced by run(), and TeardownAll().
|
private |
Definition at line 55 of file eitscanner.h.
Referenced by run(), StopActiveScan(), and TeardownAll().
|
private |
Definition at line 57 of file eitscanner.h.
Referenced by run(), StartActiveScan(), and StopActiveScan().
Definition at line 58 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StartEITEventProcessing(), and StopActiveScan().
Definition at line 59 of file eitscanner.h.
Referenced by run(), StartActiveScan(), StopActiveScan(), and StopEITEventProcessing().
|
private |
Definition at line 60 of file eitscanner.h.
Referenced by run(), and StopActiveScan().
|
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 64 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 65 of file eitscanner.h.
Referenced by run(), and StartActiveScan().
|
private |
Definition at line 67 of file eitscanner.h.
|
staticprivate |
Definition at line 69 of file eitscanner.h.
|
staticprivate |
Definition at line 70 of file eitscanner.h.