MythTV  master
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
DBPerson Class Reference

#include <libmythtv/programdata.h>

Collaboration diagram for DBPerson:
[legend]

Public Types

enum  Role : std::uint8_t {
  kUnknown = 0, kActor, kDirector, kProducer,
  kExecutiveProducer, kWriter, kGuestStar, kHost,
  kAdapter, kPresenter, kCommentator, kGuest
}
 

Public Member Functions

 DBPerson (const DBPerson &other)
 
 DBPerson (Role _role, QString _name, int _priority, QString _character)
 
 DBPerson (const QString &_role, QString _name, int _priority, QString _character)
 
DBPersonoperator= (const DBPerson &rhs)
 
QString GetRole (void) const
 
QString toString (void) const
 
uint InsertDB (MSqlQuery &query, uint chanid, const QDateTime &starttime, bool recording=false) const
 

Private Member Functions

uint GetPersonDB (MSqlQuery &query) const
 
uint InsertPersonDB (MSqlQuery &query) const
 
uint GetRoleDB (MSqlQuery &query) const
 
bool InsertRoleDB (MSqlQuery &query) const
 
uint InsertCreditsDB (MSqlQuery &query, uint personid, uint roleid, uint chanid, const QDateTime &starttime, bool recording=false) const
 

Private Attributes

Role m_role
 
QString m_name
 
int m_priority
 
QString m_character
 

Friends

class TestEITFixups
 

Detailed Description

Definition at line 24 of file programdata.h.

Member Enumeration Documentation

◆ Role

enum DBPerson::Role : std::uint8_t
Enumerator
kUnknown 
kActor 
kDirector 
kProducer 
kExecutiveProducer 
kWriter 
kGuestStar 
kHost 
kAdapter 
kPresenter 
kCommentator 
kGuest 

Definition at line 28 of file programdata.h.

Constructor & Destructor Documentation

◆ DBPerson() [1/3]

DBPerson::DBPerson ( const DBPerson other)

Definition at line 60 of file programdata.cpp.

◆ DBPerson() [2/3]

DBPerson::DBPerson ( Role  _role,
QString  _name,
int  _priority,
QString  _character 
)

Definition at line 83 of file programdata.cpp.

◆ DBPerson() [3/3]

DBPerson::DBPerson ( const QString &  _role,
QString  _name,
int  _priority,
QString  _character 
)

Definition at line 94 of file programdata.cpp.

Member Function Documentation

◆ operator=()

DBPerson & DBPerson::operator= ( const DBPerson rhs)

Definition at line 70 of file programdata.cpp.

◆ GetRole()

QString DBPerson::GetRole ( void  ) const

Definition at line 114 of file programdata.cpp.

Referenced by InsertCreditsDB().

◆ toString()

QString DBPerson::toString ( void  ) const

Definition at line 121 of file programdata.cpp.

◆ InsertDB()

uint DBPerson::InsertDB ( MSqlQuery query,
uint  chanid,
const QDateTime &  starttime,
bool  recording = false 
) const

Definition at line 126 of file programdata.cpp.

◆ GetPersonDB()

uint DBPerson::GetPersonDB ( MSqlQuery query) const
private

Definition at line 146 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertPersonDB()

uint DBPerson::InsertPersonDB ( MSqlQuery query) const
private

Definition at line 162 of file programdata.cpp.

Referenced by InsertDB().

◆ GetRoleDB()

uint DBPerson::GetRoleDB ( MSqlQuery query) const
private

Definition at line 176 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertRoleDB()

bool DBPerson::InsertRoleDB ( MSqlQuery query) const
private

Definition at line 190 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertCreditsDB()

uint DBPerson::InsertCreditsDB ( MSqlQuery query,
uint  personid,
uint  roleid,
uint  chanid,
const QDateTime &  starttime,
bool  recording = false 
) const
private

Definition at line 204 of file programdata.cpp.

Referenced by InsertDB().

Friends And Related Function Documentation

◆ TestEITFixups

friend class TestEITFixups
friend

Definition at line 26 of file programdata.h.

Member Data Documentation

◆ m_role

Role DBPerson::m_role
private

Definition at line 68 of file programdata.h.

Referenced by DBPerson(), GetRole(), operator=(), and toString().

◆ m_name

QString DBPerson::m_name
private

Definition at line 69 of file programdata.h.

Referenced by DBPerson(), GetPersonDB(), InsertPersonDB(), operator=(), and toString().

◆ m_priority

int DBPerson::m_priority
private

Definition at line 70 of file programdata.h.

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

◆ m_character

QString DBPerson::m_character
private

Definition at line 71 of file programdata.h.

Referenced by DBPerson(), GetRoleDB(), InsertDB(), InsertRoleDB(), operator=(), and toString().


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