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

#include <programdata.h>

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)
 
 DBPerson (const QString &_role, QString _name)
 
DBPersonoperator= (const DBPerson &rhs)
 
QString GetRole (void) const
 
uint InsertDB (MSqlQuery &query, uint chanid, const QDateTime &starttime) const
 

Private Member Functions

uint GetPersonDB (MSqlQuery &query) const
 
uint InsertPersonDB (MSqlQuery &query) const
 
uint InsertCreditsDB (MSqlQuery &query, uint personid, uint chanid, const QDateTime &starttime) const
 

Private Attributes

Role m_role
 
QString m_name
 

Detailed Description

Definition at line 25 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 61 of file programdata.cpp.

◆ DBPerson() [2/3]

DBPerson::DBPerson ( Role  _role,
QString  _name 
)

Definition at line 77 of file programdata.cpp.

◆ DBPerson() [3/3]

DBPerson::DBPerson ( const QString &  _role,
QString  _name 
)

Definition at line 83 of file programdata.cpp.

Member Function Documentation

◆ operator=()

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

Definition at line 67 of file programdata.cpp.

◆ GetRole()

QString DBPerson::GetRole ( void  ) const

Definition at line 98 of file programdata.cpp.

Referenced by InsertCreditsDB().

◆ InsertDB()

uint DBPerson::InsertDB ( MSqlQuery query,
uint  chanid,
const QDateTime &  starttime 
) const

Definition at line 105 of file programdata.cpp.

◆ GetPersonDB()

uint DBPerson::GetPersonDB ( MSqlQuery query) const
private

Definition at line 115 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertPersonDB()

uint DBPerson::InsertPersonDB ( MSqlQuery query) const
private

Definition at line 131 of file programdata.cpp.

Referenced by InsertDB().

◆ InsertCreditsDB()

uint DBPerson::InsertCreditsDB ( MSqlQuery query,
uint  personid,
uint  chanid,
const QDateTime &  starttime 
) const
private

Definition at line 145 of file programdata.cpp.

Referenced by InsertDB().

Member Data Documentation

◆ m_role

Role DBPerson::m_role
private

Definition at line 61 of file programdata.h.

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

◆ m_name

QString DBPerson::m_name
private

Definition at line 62 of file programdata.h.

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


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