#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 () | |
| 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 (QString field, QString data) |
| void | fillData () |
| void | SaveToDatabase () |
| void | DeleteFromDatabase () |
Static Public Member Functions | |
| static QList< RomInfo * > | GetAllRomInfo () |
| static RomInfo * | GetRomInfoById (int id) |
Protected Attributes | |
| int | id |
| QString | romname |
| QString | system |
| QString | gamename |
| QString | genre |
| QString | country |
| QString | crc_value |
| QString | gametype |
| QString | allsystems |
| QString | plot |
| QString | publisher |
| QString | version |
| int | romcount |
| int | diskcount |
| QString | year |
| bool | favorite |
| QString | rompath |
| QString | screenshot |
| QString | fanart |
| QString | boxart |
| QString | inetref |
Definition at line 10 of file rominfo.h.
| 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().
| QList< RomInfo * > RomInfo::GetAllRomInfo | ( | ) | [static] |
Definition at line 322 of file rominfo.cpp.
Referenced by GameScannerThread::run().
| RomInfo * RomInfo::GetRomInfoById | ( | int | id | ) | [static] |
Definition at line 370 of file rominfo.cpp.
Referenced by GameScannerThread::removeOrphan().
| bool RomInfo::FindImage | ( | QString | BaseFileName, | |
| QString * | result | |||
| ) |
Definition at line 143 of file rominfo.cpp.
| int RomInfo::Id | ( | void | ) | const [inline] |
Definition at line 76 of file rominfo.h.
Referenced by toString(), and GameScannerThread::verifyFiles().
| void RomInfo::setId | ( | const int & | lid | ) | [inline] |
Definition at line 77 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::Rompath | ( | ) | const [inline] |
Definition at line 79 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), DeleteFromDatabase(), GameHandler::Launchgame(), SaveToDatabase(), and toString().
| void RomInfo::setRompath | ( | const QString & | lrompath | ) | [inline] |
Definition at line 80 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::Screenshot | ( | ) | const [inline] |
Definition at line 82 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), EditRomInfoDialog::fillWidgets(), GameUI::nodeChanged(), SaveToDatabase(), GameUI::StartGameImageSet(), and GameUI::updateRomInfo().
| void RomInfo::setScreenshot | ( | const QString & | lscreenshot | ) | [inline] |
Definition at line 83 of file rominfo.h.
Referenced by fillData(), GameUI::handleDownloadedImages(), and EditRomInfoDialog::SetScreenshot().
| QString RomInfo::Fanart | ( | ) | const [inline] |
Definition at line 85 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), EditRomInfoDialog::fillWidgets(), GameUI::nodeChanged(), SaveToDatabase(), GameUI::StartGameImageSet(), and GameUI::updateRomInfo().
| void RomInfo::setFanart | ( | const QString & | lfanart | ) | [inline] |
Definition at line 86 of file rominfo.h.
Referenced by fillData(), GameUI::handleDownloadedImages(), and EditRomInfoDialog::SetFanart().
| QString RomInfo::Boxart | ( | ) | const [inline] |
Definition at line 88 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), EditRomInfoDialog::fillWidgets(), GameUI::nodeChanged(), SaveToDatabase(), GameUI::StartGameImageSet(), and GameUI::updateRomInfo().
| void RomInfo::setBoxart | ( | const QString & | lboxart | ) | [inline] |
Definition at line 89 of file rominfo.h.
Referenced by fillData(), GameUI::handleDownloadedImages(), and EditRomInfoDialog::SetBoxart().
| QString RomInfo::Romname | ( | ) | const [inline] |
Definition at line 91 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), DeleteFromDatabase(), fillData(), getExtension(), GameHandler::Launchgame(), GameUI::nodeChanged(), operator==(), SaveToDatabase(), toString(), and GameScannerThread::verifyFiles().
| void RomInfo::setRomname | ( | const QString & | lromname | ) | [inline] |
Definition at line 92 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::System | ( | ) | const [inline] |
Definition at line 94 of file rominfo.h.
Referenced by GameUI::fillNode(), GameUI::getFillSql(), GameHandler::GetHandler(), SaveToDatabase(), GameUI::StartGameImageSet(), GameUI::updateRomInfo(), and GameScannerThread::verifyFiles().
| void RomInfo::setSystem | ( | const QString & | lsystem | ) | [inline] |
Definition at line 95 of file rominfo.h.
Referenced by fillData(), GameUI::fillNode(), and GameUI::OnGameSearchDone().
| QString RomInfo::Gamename | ( | ) | const [inline] |
Definition at line 97 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), GameUI::customEvent(), GameUI::fillNode(), EditRomInfoDialog::fillWidgets(), GameUI::gameSearch(), GameUI::getFillSql(), SaveToDatabase(), GameUI::StartGameImageSet(), toString(), and GameUI::updateRomInfo().
| void RomInfo::setGamename | ( | const QString & | lgamename | ) | [inline] |
Definition at line 98 of file rominfo.h.
Referenced by fillData(), GameUI::fillNode(), GameUI::OnGameSearchDone(), and EditRomInfoDialog::SetGamename().
| QString RomInfo::Genre | ( | ) | const [inline] |
Definition at line 100 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), GameUI::fillNode(), EditRomInfoDialog::fillWidgets(), GameUI::getFillSql(), SaveToDatabase(), and GameUI::updateRomInfo().
| void RomInfo::setGenre | ( | const QString & | lgenre | ) | [inline] |
Definition at line 101 of file rominfo.h.
Referenced by fillData(), GameUI::fillNode(), and EditRomInfoDialog::SetGenre().
| QString RomInfo::Country | ( | ) | const [inline] |
Definition at line 103 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), EditRomInfoDialog::fillWidgets(), and SaveToDatabase().
| void RomInfo::setCountry | ( | const QString & | lcountry | ) | [inline] |
Definition at line 104 of file rominfo.h.
Referenced by fillData(), and EditRomInfoDialog::SetCountry().
| QString RomInfo::GameType | ( | ) | const [inline] |
Definition at line 106 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), SaveToDatabase(), and GameScannerThread::verifyFiles().
| void RomInfo::setGameType | ( | const QString & | lgametype | ) | [inline] |
Definition at line 107 of file rominfo.h.
Referenced by fillData().
| int RomInfo::RomCount | ( | ) | const [inline] |
Definition at line 109 of file rominfo.h.
Referenced by fillData(), and GameUI::itemClicked().
| void RomInfo::setRomCount | ( | const int & | lromcount | ) | [inline] |
Definition at line 110 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::AllSystems | ( | ) | const [inline] |
Definition at line 112 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), and GameUI::itemClicked().
| void RomInfo::setAllSystems | ( | const QString & | lallsystems | ) | [inline] |
| int RomInfo::DiskCount | ( | ) | const [inline] |
Definition at line 115 of file rominfo.h.
Referenced by GameHandler::Launchgame().
| void RomInfo::setDiskCount | ( | const int & | ldiskcount | ) | [inline] |
Definition at line 116 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::CRC_VALUE | ( | ) | const [inline] |
Definition at line 118 of file rominfo.h.
Referenced by GameDetailsPopup::Create().
| void RomInfo::setCRC_VALUE | ( | const QString & | lcrc_value | ) | [inline] |
Definition at line 119 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::Plot | ( | ) | const [inline] |
Definition at line 121 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), GameUI::fillNode(), EditRomInfoDialog::fillWidgets(), GameUI::getFillSql(), SaveToDatabase(), and GameUI::updateRomInfo().
| void RomInfo::setPlot | ( | const QString & | lplot | ) | [inline] |
Definition at line 122 of file rominfo.h.
Referenced by fillData(), GameUI::OnGameSearchDone(), and EditRomInfoDialog::SetPlot().
| QString RomInfo::Publisher | ( | ) | const [inline] |
Definition at line 124 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), GameUI::fillNode(), EditRomInfoDialog::fillWidgets(), GameUI::getFillSql(), and SaveToDatabase().
| void RomInfo::setPublisher | ( | const QString & | lpublisher | ) | [inline] |
Definition at line 125 of file rominfo.h.
Referenced by fillData(), and EditRomInfoDialog::SetPublisher().
| QString RomInfo::Version | ( | void | ) | const [inline] |
Definition at line 127 of file rominfo.h.
Referenced by SaveToDatabase().
| void RomInfo::setVersion | ( | const QString & | lversion | ) | [inline] |
Definition at line 128 of file rominfo.h.
Referenced by fillData().
| QString RomInfo::Year | ( | ) | const [inline] |
Definition at line 130 of file rominfo.h.
Referenced by GameDetailsPopup::Create(), GameUI::fillNode(), EditRomInfoDialog::fillWidgets(), GameUI::getFillSql(), SaveToDatabase(), and GameUI::updateRomInfo().
| void RomInfo::setYear | ( | const QString & | lyear | ) | [inline] |
Definition at line 131 of file rominfo.h.
Referenced by fillData(), GameUI::fillNode(), GameUI::OnGameSearchDone(), and EditRomInfoDialog::SetYear().
| QString RomInfo::Inetref | ( | ) | const [inline] |
Definition at line 133 of file rominfo.h.
Referenced by GameUI::gameSearch(), SaveToDatabase(), and GameUI::StartGameImageSet().
| void RomInfo::setInetref | ( | const QString & | linetref | ) | [inline] |
Definition at line 134 of file rominfo.h.
Referenced by fillData().
| int RomInfo::Favorite | ( | ) | const [inline] |
Definition at line 136 of file rominfo.h.
Referenced by EditRomInfoDialog::fillWidgets(), SaveToDatabase(), GameUI::showMenu(), GameUI::updateChangedNode(), and GameUI::updateRomInfo().
| void RomInfo::setFavorite | ( | bool | updateDatabase = false |
) |
Definition at line 215 of file rominfo.cpp.
Referenced by EditRomInfoDialog::ToggleFavorite(), and GameUI::toggleFavorite().
| QString RomInfo::getExtension | ( | ) |
Definition at line 236 of file rominfo.cpp.
Referenced by GameHandler::Launchgame().
| QString RomInfo::toString | ( | void | ) |
Definition at line 418 of file rominfo.cpp.
| void RomInfo::setField | ( | QString | field, | |
| QString | data | |||
| ) |
Definition at line 174 of file rominfo.cpp.
Referenced by fillData(), and GameUI::fillNode().
| void RomInfo::fillData | ( | ) |
Definition at line 249 of file rominfo.cpp.
Referenced by GameUI::nodeChanged().
| void RomInfo::SaveToDatabase | ( | ) |
Definition at line 19 of file rominfo.cpp.
Referenced by GameUI::customEvent(), GameUI::handleDownloadedImages(), GameUI::OnGameSearchDone(), and GameScannerThread::updateDB().
| void RomInfo::DeleteFromDatabase | ( | ) |
Definition at line 96 of file rominfo.cpp.
Referenced by GameScannerThread::removeOrphan().
int RomInfo::id [protected] |
QString RomInfo::romname [protected] |
Definition at line 150 of file rominfo.h.
Referenced by fillData(), RomInfo(), Romname(), setFavorite(), and setRomname().
QString RomInfo::system [protected] |
Definition at line 151 of file rominfo.h.
Referenced by fillData(), RomInfo(), setField(), setSystem(), and System().
QString RomInfo::gamename [protected] |
Definition at line 152 of file rominfo.h.
Referenced by fillData(), Gamename(), RomInfo(), setField(), and setGamename().
QString RomInfo::genre [protected] |
Definition at line 153 of file rominfo.h.
Referenced by Genre(), RomInfo(), setField(), and setGenre().
QString RomInfo::country [protected] |
Definition at line 154 of file rominfo.h.
Referenced by Country(), RomInfo(), setCountry(), and setField().
QString RomInfo::crc_value [protected] |
Definition at line 155 of file rominfo.h.
Referenced by CRC_VALUE(), RomInfo(), setCRC_VALUE(), and setField().
QString RomInfo::gametype [protected] |
Definition at line 156 of file rominfo.h.
Referenced by fillData(), GameType(), RomInfo(), setField(), and setGameType().
QString RomInfo::allsystems [protected] |
Definition at line 157 of file rominfo.h.
Referenced by AllSystems(), fillData(), RomInfo(), and setAllSystems().
QString RomInfo::plot [protected] |
QString RomInfo::publisher [protected] |
Definition at line 159 of file rominfo.h.
Referenced by Publisher(), RomInfo(), setField(), and setPublisher().
QString RomInfo::version [protected] |
Definition at line 160 of file rominfo.h.
Referenced by RomInfo(), setVersion(), and Version().
int RomInfo::romcount [protected] |
Definition at line 161 of file rominfo.h.
Referenced by RomCount(), RomInfo(), setField(), and setRomCount().
int RomInfo::diskcount [protected] |
Definition at line 162 of file rominfo.h.
Referenced by DiskCount(), RomInfo(), setDiskCount(), and setField().
QString RomInfo::year [protected] |
bool RomInfo::favorite [protected] |
Definition at line 164 of file rominfo.h.
Referenced by Favorite(), RomInfo(), setFavorite(), and setField().
QString RomInfo::rompath [protected] |
Definition at line 165 of file rominfo.h.
Referenced by RomInfo(), Rompath(), setField(), and setRompath().
QString RomInfo::screenshot [protected] |
Definition at line 166 of file rominfo.h.
Referenced by RomInfo(), Screenshot(), setField(), and setScreenshot().
QString RomInfo::fanart [protected] |
Definition at line 167 of file rominfo.h.
Referenced by Fanart(), RomInfo(), setFanart(), and setField().
QString RomInfo::boxart [protected] |
Definition at line 168 of file rominfo.h.
Referenced by Boxart(), RomInfo(), setBoxart(), and setField().
QString RomInfo::inetref [protected] |
Definition at line 169 of file rominfo.h.
Referenced by Inetref(), RomInfo(), setField(), and setInetref().
1.6.3