MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
EITHelper Class Reference

#include <eithelper.h>

Collaboration diagram for EITHelper:
Collaboration graph
[legend]

Public Member Functions

 EITHelper (void)
 
 EITHelper (const EITHelper &rhs)
 
virtual ~EITHelper (void)
 
uint GetListSize (void) const
 
uint ProcessEvents (void)
 Inserts events in EIT list. More...
 
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)
 
void PruneEITCache (uint timestamp)
 
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 eitList_lock
 EIT List lock. More...
 
ServiceToChanID srv_to_chanid
 
EITFixUpeitfixup
 
int gps_offset
 
uint sourceid
 id of the video source More...
 
uint channelid
 id of the channel More...
 
QDateTime maxStarttime
 latest starttime of changed events More...
 
bool seenEITother
 if false we only reschedule the active mplex More...
 
FixupMap fixup
 
ATSCSRCToEvents incomplete_events
 
ATSCSRCToETTs unmatched_etts
 
MythDeque< DBEventEIT * > db_events
 
QMap< uint, uintlanguagePreferences
 

Static Private Attributes

static EITCaches_eitcache = new EITCache()
 
static const uint kChunkSize = 20
 Maximum number of DB inserts per ProcessEvents call. More...
 

Detailed Description

Definition at line 91 of file eithelper.h.

Constructor & Destructor Documentation

◆ EITHelper() [1/2]

EITHelper::EITHelper ( void  )

Definition at line 37 of file eithelper.cpp.

◆ EITHelper() [2/2]

EITHelper::EITHelper ( const EITHelper rhs)

◆ ~EITHelper()

EITHelper::~EITHelper ( void  )
virtual

Definition at line 46 of file eithelper.cpp.

Member Function Documentation

◆ GetListSize()

uint EITHelper::GetListSize ( void  ) const

Definition at line 55 of file eithelper.cpp.

Referenced by EITScanner::run().

◆ ProcessEvents()

uint EITHelper::ProcessEvents ( void  )

Inserts events in EIT list.

Returns
Returns number of events inserted into DB.

Definition at line 66 of file eithelper.cpp.

Referenced by EITScanner::run().

◆ GetGPSOffset()

uint EITHelper::GetGPSOffset ( void  ) const
inline

Definition at line 101 of file eithelper.h.

Referenced by ATSCStreamData::HandleTables().

◆ SetChannelID()

void EITHelper::SetChannelID ( uint  _channelid)

◆ SetGPSOffset()

void EITHelper::SetGPSOffset ( uint  _gps_offset)
inline

Definition at line 104 of file eithelper.h.

Referenced by ATSCStreamData::HandleTables().

◆ SetFixup()

void EITHelper::SetFixup ( uint  atsc_major,
uint  atsc_minor,
FixupValue  eitfixup 
)

Definition at line 109 of file eithelper.cpp.

◆ SetLanguagePreferences()

void EITHelper::SetLanguagePreferences ( const QStringList &  langPref)

Definition at line 116 of file eithelper.cpp.

Referenced by EITScanner::EITScanner().

◆ SetSourceID()

void EITHelper::SetSourceID ( uint  _sourceid)

Definition at line 133 of file eithelper.cpp.

Referenced by EITScanner::StartPassiveScan(), and EITScanner::StopPassiveScan().

◆ RescheduleRecordings()

void EITHelper::RescheduleRecordings ( void  )

Tells scheduler about programming changes.

Definition at line 1432 of file eithelper.cpp.

Referenced by EITScanner::RescheduleRecordings().

◆ AddEIT() [1/3]

void EITHelper::AddEIT ( uint  atsc_major,
uint  atsc_minor,
const EventInformationTable eit 
)

Definition at line 145 of file eithelper.cpp.

Referenced by ATSCStreamData::HandleTables(), and DVBStreamData::HandleTables().

◆ AddETT()

void EITHelper::AddETT ( uint  atsc_major,
uint  atsc_minor,
const ExtendedTextTable ett 
)

Definition at line 190 of file eithelper.cpp.

Referenced by ATSCStreamData::HandleTables().

◆ AddEIT() [2/3]

void EITHelper::AddEIT ( const DVBEventInformationTable eit)

Definition at line 360 of file eithelper.cpp.

◆ AddEIT() [3/3]

void EITHelper::AddEIT ( const PremiereContentInformationTable cit)

Definition at line 668 of file eithelper.cpp.

◆ PruneEITCache()

void EITHelper::PruneEITCache ( uint  timestamp)

Definition at line 785 of file eithelper.cpp.

Referenced by EITScanner::run().

◆ WriteEITCache()

void EITHelper::WriteEITCache ( void  )

Definition at line 790 of file eithelper.cpp.

Referenced by EITScanner::run(), and EITScanner::StopPassiveScan().

◆ GetChanID() [1/3]

uint EITHelper::GetChanID ( uint  atsc_major,
uint  atsc_minor 
)
private

Definition at line 838 of file eithelper.cpp.

Referenced by AddEIT(), and CompleteEvent().

◆ GetChanID() [2/3]

uint EITHelper::GetChanID ( uint  serviceid,
uint  networkid,
uint  tsid 
)
private

Definition at line 855 of file eithelper.cpp.

◆ GetChanID() [3/3]

uint EITHelper::GetChanID ( uint  program_number)
private

Definition at line 873 of file eithelper.cpp.

◆ CompleteEvent()

void EITHelper::CompleteEvent ( uint  atsc_major,
uint  atsc_minor,
const ATSCEvent event,
const QString &  ett 
)
private

Definition at line 799 of file eithelper.cpp.

Referenced by AddEIT(), and AddETT().

Member Data Documentation

◆ eitList_lock

QMutex EITHelper::eitList_lock
mutableprivate

◆ srv_to_chanid

ServiceToChanID EITHelper::srv_to_chanid
mutableprivate

Definition at line 142 of file eithelper.h.

Referenced by GetChanID().

◆ eitfixup

EITFixUp* EITHelper::eitfixup
private

Definition at line 144 of file eithelper.h.

Referenced by ProcessEvents(), and ~EITHelper().

◆ s_eitcache

EITCache * EITHelper::s_eitcache = new EITCache()
staticprivate

Definition at line 145 of file eithelper.h.

Referenced by AddEIT(), PruneEITCache(), and WriteEITCache().

◆ gps_offset

int EITHelper::gps_offset
private

Definition at line 147 of file eithelper.h.

Referenced by CompleteEvent(), GetGPSOffset(), and SetGPSOffset().

◆ sourceid

uint EITHelper::sourceid
private

id of the video source

Definition at line 150 of file eithelper.h.

Referenced by GetChanID(), RescheduleRecordings(), and SetSourceID().

◆ channelid

uint EITHelper::channelid
private

id of the channel

Definition at line 151 of file eithelper.h.

Referenced by GetChanID(), RescheduleRecordings(), and SetChannelID().

◆ maxStarttime

QDateTime EITHelper::maxStarttime
private

latest starttime of changed events

Definition at line 152 of file eithelper.h.

Referenced by ProcessEvents(), and RescheduleRecordings().

◆ seenEITother

bool EITHelper::seenEITother
private

if false we only reschedule the active mplex

Definition at line 153 of file eithelper.h.

Referenced by AddEIT(), and RescheduleRecordings().

◆ fixup

FixupMap EITHelper::fixup
private

Definition at line 155 of file eithelper.h.

Referenced by AddEIT(), CompleteEvent(), EITHelper(), and SetFixup().

◆ incomplete_events

ATSCSRCToEvents EITHelper::incomplete_events
private

Definition at line 156 of file eithelper.h.

Referenced by AddEIT(), AddETT(), and ProcessEvents().

◆ unmatched_etts

ATSCSRCToETTs EITHelper::unmatched_etts
private

Definition at line 157 of file eithelper.h.

Referenced by AddEIT(), AddETT(), and ProcessEvents().

◆ db_events

MythDeque<DBEventEIT*> EITHelper::db_events
private

Definition at line 159 of file eithelper.h.

Referenced by AddEIT(), CompleteEvent(), GetListSize(), ProcessEvents(), and ~EITHelper().

◆ languagePreferences

QMap<uint,uint> EITHelper::languagePreferences
private

Definition at line 161 of file eithelper.h.

Referenced by AddEIT(), AddETT(), and SetLanguagePreferences().

◆ kChunkSize

const uint EITHelper::kChunkSize = 20
staticprivate

Maximum number of DB inserts per ProcessEvents call.

Definition at line 164 of file eithelper.h.

Referenced by ProcessEvents().


The documentation for this class was generated from the following files: