GameHandler Class Reference

#include <gamehandler.h>

List of all members.


Detailed Description

Definition at line 56 of file gamehandler.h.


Public Member Functions

 GameHandler ()
void InitMetaDataMap (QString GameType)
void GetMetadata (GameHandler *handler, QString rom, QString *Genre, QString *Year, QString *Country, QString *CRC32, QString *GameName, QString *Publisher, QString *Version)
void promptForRemoval (QString filename, QString RomPath)
void UpdateGameDB (GameHandler *handler)
void VerifyGameDB (GameHandler *handler)
void buildFileList (QString directory, GameHandler *handler, MythProgressDialog *pdial, int *filecount)
void processGames (GameHandler *)
void setRebuild (bool setrebuild)
bool needRebuild (void) const
int SpanDisks () const
QString SystemName () const
QString SystemCmdLine () const
QString SystemRomPath () const
QString SystemWorkingPath () const
QString SystemScreenShots () const
uint GamePlayerID () const
QString GameType () const

Static Public Member Functions

static void updateSettings (GameHandler *)
static GameHandlergetHandler (uint i)
static GameHandlernewHandler (QString name)
static uint count (void)
static void clearAllGameData (void)
static int buildFileCount (QString directory, GameHandler *handler)
static void processAllGames (void)
static void registerHandler (GameHandler *)
static void Launchgame (RomInfo *romdata, QString systemname)
static void EditSettings (RomInfo *romdata)
static void EditSystemSettings (RomInfo *romdata)
static RomInfoCreateRomInfo (RomInfo *parent)
static RomInfocreate_rominfo (RomInfo *parent)

Static Protected Member Functions

static GameHandlerGetHandler (RomInfo *rominfo)
static GameHandlerGetHandlerByName (QString systemname)

Protected Attributes

bool rebuild
int spandisks
QString systemname
QString rompath
QString commandline
QString workingpath
QString screenshots
uint gameplayerid
QString gametype
QStringList validextensions
RomDBMap romDB
GameScanMap m_GameMap
bool m_RemoveAll
bool m_KeepAll

Static Private Attributes

static GameHandlernewInstance = 0

Constructor & Destructor Documentation

GameHandler::GameHandler (  )  [inline]

Definition at line 59 of file gamehandler.h.

Referenced by newHandler().


Member Function Documentation

void GameHandler::updateSettings ( GameHandler handler  )  [static]

Definition at line 68 of file gamehandler.cpp.

Referenced by newHandler(), and processAllGames().

GameHandler * GameHandler::getHandler ( uint  i  )  [static]

Definition at line 63 of file gamehandler.cpp.

Referenced by GameTree::GameTree().

GameHandler * GameHandler::newHandler ( QString  name  )  [static]

Definition at line 94 of file gamehandler.cpp.

Referenced by checkHandlers().

uint GameHandler::count ( void   )  [static]

Definition at line 105 of file gamehandler.cpp.

Referenced by GameTree::GameTree().

void GameHandler::InitMetaDataMap ( QString  GameType  ) 

Definition at line 111 of file gamehandler.cpp.

Referenced by processGames().

void GameHandler::GetMetadata ( GameHandler handler,
QString  rom,
QString *  Genre,
QString *  Year,
QString *  Country,
QString *  CRC32,
QString *  GameName,
QString *  Publisher,
QString *  Version 
)

Definition at line 150 of file gamehandler.cpp.

Referenced by UpdateGameDB().

void GameHandler::promptForRemoval ( QString  filename,
QString  RomPath 
)

Definition at line 214 of file gamehandler.cpp.

Referenced by UpdateGameDB().

void GameHandler::UpdateGameDB ( GameHandler handler  ) 

Definition at line 392 of file gamehandler.cpp.

Referenced by processGames().

void GameHandler::VerifyGameDB ( GameHandler handler  ) 

Definition at line 482 of file gamehandler.cpp.

Referenced by processGames().

void GameHandler::clearAllGameData ( void   )  [static]

Definition at line 578 of file gamehandler.cpp.

Referenced by GameCallback().

int GameHandler::buildFileCount ( QString  directory,
GameHandler handler 
) [static]

Definition at line 531 of file gamehandler.cpp.

Referenced by processGames().

void GameHandler::buildFileList ( QString  directory,
GameHandler handler,
MythProgressDialog pdial,
int *  filecount 
)

Definition at line 606 of file gamehandler.cpp.

Referenced by processGames().

void GameHandler::processGames ( GameHandler handler  ) 

Definition at line 663 of file gamehandler.cpp.

Referenced by processAllGames().

void GameHandler::processAllGames ( void   )  [static]

Definition at line 728 of file gamehandler.cpp.

Referenced by GameCallback().

void GameHandler::registerHandler ( GameHandler handler  )  [static]

Definition at line 885 of file gamehandler.cpp.

Referenced by checkHandlers().

void GameHandler::Launchgame ( RomInfo romdata,
QString  systemname 
) [static]

Definition at line 784 of file gamehandler.cpp.

Referenced by GameTree::handleTreeListSelection().

static void GameHandler::EditSettings ( RomInfo romdata  )  [static]

static void GameHandler::EditSystemSettings ( RomInfo romdata  )  [static]

RomInfo * GameHandler::CreateRomInfo ( RomInfo parent  )  [static]

Definition at line 877 of file gamehandler.cpp.

Referenced by GameTreeItem::createChild().

void GameHandler::setRebuild ( bool  setrebuild  )  [inline]

Definition at line 94 of file gamehandler.h.

Referenced by processGames().

bool GameHandler::needRebuild ( void   )  const [inline]

Definition at line 95 of file gamehandler.h.

Referenced by processAllGames().

static RomInfo* GameHandler::create_rominfo ( RomInfo parent  )  [static]

int GameHandler::SpanDisks (  )  const [inline]

Definition at line 98 of file gamehandler.h.

Referenced by Launchgame().

QString GameHandler::SystemName (  )  const [inline]

QString GameHandler::SystemCmdLine (  )  const [inline]

Definition at line 100 of file gamehandler.h.

Referenced by Launchgame(), and processGames().

QString GameHandler::SystemRomPath (  )  const [inline]

Definition at line 101 of file gamehandler.h.

Referenced by processGames().

QString GameHandler::SystemWorkingPath (  )  const [inline]

Definition at line 102 of file gamehandler.h.

Referenced by Launchgame().

QString GameHandler::SystemScreenShots (  )  const [inline]

Definition at line 103 of file gamehandler.h.

uint GameHandler::GamePlayerID (  )  const [inline]

Definition at line 104 of file gamehandler.h.

QString GameHandler::GameType (  )  const [inline]

Definition at line 105 of file gamehandler.h.

Referenced by GetMetadata(), Launchgame(), processAllGames(), processGames(), and UpdateGameDB().

GameHandler * GameHandler::GetHandler ( RomInfo rominfo  )  [static, protected]

Definition at line 750 of file gamehandler.cpp.

Referenced by CreateRomInfo(), and Launchgame().

GameHandler * GameHandler::GetHandlerByName ( QString  systemname  )  [static, protected]

Definition at line 767 of file gamehandler.cpp.

Referenced by Launchgame().


Member Data Documentation

Definition at line 111 of file gamehandler.h.

Referenced by GameHandler(), needRebuild(), and setRebuild().

int GameHandler::spandisks [protected]

Definition at line 112 of file gamehandler.h.

Referenced by SpanDisks(), UpdateGameCounts(), and updateSettings().

QString GameHandler::systemname [protected]

Definition at line 113 of file gamehandler.h.

Referenced by newHandler(), and SystemName().

QString GameHandler::rompath [protected]

Definition at line 114 of file gamehandler.h.

Referenced by SystemRomPath(), and updateSettings().

QString GameHandler::commandline [protected]

Definition at line 115 of file gamehandler.h.

Referenced by SystemCmdLine(), and updateSettings().

QString GameHandler::workingpath [protected]

Definition at line 116 of file gamehandler.h.

Referenced by SystemWorkingPath(), and updateSettings().

QString GameHandler::screenshots [protected]

Definition at line 117 of file gamehandler.h.

Referenced by SystemScreenShots(), and updateSettings().

Definition at line 118 of file gamehandler.h.

Referenced by GamePlayerID(), and updateSettings().

QString GameHandler::gametype [protected]

Definition at line 119 of file gamehandler.h.

Referenced by GameType(), and updateSettings().

QStringList GameHandler::validextensions [protected]

Definition at line 120 of file gamehandler.h.

Referenced by buildFileCount(), buildFileList(), and updateSettings().

Definition at line 122 of file gamehandler.h.

Referenced by GetMetadata(), InitMetaDataMap(), and processGames().

Definition at line 123 of file gamehandler.h.

Referenced by buildFileList(), processGames(), UpdateGameDB(), and VerifyGameDB().

Definition at line 125 of file gamehandler.h.

Referenced by GameHandler(), and promptForRemoval().

Definition at line 126 of file gamehandler.h.

Referenced by GameHandler(), and promptForRemoval().

GameHandler * GameHandler::newInstance = 0 [static, private]

Definition at line 129 of file gamehandler.h.

Referenced by newHandler().


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

Generated on Sat Dec 18 05:16:03 2010 for MythTV by  doxygen 1.5.5