VideoScannerThread Class Reference

#include <videoscan.h>

Inheritance diagram for VideoScannerThread:
MThread

List of all members.

Classes

struct  CheckStruct

Public Member Functions

 VideoScannerThread (QObject *parent)
 ~VideoScannerThread ()
void run ()
 Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
void SetDirs (QStringList dirs)
void SetHosts (const QStringList &hosts)
void SetProgressDialog (MythUIProgressDialog *dialog)
QStringList GetOfflineSGHosts (void)
bool getDataChanged ()
void ResetCounts ()

Private Types

typedef std::vector< std::pair
< unsigned int, QString > > 
PurgeList
typedef std::map< QString,
CheckStruct
FileCheckList

Private Member Functions

void removeOrphans (unsigned int id, const QString &filename)
void verifyFiles (FileCheckList &files, PurgeList &remove)
bool updateDB (const FileCheckList &add, const PurgeList &remove)
bool buildFileList (const QString &directory, const QStringList &imageExtensions, FileCheckList &filelist)
void SendProgressEvent (uint progress, uint total=0, QString messsage=QString())

Private Attributes

QObject * m_parent
bool m_ListUnknown
bool m_RemoveAll
bool m_KeepAll
bool m_HasGUI
QStringList m_directories
QStringList m_liveSGHosts
QStringList m_offlineSGHosts
VideoMetadataListManagerm_dbmetadata
MythUIProgressDialogm_dialog
QList< int > m_addList
QList< int > m_movList
QList< int > m_delList
bool m_DBDataChanged

Detailed Description

Definition at line 59 of file videoscan.h.


Member Typedef Documentation

typedef std::vector<std::pair<unsigned int, QString> > VideoScannerThread::PurgeList [private]

Definition at line 82 of file videoscan.h.

typedef std::map<QString, CheckStruct> VideoScannerThread::FileCheckList [private]

Definition at line 83 of file videoscan.h.


Constructor & Destructor Documentation

VideoScannerThread::VideoScannerThread ( QObject *  parent  ) 

Definition at line 75 of file videoscan.cpp.

VideoScannerThread::~VideoScannerThread (  ) 

Definition at line 86 of file videoscan.cpp.


Member Function Documentation

void VideoScannerThread::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 147 of file videoscan.cpp.

void VideoScannerThread::SetDirs ( QStringList  dirs  ) 

Definition at line 99 of file videoscan.cpp.

Referenced by VideoScanner::doScan(), and MetadataFactory::VideoScan().

void VideoScannerThread::SetHosts ( const QStringList &  hosts  ) 

Definition at line 91 of file videoscan.cpp.

Referenced by VideoScanner::doScan(), and MetadataFactory::VideoScan().

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

Definition at line 68 of file videoscan.h.

Referenced by VideoScanner::doScan().

QStringList VideoScannerThread::GetOfflineSGHosts ( void   )  [inline]

Definition at line 69 of file videoscan.h.

Referenced by VideoScanner::finishedScan().

bool VideoScannerThread::getDataChanged (  )  [inline]

Definition at line 70 of file videoscan.h.

Referenced by VideoScanner::finishedScan().

void VideoScannerThread::ResetCounts (  )  [inline]

Definition at line 72 of file videoscan.h.

Referenced by MetadataFactory::customEvent().

void VideoScannerThread::removeOrphans ( unsigned int  id,
const QString &  filename 
) [private]

Definition at line 223 of file videoscan.cpp.

Referenced by updateDB().

void VideoScannerThread::verifyFiles ( FileCheckList files,
PurgeList remove 
) [private]

Definition at line 239 of file videoscan.cpp.

Referenced by run().

bool VideoScannerThread::updateDB ( const FileCheckList add,
const PurgeList remove 
) [private]

Definition at line 297 of file videoscan.cpp.

Referenced by run().

bool VideoScannerThread::buildFileList ( const QString &  directory,
const QStringList &  imageExtensions,
FileCheckList filelist 
) [private]

Definition at line 380 of file videoscan.cpp.

Referenced by run().

void VideoScannerThread::SendProgressEvent ( uint  progress,
uint  total = 0,
QString  messsage = QString() 
) [private]

Definition at line 399 of file videoscan.cpp.

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


Member Data Documentation

QObject* VideoScannerThread::m_parent [private]

Definition at line 96 of file videoscan.h.

Referenced by run(), and VideoScannerThread().

Definition at line 98 of file videoscan.h.

Referenced by buildFileList(), and VideoScannerThread().

Definition at line 99 of file videoscan.h.

Referenced by removeOrphans().

Definition at line 100 of file videoscan.h.

Referenced by removeOrphans().

Definition at line 101 of file videoscan.h.

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

QStringList VideoScannerThread::m_directories [private]

Definition at line 102 of file videoscan.h.

Referenced by run(), and SetDirs().

QStringList VideoScannerThread::m_liveSGHosts [private]

Definition at line 103 of file videoscan.h.

Referenced by run(), SetDirs(), SetHosts(), and verifyFiles().

QStringList VideoScannerThread::m_offlineSGHosts [private]

Definition at line 104 of file videoscan.h.

Referenced by SetDirs(), and verifyFiles().

Definition at line 106 of file videoscan.h.

Referenced by removeOrphans(), run(), verifyFiles(), VideoScannerThread(), and ~VideoScannerThread().

Definition at line 107 of file videoscan.h.

Referenced by SendProgressEvent().

QList<int> VideoScannerThread::m_addList [private]

Definition at line 109 of file videoscan.h.

Referenced by run(), and updateDB().

QList<int> VideoScannerThread::m_movList [private]

Definition at line 110 of file videoscan.h.

Referenced by run(), and updateDB().

QList<int> VideoScannerThread::m_delList [private]

Definition at line 111 of file videoscan.h.

Referenced by run(), and updateDB().

Definition at line 112 of file videoscan.h.

Referenced by run().


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:31 2012 for MythTV by  doxygen 1.6.3