MythTV  master
Public Member Functions | Static 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 () override
 
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 (const QString &title, const QString &subtitle, const QString &inetref, int season, int episode, const QString &grabber, bool allowgeneric=false)
 
MetadataLookupList SynchronousLookup (MetadataLookup *lookup)
 
void VideoScan ()
 
void VideoScan (const QStringList &hosts)
 
bool IsRunning ()
 

Static Public Member Functions

static bool VideoGrabbersFunctional ()
 

Private Member Functions

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

Private Attributes

MetadataDownloadm_lookupthread {nullptr}
 
MetadataImageDownloadm_imagedownload {nullptr}
 
VideoScannerThreadm_videoscanner {nullptr}
 
VideoMetadataListManagerm_mlm {nullptr}
 
bool m_scanning {false}
 
MetadataLookupList m_returnList
 
bool m_sync {false}
 

Detailed Description

Definition at line 85 of file metadatafactory.h.

Constructor & Destructor Documentation

◆ MetadataFactory()

MetadataFactory::MetadataFactory ( QObject *  parent)
explicit

Definition at line 78 of file metadatafactory.cpp.

◆ ~MetadataFactory()

MetadataFactory::~MetadataFactory ( )
override

Definition at line 88 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 167 of file metadatafactory.cpp.

◆ Lookup() [3/4]

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

Definition at line 111 of file metadatafactory.cpp.

◆ Lookup() [4/4]

void MetadataFactory::Lookup ( MetadataLookup lookup)

Definition at line 197 of file metadatafactory.cpp.

◆ SynchronousLookup() [1/2]

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

Definition at line 208 of file metadatafactory.cpp.

◆ SynchronousLookup() [2/2]

MetadataLookupList MetadataFactory::SynchronousLookup ( MetadataLookup lookup)

Definition at line 239 of file metadatafactory.cpp.

◆ VideoScan() [1/2]

void MetadataFactory::VideoScan ( )

Definition at line 268 of file metadatafactory.cpp.

Referenced by MainServer::HandleScanVideos().

◆ VideoScan() [2/2]

void MetadataFactory::VideoScan ( const QStringList &  hosts)

Definition at line 284 of file metadatafactory.cpp.

◆ IsRunning()

bool MetadataFactory::IsRunning ( )
inline

Definition at line 113 of file metadatafactory.h.

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

◆ VideoGrabbersFunctional()

bool MetadataFactory::VideoGrabbersFunctional ( )
static

Definition at line 262 of file metadatafactory.cpp.

Referenced by LookerUpper::AllOK().

◆ customEvent()

void MetadataFactory::customEvent ( QEvent *  levent)
overrideprivate

Definition at line 521 of file metadatafactory.cpp.

◆ OnMultiResult()

void MetadataFactory::OnMultiResult ( const MetadataLookupList list)
private

Definition at line 296 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnSingleResult()

void MetadataFactory::OnSingleResult ( MetadataLookup lookup)
private

Definition at line 306 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnNoResult()

void MetadataFactory::OnNoResult ( MetadataLookup lookup)
private

Definition at line 367 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnImageResult()

void MetadataFactory::OnImageResult ( MetadataLookup lookup)
private

Definition at line 377 of file metadatafactory.cpp.

Referenced by customEvent().

◆ OnVideoResult()

void MetadataFactory::OnVideoResult ( MetadataLookup lookup)
private

Definition at line 387 of file metadatafactory.cpp.

Referenced by customEvent(), and OnSingleResult().

Member Data Documentation

◆ m_lookupthread

MetadataDownload* MetadataFactory::m_lookupthread {nullptr}
private

Definition at line 130 of file metadatafactory.h.

Referenced by Lookup(), MetadataFactory(), SynchronousLookup(), and ~MetadataFactory().

◆ m_imagedownload

MetadataImageDownload* MetadataFactory::m_imagedownload {nullptr}
private

Definition at line 131 of file metadatafactory.h.

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

◆ m_videoscanner

VideoScannerThread* MetadataFactory::m_videoscanner {nullptr}
private

Definition at line 133 of file metadatafactory.h.

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

◆ m_mlm

VideoMetadataListManager* MetadataFactory::m_mlm {nullptr}
private

Definition at line 134 of file metadatafactory.h.

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

◆ m_scanning

bool MetadataFactory::m_scanning {false}
private

Definition at line 135 of file metadatafactory.h.

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

◆ m_returnList

MetadataLookupList MetadataFactory::m_returnList
private

Definition at line 138 of file metadatafactory.h.

Referenced by customEvent(), and SynchronousLookup().

◆ m_sync

bool MetadataFactory::m_sync {false}
private

Definition at line 139 of file metadatafactory.h.

Referenced by customEvent(), and SynchronousLookup().


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