RomInfo Class Reference

#include <rominfo.h>

List of all members.

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

Detailed Description

Definition at line 10 of file rominfo.h.


Constructor & Destructor Documentation

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::RomInfo ( const RomInfo lhs  )  [inline]

Definition at line 47 of file rominfo.h.

RomInfo::~RomInfo (  )  [inline]

Definition at line 72 of file rominfo.h.


Member Function Documentation

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]
void RomInfo::setRompath ( const QString &  lrompath  )  [inline]

Definition at line 80 of file rominfo.h.

Referenced by fillData().

QString RomInfo::Screenshot (  )  const [inline]
void RomInfo::setScreenshot ( const QString &  lscreenshot  )  [inline]
QString RomInfo::Fanart (  )  const [inline]
void RomInfo::setFanart ( const QString &  lfanart  )  [inline]
QString RomInfo::Boxart (  )  const [inline]
void RomInfo::setBoxart ( const QString &  lboxart  )  [inline]
QString RomInfo::Romname (  )  const [inline]
void RomInfo::setRomname ( const QString &  lromname  )  [inline]

Definition at line 92 of file rominfo.h.

Referenced by fillData().

QString RomInfo::System (  )  const [inline]
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]
void RomInfo::setGamename ( const QString &  lgamename  )  [inline]
QString RomInfo::Genre (  )  const [inline]
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]
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]
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]

Definition at line 113 of file rominfo.h.

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]
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]
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]
void RomInfo::setYear ( const QString &  lyear  )  [inline]
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]
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 (  ) 
void RomInfo::DeleteFromDatabase (  ) 

Definition at line 96 of file rominfo.cpp.

Referenced by GameScannerThread::removeOrphan().


Member Data Documentation

int RomInfo::id [protected]

Definition at line 149 of file rominfo.h.

Referenced by RomInfo().

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]

Definition at line 158 of file rominfo.h.

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

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]

Definition at line 163 of file rominfo.h.

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

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri May 25 06:42:21 2012 for MythTV by  doxygen 1.6.3