#include <metadatadownload.h>
Public Member Functions | |
| MetadataDownload (QObject *parent) | |
| ~MetadataDownload () | |
| void | addLookup (MetadataLookup *lookup) |
| void | prependLookup (MetadataLookup *lookup) |
| void | cancel () |
| bool | runGrabberTest (const QString &grabberpath) |
| bool | MovieGrabberWorks () |
| bool | TelevisionGrabberWorks () |
Static Public Member Functions | |
| static QString | GetMovieGrabber () |
| static QString | GetTelevisionGrabber () |
| static QString | GetGameGrabber () |
Protected Member Functions | |
| void | run () |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
| QString | getMXMLPath (QString filename) |
| QString | getNFOPath (QString filename) |
Private Member Functions | |
| MetadataLookupList | handleMovie (MetadataLookup *lookup) |
| MetadataLookupList | handleTelevision (MetadataLookup *lookup) |
| MetadataLookupList | handleVideoUndetermined (MetadataLookup *lookup) |
| MetadataLookupList | handleRecordingGeneric (MetadataLookup *lookup) |
| MetadataLookupList | handleGame (MetadataLookup *lookup) |
| bool | findBestMatch (MetadataLookupList list, QString originaltitle) |
| MetadataLookupList | runGrabber (QString cmd, QStringList args, MetadataLookup *lookup, bool passseas=true) |
| MetadataLookupList | readMXML (QString MXMLpath, MetadataLookup *lookup, bool passseas=true) |
| MetadataLookupList | readNFO (QString NFOpath, MetadataLookup *lookup) |
| MetadataLookup * | moreWork () |
Private Attributes | |
| QObject * | m_parent |
| MetadataLookupList | m_lookupList |
| QMutex | m_mutex |
Definition at line 35 of file metadatadownload.h.
| MetadataDownload::MetadataDownload | ( | QObject * | parent | ) |
Definition at line 24 of file metadatadownload.cpp.
| MetadataDownload::~MetadataDownload | ( | ) |
Definition at line 30 of file metadatadownload.cpp.
| void MetadataDownload::addLookup | ( | MetadataLookup * | lookup | ) |
Definition at line 36 of file metadatadownload.cpp.
Referenced by MetadataOptions::FindNetArt(), EditMetadataDialog::FindNetArt(), GameUI::gameSearch(), MetadataFactory::Lookup(), and MetadataFactory::SynchronousLookup().
| void MetadataDownload::prependLookup | ( | MetadataLookup * | lookup | ) |
Definition at line 46 of file metadatadownload.cpp.
Referenced by findBestMatch(), GameUI::gameSearch(), MetadataFactory::Lookup(), GameUI::OnGameSearchListSelection(), run(), and MetadataFactory::SynchronousLookup().
| void MetadataDownload::cancel | ( | ) |
Definition at line 56 of file metadatadownload.cpp.
Referenced by ~MetadataDownload(), MetadataFactory::~MetadataFactory(), and MetadataOptions::~MetadataOptions().
| QString MetadataDownload::GetMovieGrabber | ( | ) | [static] |
Definition at line 245 of file metadatadownload.cpp.
Referenced by handleMovie(), and MovieGrabberWorks().
| QString MetadataDownload::GetTelevisionGrabber | ( | ) | [static] |
Definition at line 255 of file metadatadownload.cpp.
Referenced by handleRecordingGeneric(), handleTelevision(), handleVideoUndetermined(), and TelevisionGrabberWorks().
| QString MetadataDownload::GetGameGrabber | ( | ) | [static] |
Definition at line 265 of file metadatadownload.cpp.
Referenced by handleGame().
| bool MetadataDownload::runGrabberTest | ( | const QString & | grabberpath | ) |
Definition at line 275 of file metadatadownload.cpp.
Referenced by MovieGrabberWorks(), and TelevisionGrabberWorks().
| bool MetadataDownload::MovieGrabberWorks | ( | ) |
Definition at line 291 of file metadatadownload.cpp.
Referenced by MetadataFactory::VideoGrabbersFunctional().
| bool MetadataDownload::TelevisionGrabberWorks | ( | ) |
Definition at line 303 of file metadatadownload.cpp.
Referenced by MetadataFactory::VideoGrabbersFunctional().
| void MetadataDownload::run | ( | void | ) | [protected, 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 65 of file metadatadownload.cpp.
| QString MetadataDownload::getMXMLPath | ( | QString | filename | ) | [protected] |
Definition at line 668 of file metadatadownload.cpp.
Referenced by handleMovie().
| QString MetadataDownload::getNFOPath | ( | QString | filename | ) | [protected] |
Definition at line 702 of file metadatadownload.cpp.
Referenced by handleMovie().
| MetadataLookupList MetadataDownload::handleMovie | ( | MetadataLookup * | lookup | ) | [private] |
Definition at line 477 of file metadatadownload.cpp.
Referenced by run().
| MetadataLookupList MetadataDownload::handleTelevision | ( | MetadataLookup * | lookup | ) | [private] |
Definition at line 526 of file metadatadownload.cpp.
Referenced by handleRecordingGeneric(), and run().
| MetadataLookupList MetadataDownload::handleVideoUndetermined | ( | MetadataLookup * | lookup | ) | [private] |
Definition at line 586 of file metadatadownload.cpp.
Referenced by run().
| MetadataLookupList MetadataDownload::handleRecordingGeneric | ( | MetadataLookup * | lookup | ) | [private] |
Definition at line 621 of file metadatadownload.cpp.
Referenced by run().
| MetadataLookupList MetadataDownload::handleGame | ( | MetadataLookup * | lookup | ) | [private] |
Definition at line 444 of file metadatadownload.cpp.
Referenced by run().
| bool MetadataDownload::findBestMatch | ( | MetadataLookupList | list, | |
| QString | originaltitle | |||
| ) | [private] |
Definition at line 169 of file metadatadownload.cpp.
Referenced by run().
| MetadataLookupList MetadataDownload::runGrabber | ( | QString | cmd, | |
| QStringList | args, | |||
| MetadataLookup * | lookup, | |||
| bool | passseas = true | |||
| ) | [private] |
Definition at line 214 of file metadatadownload.cpp.
Referenced by handleGame(), handleMovie(), handleRecordingGeneric(), handleTelevision(), and handleVideoUndetermined().
| MetadataLookupList MetadataDownload::readMXML | ( | QString | MXMLpath, | |
| MetadataLookup * | lookup, | |||
| bool | passseas = true | |||
| ) | [private] |
Definition at line 315 of file metadatadownload.cpp.
Referenced by handleMovie().
| MetadataLookupList MetadataDownload::readNFO | ( | QString | NFOpath, | |
| MetadataLookup * | lookup | |||
| ) | [private] |
Definition at line 381 of file metadatadownload.cpp.
Referenced by handleMovie().
| MetadataLookup * MetadataDownload::moreWork | ( | ) | [private] |
Definition at line 159 of file metadatadownload.cpp.
Referenced by run().
QObject* MetadataDownload::m_parent [private] |
Definition at line 81 of file metadatadownload.h.
Referenced by cancel(), MetadataDownload(), and run().
Definition at line 82 of file metadatadownload.h.
Referenced by addLookup(), cancel(), moreWork(), and prependLookup().
QMutex MetadataDownload::m_mutex [private] |
Definition at line 83 of file metadatadownload.h.
Referenced by addLookup(), cancel(), moreWork(), and prependLookup().
1.6.3