MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MetadataFactory Class Reference

#include <metadatafactory.h>

Inheritance diagram for MetadataFactory:
Inheritance graph
[legend]
Collaboration diagram for MetadataFactory:
Collaboration graph
[legend]

Public Member Functions

 MetadataFactory (QObject *parent)
 
 ~MetadataFactory ()
 
void Lookup (ProgramInfo *pginfo, bool automatic=true, bool getimages=true, bool allowgeneric=false)
 
void Lookup (VideoMetadata *metadata, bool automatic=true, bool getimages=true, bool allowgeneric=false)
 
void Lookup (RecordingRule *recrule, bool automatic=true, bool getimages=true, bool allowgeneric=false)
 
void Lookup (MetadataLookup *lookup)
 
MetadataLookupList SynchronousLookup (QString title, QString subtitle, QString inetref, int season, int episode, QString grabber, bool allowgeneric=false)
 
MetadataLookupList SynchronousLookup (MetadataLookup *lookup)
 
void VideoScan ()
 
void VideoScan (QStringList hosts)
 
bool IsRunning ()
 
bool VideoGrabbersFunctional ()
 

Private Member Functions

void customEvent (QEvent *levent) override
 
void OnMultiResult (MetadataLookupList list)
 
void OnSingleResult (MetadataLookup *lookup)
 
void OnNoResult (MetadataLookup *lookup)
 
void OnImageResult (MetadataLookup *lookup)
 
void OnVideoResult (MetadataLookup *lookup)
 

Private Attributes

MetadataDownloadm_lookupthread
 
MetadataImageDownloadm_imagedownload
 
VideoScannerThreadm_videoscanner
 
VideoMetadataListManagerm_mlm
 
bool m_scanning
 
MetadataLookupList m_returnList
 
bool m_sync
 

Detailed Description

Definition at line 96 of file metadatafactory.h.

Constructor & Destructor Documentation

◆ MetadataFactory()

MetadataFactory::MetadataFactory ( QObject *  parent)
explicit

Definition at line 51 of file metadatafactory.cpp.

◆ ~MetadataFactory()

MetadataFactory::~MetadataFactory ( )

Definition at line 62 of file metadatafactory.cpp.

Member Function Documentation

◆ Lookup() [1/4]

void MetadataFactory::Lookup ( ProgramInfo pginfo,
bool  automatic = true,
bool  getimages = true,
bool  allowgeneric = false 
)

◆ Lookup() [2/4]

void MetadataFactory::Lookup ( VideoMetadata metadata,
bool  automatic = true,
bool  getimages = true,
bool  allowgeneric = false 
)

Definition at line 141 of file metadatafactory.cpp.

◆ Lookup() [3/4]

void MetadataFactory::Lookup ( RecordingRule recrule,
bool  automatic = true,
bool  getimages = true,
bool  allowgeneric = false 
)

Definition at line 85 of file metadatafactory.cpp.

◆ Lookup() [4/4]

void MetadataFactory::Lookup ( MetadataLookup lookup)

Definition at line 171 of file metadatafactory.cpp.

◆ SynchronousLookup() [1/2]

META_PUBLIC MetadataLookupList MetadataFactory::SynchronousLookup ( QString  title,
QString  subtitle,
QString  inetref,
int  season,
int  episode,
QString  grabber,
bool  allowgeneric = false 
)

Definition at line 182 of file metadatafactory.cpp.

Referenced by Video::LookupVideo().

◆ SynchronousLookup() [2/2]

MetadataLookupList MetadataFactory::SynchronousLookup ( MetadataLookup lookup)

Definition at line 213 of file metadatafactory.cpp.

◆ VideoScan() [1/2]

void MetadataFactory::VideoScan ( )

Definition at line 242 of file metadatafactory.cpp.

Referenced by MainServer::HandleScanVideos().

◆ VideoScan() [2/2]

void MetadataFactory::VideoScan ( QStringList  hosts)

Definition at line 258 of file metadatafactory.cpp.

◆ IsRunning()

bool MetadataFactory::IsRunning ( void  )
inline

Definition at line 124 of file metadatafactory.h.

Referenced by LookerUpper::StillWorking(), and VideoScan().

◆ VideoGrabbersFunctional()

bool MetadataFactory::VideoGrabbersFunctional ( )

Definition at line 236 of file metadatafactory.cpp.

Referenced by LookerUpper::AllOK().

◆ customEvent()

void MetadataFactory::customEvent ( QEvent *  levent)
overrideprivate

Definition at line 508 of file metadatafactory.cpp.

◆ OnMultiResult()

void MetadataFactory::OnMultiResult ( MetadataLookupList  list)
private

Definition at line 270 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnSingleResult()

void MetadataFactory::OnSingleResult ( MetadataLookup lookup)
private

Definition at line 280 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnNoResult()

void MetadataFactory::OnNoResult ( MetadataLookup lookup)
private

Definition at line 341 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnImageResult()

void MetadataFactory::OnImageResult ( MetadataLookup lookup)
private

Definition at line 351 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnVideoResult()

void MetadataFactory::OnVideoResult ( MetadataLookup lookup)
private

Definition at line 361 of file metadatafactory.cpp.

Referenced by customEvent(), and OnSingleResult().

Member Data Documentation

◆ m_lookupthread

MetadataDownload* MetadataFactory::m_lookupthread
private

◆ m_imagedownload

MetadataImageDownload* MetadataFactory::m_imagedownload
private

Definition at line 142 of file metadatafactory.h.

Referenced by MetadataFactory(), OnSingleResult(), and ~MetadataFactory().

◆ m_videoscanner

VideoScannerThread* MetadataFactory::m_videoscanner
private

Definition at line 144 of file metadatafactory.h.

Referenced by customEvent(), MetadataFactory(), VideoScan(), and ~MetadataFactory().

◆ m_mlm

VideoMetadataListManager* MetadataFactory::m_mlm
private

Definition at line 145 of file metadatafactory.h.

Referenced by customEvent(), MetadataFactory(), and ~MetadataFactory().

◆ m_scanning

bool MetadataFactory::m_scanning
private

Definition at line 146 of file metadatafactory.h.

Referenced by customEvent(), OnSingleResult(), and VideoScan().

◆ m_returnList

MetadataLookupList MetadataFactory::m_returnList
private

Definition at line 149 of file metadatafactory.h.

Referenced by customEvent(), and SynchronousLookup().

◆ m_sync

bool MetadataFactory::m_sync
private

Definition at line 150 of file metadatafactory.h.

Referenced by customEvent(), and SynchronousLookup().


The documentation for this class was generated from the following files: