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

#include <rominfo.h>

Collaboration diagram for RomInfo:
Collaboration graph
[legend]

Public Member Functions

 RomInfo (int lid=0, QString lromname="", QString lsystem="", QString lgamename="", QString lgenre="", QString lyear="", bool lfavorite=false, QString lrompath="", QString lcountry="", QString lcrc_value="", int ldiskcount=0, QString lgametype="", int lromcount=0, QString lallsystems="", QString lplot="", QString lpublisher="", QString lversion="", QString lscreenshot="", QString lfanart="", QString lboxart="", QString linetref="")
 
 RomInfo (const RomInfo &lhs)=default
 
 ~RomInfo ()=default
 
int Id () const
 
void setId (int lid)
 
QString Rompath () const
 
void setRompath (const QString &lrompath)
 
QString Screenshot () const
 
void setScreenshot (const QString &lscreenshot)
 
QString Fanart () const
 
void setFanart (const QString &lfanart)
 
QString Boxart () const
 
void setBoxart (const QString &lboxart)
 
QString Romname () const
 
void setRomname (const QString &lromname)
 
QString System () const
 
void setSystem (const QString &lsystem)
 
QString Gamename () const
 
void setGamename (const QString &lgamename)
 
QString Genre () const
 
void setGenre (const QString &lgenre)
 
QString Country () const
 
void setCountry (const QString &lcountry)
 
QString GameType () const
 
void setGameType (const QString &lgametype)
 
int RomCount () const
 
void setRomCount (int lromcount)
 
QString AllSystems () const
 
void setAllSystems (const QString &lallsystems)
 
int DiskCount () const
 
void setDiskCount (int ldiskcount)
 
QString CRC_VALUE () const
 
void setCRC_VALUE (const QString &lcrc_value)
 
QString Plot () const
 
void setPlot (const QString &lplot)
 
QString Publisher () const
 
void setPublisher (const QString &lpublisher)
 
QString Version () const
 
void setVersion (const QString &lversion)
 
QString Year () const
 
void setYear (const QString &lyear)
 
QString Inetref () const
 
void setInetref (const QString &linetref)
 
bool Favorite () const
 
void setFavorite (bool updateDatabase=false)
 
QString getExtension () const
 
QString toString () const
 
void setField (const QString &field, const QString &data)
 
void fillData ()
 
void SaveToDatabase () const
 
void DeleteFromDatabase () const
 

Static Public Member Functions

static QList< RomInfo * > GetAllRomInfo ()
 
static RomInfoGetRomInfoById (int id)
 
static bool FindImage (QString BaseFileName, QString *result)
 

Protected Attributes

int m_id
 
QString m_romname
 
QString m_system
 
QString m_gamename
 
QString m_genre
 
QString m_country
 
QString m_crcValue
 
QString m_gametype
 
QString m_allsystems
 
QString m_plot
 
QString m_publisher
 
QString m_version
 
int m_romcount
 
int m_diskcount
 
QString m_year
 
bool m_favorite
 
QString m_rompath
 
QString m_screenshot
 
QString m_fanart
 
QString m_boxart
 
QString m_inetref
 

Detailed Description

Definition at line 14 of file rominfo.h.

Constructor & Destructor Documentation

◆ RomInfo() [1/2]

RomInfo::RomInfo ( int  lid = 0,
QString  lromname = "",
QString  lsystem = "",
QString  lgamename = "",
QString  lgenre = "",
QString  lyear = "",
bool  lfavorite = false,
QString  lrompath = "",
QString  lcountry = "",
QString  lcrc_value = "",
int  ldiskcount = 0,
QString  lgametype = "",
int  lromcount = 0,
QString  lallsystems = "",
QString  lplot = "",
QString  lpublisher = "",
QString  lversion = "",
QString  lscreenshot = "",
QString  lfanart = "",
QString  lboxart = "",
QString  linetref = "" 
)
inlineexplicit

Definition at line 20 of file rominfo.h.

Referenced by GetAllRomInfo(), and GetRomInfoById().

◆ RomInfo() [2/2]

RomInfo::RomInfo ( const RomInfo lhs)
default

◆ ~RomInfo()

RomInfo::~RomInfo ( )
default

Member Function Documentation

◆ GetAllRomInfo()

QList< RomInfo * > RomInfo::GetAllRomInfo ( )
static

Definition at line 320 of file rominfo.cpp.

Referenced by GameScannerThread::run().

◆ GetRomInfoById()

RomInfo * RomInfo::GetRomInfoById ( int  id)
static

Definition at line 368 of file rominfo.cpp.

Referenced by GameScannerThread::removeOrphan().

◆ FindImage()

bool RomInfo::FindImage ( QString  BaseFileName,
QString *  result 
)
static

Definition at line 144 of file rominfo.cpp.

◆ Id()

int RomInfo::Id ( ) const
inline

Definition at line 57 of file rominfo.h.

Referenced by toString().

◆ setId()

void RomInfo::setId ( int  lid)
inline

Definition at line 58 of file rominfo.h.

Referenced by fillData().

◆ Rompath()

QString RomInfo::Rompath ( ) const
inline

◆ setRompath()

void RomInfo::setRompath ( const QString &  lrompath)
inline

Definition at line 61 of file rominfo.h.

Referenced by fillData().

◆ Screenshot()

QString RomInfo::Screenshot ( ) const
inline

◆ setScreenshot()

void RomInfo::setScreenshot ( const QString &  lscreenshot)
inline

Definition at line 64 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetScreenshot().

◆ Fanart()

QString RomInfo::Fanart ( ) const
inline

◆ setFanart()

void RomInfo::setFanart ( const QString &  lfanart)
inline

Definition at line 67 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetFanart().

◆ Boxart()

QString RomInfo::Boxart ( ) const
inline

◆ setBoxart()

void RomInfo::setBoxart ( const QString &  lboxart)
inline

Definition at line 70 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetBoxart().

◆ Romname()

QString RomInfo::Romname ( ) const
inline

◆ setRomname()

void RomInfo::setRomname ( const QString &  lromname)
inline

Definition at line 73 of file rominfo.h.

Referenced by fillData().

◆ System()

QString RomInfo::System ( ) const
inline

Definition at line 75 of file rominfo.h.

Referenced by GameHandler::GetHandler(), SaveToDatabase(), and GameUI::updateRomInfo().

◆ setSystem()

void RomInfo::setSystem ( const QString &  lsystem)
inline

Definition at line 76 of file rominfo.h.

Referenced by fillData().

◆ Gamename()

QString RomInfo::Gamename ( ) const
inline

◆ setGamename()

void RomInfo::setGamename ( const QString &  lgamename)
inline

Definition at line 79 of file rominfo.h.

Referenced by fillData(), GameUI::OnGameSearchDone(), and EditRomInfoDialog::SetGamename().

◆ Genre()

QString RomInfo::Genre ( ) const
inline

◆ setGenre()

void RomInfo::setGenre ( const QString &  lgenre)
inline

Definition at line 82 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetGenre().

◆ Country()

QString RomInfo::Country ( ) const
inline

◆ setCountry()

void RomInfo::setCountry ( const QString &  lcountry)
inline

Definition at line 85 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetCountry().

◆ GameType()

QString RomInfo::GameType ( ) const
inline

Definition at line 87 of file rominfo.h.

Referenced by GameDetailsPopup::Create(), and SaveToDatabase().

◆ setGameType()

void RomInfo::setGameType ( const QString &  lgametype)
inline

Definition at line 88 of file rominfo.h.

Referenced by fillData().

◆ RomCount()

int RomInfo::RomCount ( ) const
inline

Definition at line 90 of file rominfo.h.

Referenced by fillData().

◆ setRomCount()

void RomInfo::setRomCount ( int  lromcount)
inline

Definition at line 91 of file rominfo.h.

Referenced by fillData().

◆ AllSystems()

QString RomInfo::AllSystems ( ) const
inline

Definition at line 93 of file rominfo.h.

Referenced by GameDetailsPopup::Create().

◆ setAllSystems()

void RomInfo::setAllSystems ( const QString &  lallsystems)
inline

Definition at line 94 of file rominfo.h.

◆ DiskCount()

int RomInfo::DiskCount ( ) const
inline

Definition at line 96 of file rominfo.h.

Referenced by GameHandler::Launchgame().

◆ setDiskCount()

void RomInfo::setDiskCount ( int  ldiskcount)
inline

Definition at line 97 of file rominfo.h.

Referenced by fillData().

◆ CRC_VALUE()

QString RomInfo::CRC_VALUE ( ) const
inline

Definition at line 99 of file rominfo.h.

Referenced by GameDetailsPopup::Create().

◆ setCRC_VALUE()

void RomInfo::setCRC_VALUE ( const QString &  lcrc_value)
inline

Definition at line 100 of file rominfo.h.

Referenced by fillData().

◆ Plot()

QString RomInfo::Plot ( ) const
inline

◆ setPlot()

void RomInfo::setPlot ( const QString &  lplot)
inline

Definition at line 103 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetPlot().

◆ Publisher()

QString RomInfo::Publisher ( ) const
inline

◆ setPublisher()

void RomInfo::setPublisher ( const QString &  lpublisher)
inline

Definition at line 106 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetPublisher().

◆ Version()

QString RomInfo::Version ( ) const
inline

Definition at line 108 of file rominfo.h.

Referenced by SaveToDatabase().

◆ setVersion()

void RomInfo::setVersion ( const QString &  lversion)
inline

Definition at line 109 of file rominfo.h.

Referenced by fillData().

◆ Year()

QString RomInfo::Year ( ) const
inline

◆ setYear()

void RomInfo::setYear ( const QString &  lyear)
inline

Definition at line 112 of file rominfo.h.

Referenced by fillData(), and EditRomInfoDialog::SetYear().

◆ Inetref()

QString RomInfo::Inetref ( ) const
inline

Definition at line 114 of file rominfo.h.

Referenced by SaveToDatabase().

◆ setInetref()

void RomInfo::setInetref ( const QString &  linetref)
inline

Definition at line 115 of file rominfo.h.

Referenced by fillData().

◆ Favorite()

bool RomInfo::Favorite ( ) const
inline

◆ setFavorite()

void RomInfo::setFavorite ( bool  updateDatabase = false)

Definition at line 213 of file rominfo.cpp.

Referenced by EditRomInfoDialog::ToggleFavorite(), and GameUI::toggleFavorite().

◆ getExtension()

QString RomInfo::getExtension ( ) const

Definition at line 234 of file rominfo.cpp.

Referenced by GameHandler::Launchgame().

◆ toString()

QString RomInfo::toString ( ) const

Definition at line 416 of file rominfo.cpp.

◆ setField()

void RomInfo::setField ( const QString &  field,
const QString &  data 
)

Definition at line 172 of file rominfo.cpp.

Referenced by fillData(), and GameUI::fillNode().

◆ fillData()

void RomInfo::fillData ( )

Definition at line 247 of file rominfo.cpp.

Referenced by GameUI::nodeChanged().

◆ SaveToDatabase()

void RomInfo::SaveToDatabase ( ) const

Definition at line 20 of file rominfo.cpp.

Referenced by GameScannerThread::updateDB().

◆ DeleteFromDatabase()

void RomInfo::DeleteFromDatabase ( ) const

Definition at line 97 of file rominfo.cpp.

Referenced by GameScannerThread::removeOrphan().

Member Data Documentation

◆ m_id

int RomInfo::m_id
protected

Definition at line 130 of file rominfo.h.

Referenced by Id(), SaveToDatabase(), and setId().

◆ m_romname

QString RomInfo::m_romname
protected

Definition at line 131 of file rominfo.h.

Referenced by fillData(), Romname(), setFavorite(), and setRomname().

◆ m_system

QString RomInfo::m_system
protected

Definition at line 132 of file rominfo.h.

Referenced by fillData(), setField(), setSystem(), and System().

◆ m_gamename

QString RomInfo::m_gamename
protected

Definition at line 133 of file rominfo.h.

Referenced by fillData(), Gamename(), setField(), and setGamename().

◆ m_genre

QString RomInfo::m_genre
protected

Definition at line 134 of file rominfo.h.

Referenced by Genre(), setField(), and setGenre().

◆ m_country

QString RomInfo::m_country
protected

Definition at line 135 of file rominfo.h.

Referenced by Country(), setCountry(), and setField().

◆ m_crcValue

QString RomInfo::m_crcValue
protected

Definition at line 136 of file rominfo.h.

Referenced by CRC_VALUE(), setCRC_VALUE(), and setField().

◆ m_gametype

QString RomInfo::m_gametype
protected

Definition at line 137 of file rominfo.h.

Referenced by fillData(), GameType(), setField(), and setGameType().

◆ m_allsystems

QString RomInfo::m_allsystems
protected

Definition at line 138 of file rominfo.h.

Referenced by AllSystems(), fillData(), and setAllSystems().

◆ m_plot

QString RomInfo::m_plot
protected

Definition at line 139 of file rominfo.h.

Referenced by Plot(), setField(), and setPlot().

◆ m_publisher

QString RomInfo::m_publisher
protected

Definition at line 140 of file rominfo.h.

Referenced by Publisher(), setField(), and setPublisher().

◆ m_version

QString RomInfo::m_version
protected

Definition at line 141 of file rominfo.h.

Referenced by setVersion(), and Version().

◆ m_romcount

int RomInfo::m_romcount
protected

Definition at line 142 of file rominfo.h.

Referenced by RomCount(), setField(), and setRomCount().

◆ m_diskcount

int RomInfo::m_diskcount
protected

Definition at line 143 of file rominfo.h.

Referenced by DiskCount(), setDiskCount(), and setField().

◆ m_year

QString RomInfo::m_year
protected

Definition at line 144 of file rominfo.h.

Referenced by setField(), setYear(), and Year().

◆ m_favorite

bool RomInfo::m_favorite
protected

Definition at line 145 of file rominfo.h.

Referenced by Favorite(), setFavorite(), and setField().

◆ m_rompath

QString RomInfo::m_rompath
protected

Definition at line 146 of file rominfo.h.

Referenced by Rompath(), setField(), and setRompath().

◆ m_screenshot

QString RomInfo::m_screenshot
protected

Definition at line 147 of file rominfo.h.

Referenced by Screenshot(), setField(), and setScreenshot().

◆ m_fanart

QString RomInfo::m_fanart
protected

Definition at line 148 of file rominfo.h.

Referenced by Fanart(), setFanart(), and setField().

◆ m_boxart

QString RomInfo::m_boxart
protected

Definition at line 149 of file rominfo.h.

Referenced by Boxart(), setBoxart(), and setField().

◆ m_inetref

QString RomInfo::m_inetref
protected

Definition at line 150 of file rominfo.h.

Referenced by Inetref(), setField(), and setInetref().


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