MythTV  master
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
DBEvent Class Reference

#include <libmythtv/programdata.h>

Inheritance diagram for DBEvent:
[legend]
Collaboration diagram for DBEvent:
[legend]

Public Member Functions

 DBEvent (uint listingsource)
 
 DBEvent (QString _title, QString _subtitle, QString _desc, QString _category, ProgramInfo::CategoryType _category_type, QDateTime _start, QDateTime _end, unsigned char _subtitleType, unsigned char _audioProps, unsigned char _videoProps, float _stars, QString _seriesId, QString _programId, uint32_t _listingsource, uint _season, uint _episode, uint _totalepisodes)
 
virtual ~DBEvent ()
 
void AddPerson (DBPerson::Role role, const QString &name, int priority=0, const QString &character="")
 
void AddPerson (const QString &role, const QString &name, int priority=0, const QString &character="")
 
uint UpdateDB (MSqlQuery &query, uint chanid, int match_threshold) const
 
bool HasCredits (void) const
 
bool HasTimeConflict (const DBEvent &other) const
 
DBEventoperator= (const DBEvent &other)
 

Public Attributes

QString m_title
 
QString m_subtitle
 
QString m_description
 
QString m_category
 
QDateTime m_starttime
 
QDateTime m_endtime
 
uint16_t m_airdate {0}
 movie year / production year More...
 
QDate m_originalairdate
 origial broadcast date More...
 
DBCreditsm_credits {nullptr}
 
uint16_t m_partnumber {0}
 
uint16_t m_parttotal {0}
 
QString m_syndicatedepisodenumber
 
unsigned char m_subtitleType {0}
 
unsigned char m_audioProps {0}
 
unsigned char m_videoProps {0}
 
float m_stars {0.0}
 
ProgramInfo::CategoryType m_categoryType {ProgramInfo::kCategoryNone}
 
QString m_seriesId
 
QString m_programId
 
QString m_inetref
 
bool m_previouslyshown {false}
 
uint32_t m_listingsource
 
QList< EventRatingm_ratings
 
QStringList m_genres
 
uint m_season {0}
 
uint m_episode {0}
 
uint m_totalepisodes {0}
 

Protected Member Functions

uint GetOverlappingPrograms (MSqlQuery &query, uint chanid, std::vector< DBEvent > &programs) const
 
int GetMatch (const std::vector< DBEvent > &programs, int &bestmatch) const
 
uint UpdateDB (MSqlQuery &q, uint chanid, const std::vector< DBEvent > &p, int match) const
 
uint UpdateDB (MSqlQuery &query, uint chanid, const DBEvent &match) const
 
bool MoveOutOfTheWayDB (MSqlQuery &query, uint chanid, const DBEvent &prog) const
 
virtual uint InsertDB (MSqlQuery &query, uint chanid, bool recording=false) const
 Insert Callback function when Allow Re-record is pressed in Watch Recordings. More...
 
virtual void Squeeze (void)
 

Detailed Description

Definition at line 82 of file programdata.h.

Constructor & Destructor Documentation

◆ DBEvent() [1/2]

DBEvent::DBEvent ( uint  listingsource)
inlineexplicit

Definition at line 85 of file programdata.h.

◆ DBEvent() [2/2]

DBEvent::DBEvent ( QString  _title,
QString  _subtitle,
QString  _desc,
QString  _category,
ProgramInfo::CategoryType  _category_type,
QDateTime  _start,
QDateTime  _end,
unsigned char  _subtitleType,
unsigned char  _audioProps,
unsigned char  _videoProps,
float  _stars,
QString  _seriesId,
QString  _programId,
uint32_t  _listingsource,
uint  _season,
uint  _episode,
uint  _totalepisodes 
)
inline

Definition at line 88 of file programdata.h.

◆ ~DBEvent()

virtual DBEvent::~DBEvent ( )
inlinevirtual

Definition at line 117 of file programdata.h.

Member Function Documentation

◆ AddPerson() [1/2]

void DBEvent::AddPerson ( DBPerson::Role  role,
const QString &  name,
int  priority = 0,
const QString &  character = "" 
)

Definition at line 298 of file programdata.cpp.

◆ AddPerson() [2/2]

void DBEvent::AddPerson ( const QString &  role,
const QString &  name,
int  priority = 0,
const QString &  character = "" 
)

Definition at line 308 of file programdata.cpp.

◆ UpdateDB() [1/3]

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

Definition at line 325 of file programdata.cpp.

Referenced by UpdateDB(), and DBEventEIT::UpdateDB().

◆ HasCredits()

bool DBEvent::HasCredits ( void  ) const
inline

Definition at line 126 of file programdata.h.

◆ HasTimeConflict()

bool DBEvent::HasTimeConflict ( const DBEvent other) const

Definition at line 318 of file programdata.cpp.

◆ operator=()

DBEvent & DBEvent::operator= ( const DBEvent other)

Definition at line 231 of file programdata.cpp.

Referenced by ProgInfo::operator=().

◆ GetOverlappingPrograms()

uint DBEvent::GetOverlappingPrograms ( MSqlQuery query,
uint  chanid,
std::vector< DBEvent > &  programs 
) const
protected

Definition at line 429 of file programdata.cpp.

Referenced by UpdateDB().

◆ GetMatch()

int DBEvent::GetMatch ( const std::vector< DBEvent > &  programs,
int &  bestmatch 
) const
protected

Definition at line 565 of file programdata.cpp.

Referenced by UpdateDB().

◆ UpdateDB() [2/3]

uint DBEvent::UpdateDB ( MSqlQuery q,
uint  chanid,
const std::vector< DBEvent > &  p,
int  match 
) const
protected

Definition at line 640 of file programdata.cpp.

◆ UpdateDB() [3/3]

uint DBEvent::UpdateDB ( MSqlQuery query,
uint  chanid,
const DBEvent match 
) const
protected

Definition at line 743 of file programdata.cpp.

◆ MoveOutOfTheWayDB()

bool DBEvent::MoveOutOfTheWayDB ( MSqlQuery query,
uint  chanid,
const DBEvent prog 
) const
protected

Definition at line 1071 of file programdata.cpp.

Referenced by UpdateDB().

◆ InsertDB()

uint DBEvent::InsertDB ( MSqlQuery query,
uint  chanid,
bool  recording = false 
) const
protectedvirtual

Insert Callback function when Allow Re-record is pressed in Watch Recordings.

Reimplemented in ProgInfo.

Definition at line 1137 of file programdata.cpp.

Referenced by UpdateDB().

◆ Squeeze()

void DBEvent::Squeeze ( void  )
protectedvirtual

Reimplemented in ProgInfo.

Definition at line 286 of file programdata.cpp.

Referenced by operator=(), and ProgInfo::Squeeze().

Member Data Documentation

◆ m_title

QString DBEvent::m_title

◆ m_subtitle

QString DBEvent::m_subtitle

◆ m_description

QString DBEvent::m_description

◆ m_category

QString DBEvent::m_category

◆ m_starttime

QDateTime DBEvent::m_starttime

◆ m_endtime

QDateTime DBEvent::m_endtime

◆ m_airdate

uint16_t DBEvent::m_airdate {0}

◆ m_originalairdate

QDate DBEvent::m_originalairdate

origial broadcast date

Definition at line 155 of file programdata.h.

Referenced by GetOverlappingPrograms(), InsertDB(), ProgInfo::InsertDB(), operator=(), and UpdateDB().

◆ m_credits

DBCredits* DBEvent::m_credits {nullptr}

Definition at line 156 of file programdata.h.

Referenced by AddPerson(), InsertDB(), ProgInfo::InsertDB(), operator=(), and UpdateDB().

◆ m_partnumber

uint16_t DBEvent::m_partnumber {0}

◆ m_parttotal

uint16_t DBEvent::m_parttotal {0}

◆ m_syndicatedepisodenumber

QString DBEvent::m_syndicatedepisodenumber

◆ m_subtitleType

unsigned char DBEvent::m_subtitleType {0}

◆ m_audioProps

unsigned char DBEvent::m_audioProps {0}

◆ m_videoProps

unsigned char DBEvent::m_videoProps {0}

◆ m_stars

float DBEvent::m_stars {0.0}

Definition at line 163 of file programdata.h.

Referenced by InsertDB(), ProgInfo::InsertDB(), ProgramData::IsUnchanged(), and operator=().

◆ m_categoryType

◆ m_seriesId

QString DBEvent::m_seriesId

◆ m_programId

QString DBEvent::m_programId

◆ m_inetref

QString DBEvent::m_inetref

◆ m_previouslyshown

bool DBEvent::m_previouslyshown {false}

◆ m_listingsource

uint32_t DBEvent::m_listingsource

Definition at line 169 of file programdata.h.

Referenced by InsertDB(), ProgInfo::InsertDB(), operator=(), and UpdateDB().

◆ m_ratings

QList<EventRating> DBEvent::m_ratings

Definition at line 170 of file programdata.h.

Referenced by InsertDB(), ProgInfo::InsertDB(), operator=(), and UpdateDB().

◆ m_genres

QStringList DBEvent::m_genres

Definition at line 171 of file programdata.h.

Referenced by InsertDB(), ProgInfo::InsertDB(), operator=(), and UpdateDB().

◆ m_season

uint DBEvent::m_season {0}

◆ m_episode

uint DBEvent::m_episode {0}

◆ m_totalepisodes

uint DBEvent::m_totalepisodes {0}

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