GameScannerThread Class Reference

#include <gamescan.h>

Inheritance diagram for GameScannerThread:
MThread

List of all members.

Public Member Functions

 GameScannerThread (QObject *parent)
 ~GameScannerThread ()
virtual void run (void)
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
void SetHandlers (QList< GameHandler * > handlers)
void SetProgressDialog (MythUIProgressDialog *dialog)
bool getDataChanged ()

Private Member Functions

void removeOrphan (const int id)
void verifyFiles ()
void updateDB ()
bool buildFileList ()
void SendProgressEvent (uint progress, uint total=0, QString message=QString())

Private Attributes

QObject * m_parent
bool m_HasGUI
QList< GameHandler * > m_handlers
RomFileInfoList m_files
QList< uintm_remove
QList< RomInfo * > m_dbgames
MythUIProgressDialogm_dialog
bool m_DBDataChanged

Detailed Description

Definition at line 31 of file gamescan.h.


Constructor & Destructor Documentation

GameScannerThread::GameScannerThread ( QObject *  parent  ) 

Definition at line 21 of file gamescan.cpp.

GameScannerThread::~GameScannerThread (  ) 

Definition at line 28 of file gamescan.cpp.


Member Function Documentation

void GameScannerThread::run ( void   )  [virtual]

Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.

Note:
If you override this method you must call RunProlog before you do any work and RunEpilog before you exit the run method.

Reimplemented from MThread.

Definition at line 32 of file gamescan.cpp.

void GameScannerThread::SetHandlers ( QList< GameHandler * >  handlers  )  [inline]

Definition at line 39 of file gamescan.h.

Referenced by GameScanner::doScan().

void GameScannerThread::SetProgressDialog ( MythUIProgressDialog dialog  )  [inline]

Definition at line 40 of file gamescan.h.

Referenced by GameScanner::doScan().

bool GameScannerThread::getDataChanged (  )  [inline]

Definition at line 42 of file gamescan.h.

Referenced by GameScanner::finishedScan().

void GameScannerThread::removeOrphan ( const int  id  )  [private]

Definition at line 50 of file gamescan.cpp.

Referenced by updateDB().

void GameScannerThread::verifyFiles (  )  [private]

Definition at line 61 of file gamescan.cpp.

Referenced by run().

void GameScannerThread::updateDB (  )  [private]

Definition at line 105 of file gamescan.cpp.

Referenced by run().

bool GameScannerThread::buildFileList (  )  [private]

Definition at line 136 of file gamescan.cpp.

Referenced by run().

void GameScannerThread::SendProgressEvent ( uint  progress,
uint  total = 0,
QString  message = QString() 
) [private]

Definition at line 183 of file gamescan.cpp.

Referenced by buildFileList(), updateDB(), and verifyFiles().


Member Data Documentation

QObject* GameScannerThread::m_parent [private]

Definition at line 56 of file gamescan.h.

Definition at line 57 of file gamescan.h.

Referenced by buildFileList(), updateDB(), and verifyFiles().

Definition at line 59 of file gamescan.h.

Referenced by buildFileList(), and SetHandlers().

Definition at line 61 of file gamescan.h.

Referenced by buildFileList(), run(), updateDB(), and verifyFiles().

Definition at line 62 of file gamescan.h.

Referenced by run(), updateDB(), and verifyFiles().

Definition at line 63 of file gamescan.h.

Referenced by run(), and verifyFiles().

Definition at line 65 of file gamescan.h.

Referenced by SendProgressEvent(), and SetProgressDialog().

Definition at line 67 of file gamescan.h.

Referenced by getDataChanged(), and updateDB().


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