MythTV master
|
#include <libmythtv/eithelper.h>
Public Member Functions | |
EITHelper (uint cardnum) | |
EITHelper & | operator= (const EITHelper &)=delete |
EITHelper (const EITHelper &rhs) | |
virtual | ~EITHelper (void) |
uint | GetListSize (void) const |
uint | ProcessEvents (void) |
Get events from queue and insert into DB after processing. More... | |
bool | EventQueueFull (void) const |
uint | GetGPSOffset (void) const |
void | SetChannelID (uint channelid) |
void | SetGPSOffset (uint gps_offset) |
void | SetFixup (uint atsc_major, uint atsc_minor, FixupValue eitfixup) |
void | SetLanguagePreferences (const QStringList &langPref) |
void | SetSourceID (uint sourceid) |
void | RescheduleRecordings (void) |
Tells scheduler about programming changes. More... | |
void | AddEIT (uint, uint, const EventInformationTable *) |
void | AddETT (uint, uint, const ExtendedTextTable *) |
void | AddEIT (const DVBEventInformationTable *) |
void | AddEIT (const PremiereContentInformationTable *) |
Static Public Member Functions | |
static void | PruneEITCache (uint timestamp) |
static void | WriteEITCache (void) |
Private Member Functions | |
uint | GetChanID (uint atsc_major, uint atsc_minor) |
uint | GetChanID (uint serviceid, uint networkid, uint tsid) |
uint | GetChanID (uint program_number) |
void | CompleteEvent (uint atsc_major, uint atsc_minor, const ATSCEvent &event, const QString &ett) |
Private Attributes | |
QMutex | m_eitListLock |
ServiceToChanID | m_srvToChanid |
int | m_gpsOffset {-1 * GPS_LEAP_SECONDS} |
uint | m_cardnum {0} |
uint | m_sourceid {0} |
uint | m_channelid {0} |
QDateTime | m_maxStarttime |
bool | m_seenEITother {false} |
uint | m_chunkSize {20} |
uint | m_queueSize {1000} |
FixupMap | m_fixup |
ATSCSRCToEvents | m_incompleteEvents |
MythDeque< DBEventEIT * > | m_dbEvents |
QMap< uint, uint > | m_languagePreferences |
Static Private Attributes | |
static EITCache * | s_eitCache = new EITCache() |
static const uint | kMaxQueueSize = 10000 |
Definition at line 93 of file eithelper.h.
|
explicit |
Definition at line 40 of file eithelper.cpp.
EITHelper::EITHelper | ( | const EITHelper & | rhs | ) |
|
virtual |
Definition at line 59 of file eithelper.cpp.
|
inline |
Definition at line 124 of file eithelper.h.
|
inline |
Definition at line 125 of file eithelper.h.
|
inline |
Definition at line 122 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables(), and DVBStreamData::HandleTables().
|
inline |
Definition at line 123 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables().
|
private |
Definition at line 794 of file eithelper.cpp.
bool EITHelper::EventQueueFull | ( | void | ) | const |
Definition at line 72 of file eithelper.cpp.
Referenced by CompleteEvent().
Definition at line 832 of file eithelper.cpp.
Referenced by CompleteEvent().
Definition at line 873 of file eithelper.cpp.
Definition at line 852 of file eithelper.cpp.
|
inline |
Definition at line 105 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables().
uint EITHelper::GetListSize | ( | void | ) | const |
Definition at line 66 of file eithelper.cpp.
Referenced by EventQueueFull(), and EITScanner::run().
uint EITHelper::ProcessEvents | ( | void | ) |
Get events from queue and insert into DB after processing.
Process a maximum of kChunkSize events at a time to avoid clogging the machine.
Definition at line 87 of file eithelper.cpp.
Referenced by EITScanner::run().
|
static |
Definition at line 780 of file eithelper.cpp.
Referenced by EITScanner::run().
void EITHelper::RescheduleRecordings | ( | void | ) |
Tells scheduler about programming changes.
Definition at line 1365 of file eithelper.cpp.
Referenced by EITScanner::RescheduleRecordings().
void EITHelper::SetChannelID | ( | uint | channelid | ) |
Definition at line 162 of file eithelper.cpp.
Referenced by EITScanner::run(), EITScanner::StartEITEventProcessing(), and EITScanner::StopEITEventProcessing().
void EITHelper::SetFixup | ( | uint | atsc_major, |
uint | atsc_minor, | ||
FixupValue | eitfixup | ||
) |
Definition at line 132 of file eithelper.cpp.
|
inline |
Definition at line 108 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables().
void EITHelper::SetLanguagePreferences | ( | const QStringList & | langPref | ) |
Definition at line 139 of file eithelper.cpp.
Referenced by EITScanner::EITScanner().
void EITHelper::SetSourceID | ( | uint | sourceid | ) |
Definition at line 156 of file eithelper.cpp.
Referenced by EITScanner::StartEITEventProcessing(), and EITScanner::StopEITEventProcessing().
|
static |
Definition at line 785 of file eithelper.cpp.
Referenced by EITScanner::run(), and EITScanner::StopEITEventProcessing().
|
staticprivate |
Definition at line 164 of file eithelper.h.
Referenced by EITHelper().
|
private |
Definition at line 149 of file eithelper.h.
|
private |
Definition at line 151 of file eithelper.h.
Referenced by GetChanID(), RescheduleRecordings(), and SetChannelID().
|
private |
Definition at line 154 of file eithelper.h.
Referenced by EITHelper(), and ProcessEvents().
|
private |
Definition at line 160 of file eithelper.h.
Referenced by CompleteEvent(), GetListSize(), ProcessEvents(), and ~EITHelper().
|
mutableprivate |
Definition at line 141 of file eithelper.h.
Referenced by CompleteEvent(), GetListSize(), ProcessEvents(), SetChannelID(), SetFixup(), SetLanguagePreferences(), SetSourceID(), and ~EITHelper().
|
private |
Definition at line 157 of file eithelper.h.
Referenced by CompleteEvent(), EITHelper(), and SetFixup().
|
private |
Definition at line 146 of file eithelper.h.
Referenced by CompleteEvent(), GetGPSOffset(), and SetGPSOffset().
|
private |
Definition at line 158 of file eithelper.h.
Referenced by ProcessEvents().
Definition at line 162 of file eithelper.h.
Referenced by SetLanguagePreferences().
|
private |
Definition at line 152 of file eithelper.h.
Referenced by ProcessEvents(), and RescheduleRecordings().
|
private |
Definition at line 155 of file eithelper.h.
Referenced by EITHelper(), and EventQueueFull().
Definition at line 153 of file eithelper.h.
Referenced by RescheduleRecordings().
|
private |
Definition at line 150 of file eithelper.h.
Referenced by GetChanID(), RescheduleRecordings(), and SetSourceID().
|
mutableprivate |
Definition at line 142 of file eithelper.h.
Referenced by GetChanID().
Definition at line 144 of file eithelper.h.
Referenced by EITHelper(), PruneEITCache(), and WriteEITCache().