Skip to content

Commit

Permalink
MetadataFactory: Add a "isRunning" method.
Browse files Browse the repository at this point in the history
Check to see if any of the threads are currently working.  Bumps library version because of the new public method (as I should have bumped it when I added the class, but forgot).
  • Loading branch information
Robert McNamara committed Jul 1, 2011
1 parent 9d3abb8 commit 8f8db87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mythtv/libs/libmythmetadata/metadatafactory.h
Expand Up @@ -3,14 +3,13 @@

// Needed to perform a lookup
#include "metadatacommon.h"
#include "metadataimagedownload.h"
#include "metadatadownload.h"

// Symbol visibility
#include "mythmetaexp.h"

class VideoMetadata;
class MetadataDownload;
class MetadataImageDownload;

class META_PUBLIC MetadataFactoryMultiResult : public QEvent
{
Expand Down Expand Up @@ -61,6 +60,9 @@ class META_PUBLIC MetadataFactory : public QObject
void Lookup(VideoMetadata *metadata, bool automatic = true,
bool getimages = true);

bool IsRunning() { return m_lookupthread->isRunning() ||
m_imagedownload->isRunning(); };

private:

void customEvent(QEvent *levent);
Expand Down

0 comments on commit 8f8db87

Please sign in to comment.