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 atsc_major, uint atsc_minor, const EventInformationTable *eit) |
void | AddETT (uint atsc_major, uint atsc_minor, const ExtendedTextTable *ett) |
void | AddEIT (const DVBEventInformationTable *eit) |
void | AddEIT (const PremiereContentInformationTable *cit) |
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 39 of file eithelper.cpp.
EITHelper::EITHelper | ( | const EITHelper & | rhs | ) |
|
virtual |
Definition at line 58 of file eithelper.cpp.
uint EITHelper::GetListSize | ( | void | ) | const |
Definition at line 65 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 86 of file eithelper.cpp.
Referenced by EITScanner::run().
bool EITHelper::EventQueueFull | ( | void | ) | const |
Definition at line 71 of file eithelper.cpp.
Referenced by AddEIT(), and CompleteEvent().
|
inline |
Definition at line 105 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables().
void EITHelper::SetChannelID | ( | uint | channelid | ) |
Definition at line 161 of file eithelper.cpp.
Referenced by EITScanner::run(), EITScanner::StartEITEventProcessing(), and EITScanner::StopEITEventProcessing().
|
inline |
Definition at line 108 of file eithelper.h.
Referenced by ATSCStreamData::HandleTables().
void EITHelper::SetFixup | ( | uint | atsc_major, |
uint | atsc_minor, | ||
FixupValue | eitfixup | ||
) |
Definition at line 131 of file eithelper.cpp.
void EITHelper::SetLanguagePreferences | ( | const QStringList & | langPref | ) |
Definition at line 138 of file eithelper.cpp.
Referenced by EITScanner::EITScanner().
void EITHelper::SetSourceID | ( | uint | sourceid | ) |
Definition at line 155 of file eithelper.cpp.
Referenced by EITScanner::StartEITEventProcessing(), and EITScanner::StopEITEventProcessing().
void EITHelper::RescheduleRecordings | ( | void | ) |
Tells scheduler about programming changes.
Definition at line 1426 of file eithelper.cpp.
Referenced by EITScanner::RescheduleRecordings().
void EITHelper::AddEIT | ( | uint | atsc_major, |
uint | atsc_minor, | ||
const EventInformationTable * | eit | ||
) |
Definition at line 167 of file eithelper.cpp.
Referenced by ATSCStreamData::HandleTables(), and DVBStreamData::HandleTables().
void EITHelper::AddETT | ( | uint | atsc_major, |
uint | atsc_minor, | ||
const ExtendedTextTable * | ett | ||
) |
Definition at line 206 of file eithelper.cpp.
Referenced by ATSCStreamData::HandleTables().
void EITHelper::AddEIT | ( | const DVBEventInformationTable * | eit | ) |
Definition at line 336 of file eithelper.cpp.
void EITHelper::AddEIT | ( | const PremiereContentInformationTable * | cit | ) |
Definition at line 652 of file eithelper.cpp.
|
static |
Definition at line 773 of file eithelper.cpp.
Referenced by EITScanner::run().
|
static |
Definition at line 778 of file eithelper.cpp.
Referenced by EITScanner::run(), and EITScanner::StopEITEventProcessing().
Definition at line 825 of file eithelper.cpp.
Referenced by AddEIT(), and CompleteEvent().
Definition at line 845 of file eithelper.cpp.
Definition at line 866 of file eithelper.cpp.
|
private |
Definition at line 787 of file eithelper.cpp.
|
mutableprivate |
Definition at line 141 of file eithelper.h.
Referenced by CompleteEvent(), GetListSize(), ProcessEvents(), SetChannelID(), SetFixup(), SetLanguagePreferences(), SetSourceID(), and ~EITHelper().
|
mutableprivate |
Definition at line 142 of file eithelper.h.
Referenced by GetChanID().
Definition at line 144 of file eithelper.h.
Referenced by AddEIT(), EITHelper(), PruneEITCache(), and WriteEITCache().
|
private |
Definition at line 146 of file eithelper.h.
Referenced by CompleteEvent(), GetGPSOffset(), and SetGPSOffset().
|
private |
Definition at line 149 of file eithelper.h.
|
private |
Definition at line 150 of file eithelper.h.
Referenced by GetChanID(), RescheduleRecordings(), and SetSourceID().
|
private |
Definition at line 151 of file eithelper.h.
Referenced by GetChanID(), RescheduleRecordings(), and SetChannelID().
|
private |
Definition at line 152 of file eithelper.h.
Referenced by ProcessEvents(), and RescheduleRecordings().
Definition at line 153 of file eithelper.h.
Referenced by AddEIT(), and RescheduleRecordings().
|
private |
Definition at line 154 of file eithelper.h.
Referenced by EITHelper(), and ProcessEvents().
|
private |
Definition at line 155 of file eithelper.h.
Referenced by EITHelper(), and EventQueueFull().
|
private |
Definition at line 157 of file eithelper.h.
Referenced by AddEIT(), CompleteEvent(), EITHelper(), and SetFixup().
|
private |
Definition at line 158 of file eithelper.h.
Referenced by AddEIT(), AddETT(), and ProcessEvents().
|
private |
Definition at line 160 of file eithelper.h.
Referenced by AddEIT(), CompleteEvent(), GetListSize(), ProcessEvents(), and ~EITHelper().
Definition at line 162 of file eithelper.h.
Referenced by AddEIT(), AddETT(), and SetLanguagePreferences().
|
staticprivate |
Definition at line 164 of file eithelper.h.
Referenced by EITHelper().