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

#include <programdata.h>

Inheritance diagram for ProgInfo:
Inheritance graph
[legend]
Collaboration diagram for ProgInfo:
Collaboration graph
[legend]

Public Member Functions

 ProgInfo ()
 
 ProgInfo (const ProgInfo &other)
 
uint InsertDB (MSqlQuery &query, uint chanid) const override
 Insert a single entry into the "program" database. More...
 
void Squeeze (void) override
 
ProgInfooperator= (const ProgInfo &other)
 
- Public Member Functions inherited from DBEvent
 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)
 
void AddPerson (const QString &role, const QString &name)
 
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_channel
 
QString m_startts
 
QString m_endts
 
QString m_title_pronounce
 
QString m_showtype
 
QString m_colorcode
 
QString m_clumpidx
 
QString m_clumpmax
 
- Public Attributes inherited from DBEvent
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}
 

Additional Inherited Members

- Protected Member Functions inherited from DBEvent
uint GetOverlappingPrograms (MSqlQuery &query, uint chanid, vector< DBEvent > &programs) const
 
int GetMatch (const vector< DBEvent > &programs, int &bestmatch) const
 
uint UpdateDB (MSqlQuery &q, uint chanid, const 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
 

Detailed Description

Definition at line 213 of file programdata.h.

Constructor & Destructor Documentation

◆ ProgInfo() [1/2]

ProgInfo::ProgInfo ( )
inline

Definition at line 216 of file programdata.h.

◆ ProgInfo() [2/2]

ProgInfo::ProgInfo ( const ProgInfo other)

Definition at line 1165 of file programdata.cpp.

Member Function Documentation

◆ InsertDB()

uint ProgInfo::InsertDB ( MSqlQuery query,
uint  chanid 
) const
overridevirtual

Insert a single entry into the "program" database.

This function is called from HandlePrograms, which is called from mythfilldatabase. It inserts a single entry into the "program" database. The data for this structure is taken from the 'this' ProgInfo object.

Parameters
queryAny mysql query structure. The contents is ignored and the structure is repurposed for local queries.
chanidThe channel number for this program.

Reimplemented from DBEvent.

Definition at line 1224 of file programdata.cpp.

◆ Squeeze()

void ProgInfo::Squeeze ( void  )
overridevirtual

Reimplemented from DBEvent.

Definition at line 1199 of file programdata.cpp.

◆ operator=()

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

Definition at line 1171 of file programdata.cpp.

Member Data Documentation

◆ m_channel

QString ProgInfo::m_channel

Definition at line 229 of file programdata.h.

Referenced by ProgramData::DeleteOverlaps(), InsertDB(), operator=(), and Squeeze().

◆ m_startts

QString ProgInfo::m_startts

Definition at line 230 of file programdata.h.

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

◆ m_endts

QString ProgInfo::m_endts

Definition at line 231 of file programdata.h.

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

◆ m_title_pronounce

QString ProgInfo::m_title_pronounce

Definition at line 232 of file programdata.h.

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

◆ m_showtype

QString ProgInfo::m_showtype

Definition at line 233 of file programdata.h.

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

◆ m_colorcode

QString ProgInfo::m_colorcode

Definition at line 234 of file programdata.h.

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

◆ m_clumpidx

QString ProgInfo::m_clumpidx

Definition at line 235 of file programdata.h.

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

◆ m_clumpmax

QString ProgInfo::m_clumpmax

Definition at line 236 of file programdata.h.

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


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