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

Go to the source code of this file.

Macros

#define LOC   QString("EITCache: ")
 
#define EITDATA   0
 
#define CHANNEL_LOCK   1
 
#define 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 16 of file eitcache.cpp.

◆ EITDATA

#define EITDATA   0

Definition at line 121 of file eitcache.cpp.

◆ CHANNEL_LOCK

#define CHANNEL_LOCK   1

Definition at line 122 of file eitcache.cpp.

◆ STATISTIC

#define STATISTIC   2

Definition at line 123 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 125 of file eitcache.cpp.

Referenced by EITCache::LoadChannel().

◆ unlock_channel()

static void unlock_channel ( uint  chanid,
uint  updated 
)
static

Definition at line 180 of file eitcache.cpp.

Referenced by EITCache::WriteChannelToDB().