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

#include <rominfo.h>

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)
 
 ~RomInfo ()=default
 
bool FindImage (QString BaseFileName, QString *result)
 
int Id () const
 
void setId (const 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 (const int &lromcount)
 
QString AllSystems () const
 
void setAllSystems (const QString &lallsystems)
 
int DiskCount () const
 
void setDiskCount (const 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)
 
int Favorite () const
 
void setFavorite (bool updateDatabase=false)
 
QString getExtension ()
 
QString toString ()
 
void setField (const QString &field, const QString &data)
 
void fillData ()
 
void SaveToDatabase ()
 
void DeleteFromDatabase ()
 

Static Public Member Functions

static QList< RomInfo * > GetAllRomInfo ()
 
static RomInfoGetRomInfoById (int id)
 

Protected Attributes

int m_id
 
QString m_romname
 
QString m_system
 
QString m_gamename
 
QString m_genre
 
QString m_country
 
QString m_crc_value
 
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 10 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 = "" 
)
inline

Definition at line 16 of file rominfo.h.

Referenced by GetAllRomInfo(), and GetRomInfoById().

◆ RomInfo() [2/2]

RomInfo::RomInfo ( const RomInfo lhs)
inline

Definition at line 47 of file rominfo.h.

◆ ~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 
)

Definition at line 141 of file rominfo.cpp.

◆ Id()

int RomInfo::Id ( void  ) const
inline

Definition at line 76 of file rominfo.h.

Referenced by toString(), and GameScannerThread::verifyFiles().

◆ setId()

void RomInfo::setId ( const int &  lid)
inline

Definition at line 77 of file rominfo.h.

Referenced by fillData().

◆ Rompath()

QString RomInfo::Rompath ( ) const
inline

◆ setRompath()

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

Definition at line 80 of file rominfo.h.

Referenced by fillData().

◆ Screenshot()

QString RomInfo::Screenshot ( ) const
inline

◆ setScreenshot()

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

◆ Fanart()

QString RomInfo::Fanart ( ) const
inline

◆ setFanart()

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

◆ Boxart()

QString RomInfo::Boxart ( ) const
inline

◆ setBoxart()

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

◆ Romname()

QString RomInfo::Romname ( ) const
inline

◆ setRomname()

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

Definition at line 92 of file rominfo.h.

Referenced by fillData().

◆ System()

QString RomInfo::System ( ) const
inline

◆ setSystem()

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

Definition at line 95 of file rominfo.h.

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

◆ Gamename()

QString RomInfo::Gamename ( ) const
inline

◆ setGamename()

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

◆ Genre()

QString RomInfo::Genre ( ) const
inline

◆ setGenre()

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

Definition at line 101 of file rominfo.h.

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

◆ Country()

QString RomInfo::Country ( void  ) const
inline

◆ setCountry()

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

Definition at line 104 of file rominfo.h.

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

◆ GameType()

QString RomInfo::GameType ( ) const
inline

◆ setGameType()

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

Definition at line 107 of file rominfo.h.

Referenced by fillData().

◆ RomCount()

int RomInfo::RomCount ( ) const
inline

Definition at line 109 of file rominfo.h.

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

◆ setRomCount()

void RomInfo::setRomCount ( const int &  lromcount)
inline

Definition at line 110 of file rominfo.h.

Referenced by fillData().

◆ AllSystems()

QString RomInfo::AllSystems ( ) const
inline

Definition at line 112 of file rominfo.h.

Referenced by GameDetailsPopup::Create(), and GameUI::itemClicked().

◆ setAllSystems()

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

Definition at line 113 of file rominfo.h.

◆ DiskCount()

int RomInfo::DiskCount ( ) const
inline

Definition at line 115 of file rominfo.h.

Referenced by GameHandler::Launchgame().

◆ setDiskCount()

void RomInfo::setDiskCount ( const int &  ldiskcount)
inline

Definition at line 116 of file rominfo.h.

Referenced by fillData().

◆ CRC_VALUE()

QString RomInfo::CRC_VALUE ( ) const
inline

Definition at line 118 of file rominfo.h.

Referenced by GameDetailsPopup::Create().

◆ setCRC_VALUE()

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

Definition at line 119 of file rominfo.h.

Referenced by fillData().

◆ Plot()

QString RomInfo::Plot ( ) const
inline

◆ setPlot()

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

Definition at line 122 of file rominfo.h.

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

◆ Publisher()

QString RomInfo::Publisher ( ) const
inline

◆ setPublisher()

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

Definition at line 125 of file rominfo.h.

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

◆ Version()

QString RomInfo::Version ( void  ) const
inline

Definition at line 127 of file rominfo.h.

Referenced by SaveToDatabase().

◆ setVersion()

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

Definition at line 128 of file rominfo.h.

Referenced by fillData().

◆ Year()

QString RomInfo::Year ( ) const
inline

◆ setYear()

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

◆ Inetref()

QString RomInfo::Inetref ( ) const
inline

Definition at line 133 of file rominfo.h.

Referenced by GameUI::gameSearch(), SaveToDatabase(), and GameUI::StartGameImageSet().

◆ setInetref()

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

Definition at line 134 of file rominfo.h.

Referenced by fillData().

◆ Favorite()

int 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 ( )

Definition at line 234 of file rominfo.cpp.

Referenced by GameHandler::Launchgame().

◆ toString()

QString RomInfo::toString ( void  )

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 ( )

◆ DeleteFromDatabase()

void RomInfo::DeleteFromDatabase ( )

Definition at line 94 of file rominfo.cpp.

Referenced by GameScannerThread::removeOrphan().

Member Data Documentation

◆ m_id

int RomInfo::m_id
protected

Definition at line 149 of file rominfo.h.

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

◆ m_romname

QString RomInfo::m_romname
protected

Definition at line 150 of file rominfo.h.

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

◆ m_system

QString RomInfo::m_system
protected

Definition at line 151 of file rominfo.h.

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

◆ m_gamename

QString RomInfo::m_gamename
protected

Definition at line 152 of file rominfo.h.

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

◆ m_genre

QString RomInfo::m_genre
protected

Definition at line 153 of file rominfo.h.

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

◆ m_country

QString RomInfo::m_country
protected

Definition at line 154 of file rominfo.h.

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

◆ m_crc_value

QString RomInfo::m_crc_value
protected

Definition at line 155 of file rominfo.h.

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

◆ m_gametype

QString RomInfo::m_gametype
protected

Definition at line 156 of file rominfo.h.

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

◆ m_allsystems

QString RomInfo::m_allsystems
protected

Definition at line 157 of file rominfo.h.

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

◆ m_plot

QString RomInfo::m_plot
protected

Definition at line 158 of file rominfo.h.

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

◆ m_publisher

QString RomInfo::m_publisher
protected

Definition at line 159 of file rominfo.h.

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

◆ m_version

QString RomInfo::m_version
protected

Definition at line 160 of file rominfo.h.

Referenced by RomInfo(), setVersion(), and Version().

◆ m_romcount

int RomInfo::m_romcount
protected

Definition at line 161 of file rominfo.h.

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

◆ m_diskcount

int RomInfo::m_diskcount
protected

Definition at line 162 of file rominfo.h.

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

◆ m_year

QString RomInfo::m_year
protected

Definition at line 163 of file rominfo.h.

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

◆ m_favorite

bool RomInfo::m_favorite
protected

Definition at line 164 of file rominfo.h.

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

◆ m_rompath

QString RomInfo::m_rompath
protected

Definition at line 165 of file rominfo.h.

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

◆ m_screenshot

QString RomInfo::m_screenshot
protected

Definition at line 166 of file rominfo.h.

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

◆ m_fanart

QString RomInfo::m_fanart
protected

Definition at line 167 of file rominfo.h.

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

◆ m_boxart

QString RomInfo::m_boxart
protected

Definition at line 168 of file rominfo.h.

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

◆ m_inetref

QString RomInfo::m_inetref
protected

Definition at line 169 of file rominfo.h.

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


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