#include <videoscan.h>
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 |
| VideoMetadataListManager * | m_dbmetadata |
| MythUIProgressDialog * | m_dialog |
| QList< int > | m_addList |
| QList< int > | m_movList |
| QList< int > | m_delList |
| bool | m_DBDataChanged |
Definition at line 59 of file videoscan.h.
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.
| VideoScannerThread::VideoScannerThread | ( | QObject * | parent | ) |
Definition at line 75 of file videoscan.cpp.
| VideoScannerThread::~VideoScannerThread | ( | ) |
Definition at line 86 of file videoscan.cpp.
| void VideoScannerThread::run | ( | void | ) | [virtual] |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
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().
QObject* VideoScannerThread::m_parent [private] |
Definition at line 96 of file videoscan.h.
Referenced by run(), and VideoScannerThread().
bool VideoScannerThread::m_ListUnknown [private] |
Definition at line 98 of file videoscan.h.
Referenced by buildFileList(), and VideoScannerThread().
bool VideoScannerThread::m_RemoveAll [private] |
Definition at line 99 of file videoscan.h.
Referenced by removeOrphans().
bool VideoScannerThread::m_KeepAll [private] |
Definition at line 100 of file videoscan.h.
Referenced by removeOrphans().
bool VideoScannerThread::m_HasGUI [private] |
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.
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().
MythUIProgressDialog* VideoScannerThread::m_dialog [private] |
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().
bool VideoScannerThread::m_DBDataChanged [private] |
Definition at line 112 of file videoscan.h.
Referenced by run().
1.6.3