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

#include <programdata.h>

Collaboration diagram for DBPerson:
Collaboration graph
[legend]

Public Types

enum  Role {
  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

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 59 of file programdata.cpp.

◆ DBPerson() [2/3]

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

Definition at line 82 of file programdata.cpp.

◆ DBPerson() [3/3]

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

Definition at line 93 of file programdata.cpp.

Member Function Documentation

◆ operator=()

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

Definition at line 69 of file programdata.cpp.

◆ GetRole()

QString DBPerson::GetRole ( void  ) const

Definition at line 113 of file programdata.cpp.

Referenced by InsertCreditsDB().

◆ toString()

QString DBPerson::toString ( void  ) const

Definition at line 120 of file programdata.cpp.

◆ InsertDB()

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

Definition at line 125 of file programdata.cpp.

◆ GetPersonDB()

uint DBPerson::GetPersonDB ( MSqlQuery query) const
private

Definition at line 145 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertPersonDB()

uint DBPerson::InsertPersonDB ( MSqlQuery query) const
private

Definition at line 161 of file programdata.cpp.

Referenced by InsertDB().

◆ GetRoleDB()

uint DBPerson::GetRoleDB ( MSqlQuery query) const
private

Definition at line 175 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertRoleDB()

bool DBPerson::InsertRoleDB ( MSqlQuery query) const
private

Definition at line 189 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 203 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: