MythTV  master
Macros | Functions | Variables
programdata.cpp File Reference
#include <algorithm>
#include <climits>
#include <utility>
#include <QtCore>
#include "programdata.h"
#include "channelutil.h"
#include "mythdb.h"
#include "mythlogging.h"
#include "dvbdescriptors.h"
Include dependency graph for programdata.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("ProgramData: ")
 

Functions

static QString denullify (const QString &str)
 
static QVariant denullify (const QDateTime &dt)
 
static void add_genres (MSqlQuery &query, const QStringList &genres, uint chanid, const QDateTime &starttime)
 
static int score_words (const QStringList &al, const QStringList &bl)
 
static int score_match (const QString &a, const QString &b)
 
static int change_record (MSqlQuery &query, uint chanid, const QDateTime &old_starttime, const QDateTime &new_starttime)
 
static bool delete_program (MSqlQuery &query, uint chanid, const QDateTime &st)
 
static bool program_exists (MSqlQuery &query, uint chanid, const QDateTime &st)
 
static bool change_program (MSqlQuery &query, uint chanid, const QDateTime &st, const QDateTime &new_st, const QDateTime &new_end)
 
static bool start_time_less_than (const DBEvent *a, const DBEvent *b)
 

Variables

static const char * roles []
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ProgramData: ")

Definition at line 20 of file programdata.cpp.

Function Documentation

◆ denullify() [1/2]

static QString denullify ( const QString &  str)
static

◆ denullify() [2/2]

static QVariant denullify ( const QDateTime &  dt)
static

Definition at line 35 of file programdata.cpp.

◆ add_genres()

static void add_genres ( MSqlQuery query,
const QStringList &  genres,
uint  chanid,
const QDateTime &  starttime 
)
static

Definition at line 40 of file programdata.cpp.

Referenced by DBEvent::InsertDB(), ProgInfo::InsertDB(), and DBEvent::UpdateDB().

◆ score_words()

static int score_words ( const QStringList &  al,
const QStringList &  bl 
)
static

Definition at line 426 of file programdata.cpp.

Referenced by score_match().

◆ score_match()

static int score_match ( const QString &  a,
const QString &  b 
)
static

Definition at line 459 of file programdata.cpp.

Referenced by DBEvent::GetMatch().

◆ change_record()

static int change_record ( MSqlQuery query,
uint  chanid,
const QDateTime &  old_starttime,
const QDateTime &  new_starttime 
)
static

Definition at line 620 of file programdata.cpp.

Referenced by DBEvent::MoveOutOfTheWayDB(), and DBEvent::UpdateDB().

◆ delete_program()

static bool delete_program ( MSqlQuery query,
uint  chanid,
const QDateTime &  st 
)
static

Definition at line 842 of file programdata.cpp.

Referenced by DBEvent::MoveOutOfTheWayDB().

◆ program_exists()

static bool program_exists ( MSqlQuery query,
uint  chanid,
const QDateTime &  st 
)
static

Definition at line 903 of file programdata.cpp.

Referenced by DBEvent::MoveOutOfTheWayDB().

◆ change_program()

static bool change_program ( MSqlQuery query,
uint  chanid,
const QDateTime &  st,
const QDateTime &  new_st,
const QDateTime &  new_end 
)
static

Definition at line 918 of file programdata.cpp.

Referenced by DBEvent::MoveOutOfTheWayDB().

◆ start_time_less_than()

static bool start_time_less_than ( const DBEvent a,
const DBEvent b 
)
static

Definition at line 1380 of file programdata.cpp.

Referenced by ProgramData::FixProgramList().

Variable Documentation

◆ roles

const char* roles[]
static
Initial value:
=
{
"",
"actor", "director", "producer", "executive_producer",
"writer", "guest_star", "host", "adapter",
"presenter", "commentator", "guest",
}

Definition at line 22 of file programdata.cpp.

Referenced by DBPerson::DBPerson(), and DBPerson::GetRole().