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

#include <programdata.h>

Static Public Member Functions

static void HandlePrograms (uint sourceid, QMap< QString, QList< ProgInfo > > &proglist)
 Called from mythfilldatabase to bulk insert data into the program database. More...
 
static int fix_end_times (void)
 
static bool ClearDataByChannel (uint chanid, const QDateTime &from, const QDateTime &to, bool use_channel_time_offset)
 
static bool ClearDataBySource (uint sourceid, const QDateTime &from, const QDateTime &to, bool use_channel_time_offset)
 

Static Private Member Functions

static void FixProgramList (QList< ProgInfo * > &fixlist)
 
static void HandlePrograms (MSqlQuery &query, uint chanid, const QList< ProgInfo * > &sortlist, uint &unchanged, uint &updated)
 Called from HandlePrograms to bulk insert data into the program database. More...
 
static bool IsUnchanged (MSqlQuery &query, uint chanid, const ProgInfo &pi)
 
static bool DeleteOverlaps (MSqlQuery &query, uint chanid, const ProgInfo &pi)
 

Detailed Description

Definition at line 237 of file programdata.h.

Member Function Documentation

◆ HandlePrograms() [1/2]

void ProgramData::HandlePrograms ( uint  sourceid,
QMap< QString, QList< ProgInfo > > &  proglist 
)
static

Called from mythfilldatabase to bulk insert data into the program database.

Parameters
sourceidThe data source identifier
proglistA map of all program information keyed by channel identifier

Definition at line 1463 of file programdata.cpp.

Referenced by FillData::GrabDataFromFile().

◆ fix_end_times()

int ProgramData::fix_end_times ( void  )
static

Definition at line 1555 of file programdata.cpp.

Referenced by main().

◆ ClearDataByChannel()

bool ProgramData::ClearDataByChannel ( uint  chanid,
const QDateTime &  from,
const QDateTime &  to,
bool  use_channel_time_offset 
)
static

Definition at line 1320 of file programdata.cpp.

Referenced by ClearDataBySource(), and DeleteOverlaps().

◆ ClearDataBySource()

bool ProgramData::ClearDataBySource ( uint  sourceid,
const QDateTime &  from,
const QDateTime &  to,
bool  use_channel_time_offset 
)
static

Definition at line 1367 of file programdata.cpp.

◆ FixProgramList()

void ProgramData::FixProgramList ( QList< ProgInfo * > &  fixlist)
staticprivate

Definition at line 1385 of file programdata.cpp.

Referenced by HandlePrograms().

◆ HandlePrograms() [2/2]

void ProgramData::HandlePrograms ( MSqlQuery query,
uint  chanid,
const QList< ProgInfo * > &  sortlist,
uint unchanged,
uint updated 
)
staticprivate

Called from HandlePrograms to bulk insert data into the program database.

Parameters
queryA mysql query related to all channel ids for a given source
chanidThe specific channel id to process
sortlistA time sorted list of ProgInfo structures
unchangedSet to the number of unchanged programs
updatedSet to the number of updated programs

Definition at line 1533 of file programdata.cpp.

◆ IsUnchanged()

bool ProgramData::IsUnchanged ( MSqlQuery query,
uint  chanid,
const ProgInfo pi 
)
staticprivate

Definition at line 1615 of file programdata.cpp.

Referenced by HandlePrograms().

◆ DeleteOverlaps()

bool ProgramData::DeleteOverlaps ( MSqlQuery query,
uint  chanid,
const ProgInfo pi 
)
staticprivate

Definition at line 1686 of file programdata.cpp.

Referenced by HandlePrograms().


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