EITCache Class Reference

#include <eitcache.h>

List of all members.


Detailed Description

Definition at line 21 of file eitcache.h.


Public Member Functions

 EITCache ()
 ~EITCache ()
bool IsNewEIT (uint chanid, uint tableid, uint version, uint eventid, uint endtime)
uint PruneOldEntries (uint utc_timestamp)
 Prunes entries that describe events ending before timestamp time.
void WriteToDB (void)
void ResetStatistics (void)
QString GetStatistics (void) const

Static Public Member Functions

static MPUBLIC void ClearChannelLocks (void)
 removes old channel locks, use it only at master b<ackend start

Private Member Functions

event_map_tLoadChannel (uint chanid)
void WriteChannelToDB (uint chanid)

Private Attributes

key_map_t channelMap
QMutex eventMapLock
uint lastPruneTime
uint accessCnt
uint hitCnt
uint tblChgCnt
uint verChgCnt
uint entryCnt
uint pruneCnt
uint prunedHitCnt
uint wrongChannelHitCnt

Static Private Attributes

static const uint kVersionMax = 31

Constructor & Destructor Documentation

EITCache::EITCache (  ) 

Definition at line 20 of file eitcache.cpp.

EITCache::~EITCache (  ) 

Definition at line 28 of file eitcache.cpp.


Member Function Documentation

bool EITCache::IsNewEIT ( uint  chanid,
uint  tableid,
uint  version,
uint  eventid,
uint  endtime 
)

Definition at line 309 of file eitcache.cpp.

Referenced by EITHelper::AddEIT().

uint EITCache::PruneOldEntries ( uint  timestamp  ) 

Prunes entries that describe events ending before timestamp time.

Returns:
number of entries pruned

Definition at line 377 of file eitcache.cpp.

Referenced by EITHelper::PruneEITCache().

void EITCache::WriteToDB ( void   ) 

Definition at line 295 of file eitcache.cpp.

Referenced by IsNewEIT(), PruneOldEntries(), EITHelper::WriteEITCache(), and ~EITCache().

void EITCache::ResetStatistics ( void   ) 

Definition at line 33 of file eitcache.cpp.

QString EITCache::GetStatistics ( void   )  const

Definition at line 45 of file eitcache.cpp.

Referenced by IsNewEIT().

event_map_t * EITCache::LoadChannel ( uint  chanid  )  [private]

Definition at line 217 of file eitcache.cpp.

Referenced by IsNewEIT().

void EITCache::WriteChannelToDB ( uint  chanid  )  [private]

Definition at line 263 of file eitcache.cpp.

Referenced by WriteToDB().

void EITCache::ClearChannelLocks ( void   )  [static]

removes old channel locks, use it only at master b<ackend start

Definition at line 402 of file eitcache.cpp.

Referenced by HouseKeeper::RunStartupTasks().


Member Data Documentation

Definition at line 41 of file eitcache.h.

Referenced by IsNewEIT(), WriteChannelToDB(), and WriteToDB().

QMutex EITCache::eventMapLock [mutable, private]

Definition at line 43 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and WriteToDB().

Definition at line 44 of file eitcache.h.

Referenced by EITCache(), IsNewEIT(), LoadChannel(), PruneOldEntries(), and WriteChannelToDB().

Definition at line 47 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

Definition at line 48 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

Definition at line 49 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

Definition at line 50 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

Definition at line 51 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), LoadChannel(), and ResetStatistics().

Definition at line 52 of file eitcache.h.

Referenced by GetStatistics(), and ResetStatistics().

Definition at line 53 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

Definition at line 54 of file eitcache.h.

Referenced by GetStatistics(), IsNewEIT(), and ResetStatistics().

const uint EITCache::kVersionMax = 31 [static, private]

Definition at line 56 of file eitcache.h.

Referenced by IsNewEIT().


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