DBEvent Class Reference

#include <eit.h>

List of all members.


Detailed Description

Definition at line 52 of file eit.h.


Public Member Functions

 DBEvent (uint _chanid, const QString &_title, const QString &_subtitle, const QString &_desc, const QString &_category, uint _category_type, const QDateTime &_start, const QDateTime &_end, uint _fixup, unsigned char _subtitleType, unsigned char _audioProps, unsigned char _videoProps, const QString &_seriesId, const QString &_programId)
 DBEvent (uint _chanid, const QString &_title, const QString &_desc, const QDateTime &_start, const QDateTime &_end, uint _fixup, unsigned char _subtitleType, unsigned char _audioProps, unsigned char _videoProps)
 ~DBEvent ()
void AddPerson (DBPerson::Role, const QString &name)
uint UpdateDB (MSqlQuery &query, int match_threshold) const
bool HasCredits (void) const

Public Attributes

QString title
QString subtitle
QString description
QString category
QDateTime starttime
QDateTime endtime
QString airdate
 movie year / production year
QDate originalairdate
 origial broadcast date
DBCreditscredits
uint32_t chanid
uint16_t partnumber
uint16_t parttotal
QString syndicatedepisodenumber
uint32_t fixup
unsigned char subtitleType
unsigned char audioProps
unsigned char videoProps
unsigned char category_type
QString seriesId
QString programId
bool previouslyshown

Private Member Functions

uint GetOverlappingPrograms (MSqlQuery &, vector< DBEvent > &programs) const
int GetMatch (const vector< DBEvent > &programs, int &bestmatch) const
uint UpdateDB (MSqlQuery &, const vector< DBEvent > &p, int match) const
uint UpdateDB (MSqlQuery &, const DBEvent &match) const
bool MoveOutOfTheWayDB (MSqlQuery &, const DBEvent &nonmatch) const
uint InsertDB (MSqlQuery &) const
QString AddAuthority (const QString &, MSqlQuery &) const

Constructor & Destructor Documentation

DBEvent::DBEvent ( uint  _chanid,
const QString &  _title,
const QString &  _subtitle,
const QString &  _desc,
const QString &  _category,
uint  _category_type,
const QDateTime &  _start,
const QDateTime &  _end,
uint  _fixup,
unsigned char  _subtitleType,
unsigned char  _audioProps,
unsigned char  _videoProps,
const QString &  _seriesId,
const QString &  _programId 
) [inline]

Definition at line 55 of file eit.h.

DBEvent::DBEvent ( uint  _chanid,
const QString &  _title,
const QString &  _desc,
const QDateTime &  _start,
const QDateTime &  _end,
uint  _fixup,
unsigned char  _subtitleType,
unsigned char  _audioProps,
unsigned char  _videoProps 
) [inline]

Definition at line 84 of file eit.h.

DBEvent::~DBEvent (  )  [inline]

Definition at line 107 of file eit.h.


Member Function Documentation

void DBEvent::AddPerson ( DBPerson::Role  role,
const QString &  name 
)

Definition at line 96 of file eit.cpp.

Referenced by EITFixUp::FixBellExpressVu(), EITFixUp::FixMCA(), and EITFixUp::FixPremiere().

uint DBEvent::UpdateDB ( MSqlQuery query,
int  match_threshold 
) const

Definition at line 104 of file eit.cpp.

Referenced by UpdateDB().

bool DBEvent::HasCredits ( void   )  const [inline]

Definition at line 113 of file eit.h.

uint DBEvent::GetOverlappingPrograms ( MSqlQuery query,
vector< DBEvent > &  programs 
) const [private]

Definition at line 128 of file eit.cpp.

Referenced by UpdateDB().

int DBEvent::GetMatch ( const vector< DBEvent > &  programs,
int &  bestmatch 
) const [private]

Definition at line 245 of file eit.cpp.

Referenced by UpdateDB().

uint DBEvent::UpdateDB ( MSqlQuery q,
const vector< DBEvent > &  p,
int  match 
) const [private]

Definition at line 269 of file eit.cpp.

uint DBEvent::UpdateDB ( MSqlQuery query,
const DBEvent match 
) const [private]

Definition at line 291 of file eit.cpp.

bool DBEvent::MoveOutOfTheWayDB ( MSqlQuery query,
const DBEvent nonmatch 
) const [private]

Definition at line 481 of file eit.cpp.

Referenced by UpdateDB().

uint DBEvent::InsertDB ( MSqlQuery query  )  const [private]

Definition at line 504 of file eit.cpp.

Referenced by UpdateDB().

QString DBEvent::AddAuthority ( const QString &  id,
MSqlQuery query 
) const [private]

Definition at line 574 of file eit.cpp.

Referenced by InsertDB(), and UpdateDB().


Member Data Documentation

QString DBEvent::title

QDateTime DBEvent::starttime

QDateTime DBEvent::endtime

Definition at line 130 of file eit.h.

Referenced by GetMatch(), GetOverlappingPrograms(), InsertDB(), MoveOutOfTheWayDB(), and UpdateDB().

movie year / production year

Definition at line 131 of file eit.h.

Referenced by InsertDB(), and UpdateDB().

origial broadcast date

Definition at line 132 of file eit.h.

Referenced by InsertDB(), and UpdateDB().

Definition at line 133 of file eit.h.

Referenced by AddPerson(), HasCredits(), InsertDB(), UpdateDB(), and ~DBEvent().

Definition at line 134 of file eit.h.

Referenced by AddAuthority(), GetOverlappingPrograms(), InsertDB(), MoveOutOfTheWayDB(), and UpdateDB().

Definition at line 135 of file eit.h.

Referenced by EITFixUp::FixComHem(), InsertDB(), and UpdateDB().

Definition at line 136 of file eit.h.

Referenced by EITFixUp::FixComHem(), InsertDB(), and UpdateDB().

Definition at line 137 of file eit.h.

Referenced by InsertDB(), and UpdateDB().

Definition at line 138 of file eit.h.

Referenced by EITFixUp::Fix(), and GetOverlappingPrograms().

unsigned char DBEvent::subtitleType

Definition at line 139 of file eit.h.

Referenced by EITFixUp::FixUK(), InsertDB(), and UpdateDB().

unsigned char DBEvent::audioProps

Definition at line 140 of file eit.h.

Referenced by EITFixUp::FixUK(), InsertDB(), and UpdateDB().

unsigned char DBEvent::videoProps

Definition at line 141 of file eit.h.

Referenced by EITFixUp::FixUK(), InsertDB(), and UpdateDB().

unsigned char DBEvent::category_type

Definition at line 142 of file eit.h.

Referenced by GetOverlappingPrograms(), InsertDB(), and UpdateDB().

Definition at line 143 of file eit.h.

Referenced by InsertDB(), and UpdateDB().

Definition at line 144 of file eit.h.

Referenced by InsertDB(), and UpdateDB().

Definition at line 145 of file eit.h.

Referenced by InsertDB(), and UpdateDB().


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

Generated on Sat Sep 4 05:16:00 2010 for MythTV by  doxygen 1.5.5