MythTV  master
Macros | Enumerations | Functions
eitcache.cpp File Reference
#include <QDateTime>
#include "libmyth/mythcontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "eitcache.h"
Include dependency graph for eitcache.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("EITCache: ")
 

Enumerations

enum  channel_status { EITDATA = 0, CHANNEL_LOCK = 1, STATISTIC = 2 }
 

Functions

static uint64_t construct_sig (uint tableid, uint version, uint endtime, bool modified)
 
static uint extract_table_id (uint64_t sig)
 
static uint extract_version (uint64_t sig)
 
static uint extract_endtime (uint64_t sig)
 
static bool modified (uint64_t sig)
 
static void replace_in_db (QStringList &value_clauses, uint chanid, uint eventid, uint64_t sig)
 
static void delete_in_db (uint endtime)
 
static bool lock_channel (uint chanid, uint endtime)
 
static void unlock_channel (uint chanid, uint updated)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("EITCache: ")

Definition at line 17 of file eitcache.cpp.

Enumeration Type Documentation

◆ channel_status

Enumerator
EITDATA 
CHANNEL_LOCK 
STATISTIC 

Definition at line 120 of file eitcache.cpp.

Function Documentation

◆ construct_sig()

static uint64_t construct_sig ( uint  tableid,
uint  version,
uint  endtime,
bool  modified 
)
inlinestatic

Definition at line 69 of file eitcache.cpp.

Referenced by EITCache::IsNewEIT(), and EITCache::LoadChannel().

◆ extract_table_id()

static uint extract_table_id ( uint64_t  sig)
inlinestatic

Definition at line 76 of file eitcache.cpp.

Referenced by EITCache::IsNewEIT(), and replace_in_db().

◆ extract_version()

static uint extract_version ( uint64_t  sig)
inlinestatic

Definition at line 81 of file eitcache.cpp.

Referenced by EITCache::IsNewEIT(), and replace_in_db().

◆ extract_endtime()

static uint extract_endtime ( uint64_t  sig)
inlinestatic

Definition at line 86 of file eitcache.cpp.

Referenced by EITCache::IsNewEIT(), replace_in_db(), and EITCache::WriteChannelToDB().

◆ modified()

static bool modified ( uint64_t  sig)
inlinestatic

◆ replace_in_db()

static void replace_in_db ( QStringList &  value_clauses,
uint  chanid,
uint  eventid,
uint64_t  sig 
)
static

Definition at line 96 of file eitcache.cpp.

Referenced by EITCache::WriteChannelToDB().

◆ delete_in_db()

static void delete_in_db ( uint  endtime)
static

Definition at line 104 of file eitcache.cpp.

Referenced by EITCache::PruneOldEntries().

◆ lock_channel()

static bool lock_channel ( uint  chanid,
uint  endtime 
)
static

Definition at line 127 of file eitcache.cpp.

Referenced by EITCache::LoadChannel().

◆ unlock_channel()

static void unlock_channel ( uint  chanid,
uint  updated 
)
static

Definition at line 178 of file eitcache.cpp.

Referenced by EITCache::WriteChannelToDB().