MetadataDownload Class Reference

#include <metadatadownload.h>

Inheritance diagram for MetadataDownload:
MThread

List of all members.

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)
MetadataLookupmoreWork ()

Private Attributes

QObject * m_parent
MetadataLookupList m_lookupList
QMutex m_mutex

Detailed Description

Definition at line 35 of file metadatadownload.h.


Constructor & Destructor Documentation

MetadataDownload::MetadataDownload ( QObject *  parent  ) 

Definition at line 24 of file metadatadownload.cpp.

MetadataDownload::~MetadataDownload (  ) 

Definition at line 30 of file metadatadownload.cpp.


Member Function Documentation

void MetadataDownload::addLookup ( MetadataLookup lookup  ) 
void MetadataDownload::prependLookup ( MetadataLookup lookup  ) 
void MetadataDownload::cancel (  ) 
QString MetadataDownload::GetMovieGrabber (  )  [static]

Definition at line 245 of file metadatadownload.cpp.

Referenced by handleMovie(), and MovieGrabberWorks().

QString MetadataDownload::GetTelevisionGrabber (  )  [static]
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.

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 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]
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().


Member Data Documentation

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().


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