EITHelper Class Reference

#include <eithelper.h>

List of all members.


Detailed Description

Definition at line 52 of file eithelper.h.


Public Member Functions

 EITHelper ()
virtual ~EITHelper ()
uint GetListSize (void) const
uint ProcessEvents (void)
 Inserts events in EIT list.
uint GetGPSOffset (void) const
void SetGPSOffset (uint _gps_offset)
void SetFixup (uint atsc_major, uint atsc_minor, uint eitfixup)
void SetLanguagePreferences (const QStringList &langPref)
void SetSourceID (uint _sourceid)
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 *eit)
void AddEIT (uint, uint, const EventInformationTable *)
void AddETT (uint, uint, const ExtendedTextTable *)
void AddEIT (const DVBEventInformationTable *)
void AddEIT (const PremiereContentInformationTable *)
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 transportid)
void CompleteEvent (uint atsc_major, uint atsc_minor, const ATSCEvent &event, const QString &ett)

Private Attributes

QMutex eitList_lock
 EIT List lock.
ServiceToChanID srv_to_chanid
EITFixUpeitfixup
int gps_offset
int utc_offset
uint sourceid
QMap< uint64_t, uintfixup
ATSCSRCToEvents incomplete_events
ATSCSRCToETTs unmatched_etts
MythDeque< DBEvent * > db_events
QMap< uint, uintlanguagePreferences

Static Private Attributes

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

Constructor & Destructor Documentation

EITHelper::EITHelper (  ) 

Definition at line 40 of file eithelper.cpp.

EITHelper::~EITHelper (  )  [virtual]

Definition at line 60 of file eithelper.cpp.


Member Function Documentation

uint EITHelper::GetListSize ( void   )  const

Definition at line 69 of file eithelper.cpp.

Referenced by EITScanner::RunEventLoop().

uint EITHelper::ProcessEvents ( void   ) 

Inserts events in EIT list.

Returns:
Returns number of events inserted into DB.

Definition at line 80 of file eithelper.cpp.

Referenced by EITScanner::RunEventLoop().

uint EITHelper::GetGPSOffset ( void   )  const [inline]

Definition at line 61 of file eithelper.h.

Referenced by ATSCStreamData::HandleTables().

void EITHelper::SetGPSOffset ( uint  _gps_offset  )  [inline]

Definition at line 63 of file eithelper.h.

Referenced by ATSCStreamData::HandleTables().

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

Definition at line 121 of file eithelper.cpp.

void EITHelper::SetLanguagePreferences ( const QStringList &  langPref  ) 

Definition at line 128 of file eithelper.cpp.

Referenced by EITScanner::EITScanner().

void EITHelper::SetSourceID ( uint  _sourceid  ) 

Definition at line 145 of file eithelper.cpp.

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

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

Definition at line 151 of file eithelper.cpp.

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

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

Definition at line 186 of file eithelper.cpp.

Referenced by ATSCStreamData::HandleTables().

void EITHelper::AddEIT ( const DVBEventInformationTable eit  ) 

Definition at line 301 of file eithelper.cpp.

void EITHelper::AddEIT ( const PremiereContentInformationTable eit  ) 

Definition at line 415 of file eithelper.cpp.

void EITHelper::AddEIT ( uint  ,
uint  ,
const EventInformationTable  
) [inline]

Definition at line 76 of file eithelper.h.

void EITHelper::AddETT ( uint  ,
uint  ,
const ExtendedTextTable  
) [inline]

Definition at line 77 of file eithelper.h.

void EITHelper::AddEIT ( const DVBEventInformationTable  )  [inline]

Definition at line 78 of file eithelper.h.

void EITHelper::AddEIT ( const PremiereContentInformationTable  )  [inline]

Definition at line 79 of file eithelper.h.

void EITHelper::PruneEITCache ( uint  timestamp  ) 

Definition at line 519 of file eithelper.cpp.

Referenced by EITScanner::RunEventLoop().

void EITHelper::WriteEITCache ( void   ) 

Definition at line 524 of file eithelper.cpp.

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

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

Definition at line 580 of file eithelper.cpp.

Referenced by AddEIT(), and CompleteEvent().

uint EITHelper::GetChanID ( uint  serviceid,
uint  networkid,
uint  transportid 
) [private]

Definition at line 598 of file eithelper.cpp.

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

Definition at line 533 of file eithelper.cpp.

Referenced by AddEIT(), and AddETT().


Member Data Documentation

QMutex EITHelper::eitList_lock [mutable, private]

EIT List lock.

Definition at line 95 of file eithelper.h.

Referenced by CompleteEvent(), GetListSize(), ProcessEvents(), SetFixup(), SetLanguagePreferences(), SetSourceID(), and ~EITHelper().

Definition at line 96 of file eithelper.h.

Referenced by GetChanID().

Definition at line 98 of file eithelper.h.

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

EITCache * EITHelper::eitcache = new EITCache() [static, private]

Definition at line 99 of file eithelper.h.

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

int EITHelper::gps_offset [private]

Definition at line 101 of file eithelper.h.

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

int EITHelper::utc_offset [private]

Definition at line 102 of file eithelper.h.

Referenced by CompleteEvent(), and EITHelper().

Definition at line 103 of file eithelper.h.

Referenced by GetChanID(), and SetSourceID().

QMap<uint64_t,uint> EITHelper::fixup [private]

Definition at line 104 of file eithelper.h.

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

Definition at line 105 of file eithelper.h.

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

Definition at line 106 of file eithelper.h.

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

Definition at line 108 of file eithelper.h.

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

Definition at line 110 of file eithelper.h.

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

const uint EITHelper::kChunkSize = 20 [static, private]

Maximum number of DB inserts per ProcessEvents call.

Definition at line 113 of file eithelper.h.

Referenced by ProcessEvents().


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

Generated on Sat Dec 18 05:16:02 2010 for MythTV by  doxygen 1.5.5