MythTV  master
Classes | Typedefs | Enumerations | Functions
metadatacommon.h File Reference
#include <QList>
#include <QPair>
#include <QMultiMap>
#include <QString>
#include <QStringList>
#include <QDateTime>
#include <QDate>
#include <QDomElement>
#include <QEvent>
#include "mythtypes.h"
#include "mythmetaexp.h"
#include "metadataimagehelper.h"
#include "referencecounterlist.h"
#include "metadatagrabber.h"
Include dependency graph for metadatacommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PersonInfo
 
class  MetadataLookup
 

Typedefs

typedef QMap< VideoArtworkType, ArtworkInfoDownloadMap
 
typedef QMultiMap< PeopleType, PersonInfoPeopleMap
 
typedef RefCountedList< MetadataLookupMetadataLookupList
 

Enumerations

enum  LookupStep { kLookupSearch = 0, kLookupData = 1, kLookupCollection = 2 }
 
enum  MetadataType { kMetadataVideo = 0, kMetadataRecording = 1, kMetadataMusic = 2, kMetadataGame = 3 }
 
enum  LookupType {
  kProbableTelevision = 0, kProbableGenericTelevision = 1, kProbableMovie = 2, kUnknownVideo = 3,
  kProbableMusic = 4, kProbableGame = 5
}
 
enum  VideoContentType {
  kContentMovie = 0, kContentTelevision = 1, kContentAdult = 2, kContentMusicVideo = 3,
  kContentHomeMovie = 4, kContentUnknown = 5
}
 
enum  PeopleType {
  kPersonActor = 0, kPersonAuthor = 1, kPersonDirector = 2, kPersonProducer = 3,
  kPersonExecProducer = 4, kPersonCinematographer = 5, kPersonComposer = 6, kPersonEditor = 7,
  kPersonCastingDirector = 8, kPersonArtist = 9, kPersonAlbumArtist = 10, kPersonGuestStar = 11
}
 

Functions

META_PUBLIC QDomDocument CreateMetadataXML (MetadataLookupList list)
 
META_PUBLIC QDomDocument CreateMetadataXML (MetadataLookup *lookup)
 
META_PUBLIC QDomDocument CreateMetadataXML (ProgramInfo *pginfo)
 
META_PUBLIC void CreateMetadataXMLItem (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
 
META_PUBLIC void AddCertifications (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
 
META_PUBLIC void AddCategories (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
 
META_PUBLIC void AddStudios (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
 
META_PUBLIC void AddCountries (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
 
META_PUBLIC MetadataLookupLookupFromProgramInfo (ProgramInfo *pginfo)
 
META_PUBLIC MetadataLookupParseMetadataItem (const QDomElement &item, MetadataLookup *lookup, bool passseas=true)
 
META_PUBLIC MetadataLookupParseMetadataMovieNFO (const QDomElement &item, MetadataLookup *lookup)
 
META_PUBLIC PeopleMap ParsePeople (const QDomElement &people)
 
META_PUBLIC ArtworkMap ParseArtwork (const QDomElement &artwork)
 
META_PUBLIC int editDistance (const QString &s, const QString &t)
 
META_PUBLIC QString nearestName (const QString &actual, const QStringList &candidates)
 
META_PUBLIC QDateTime RFC822TimeToQDateTime (const QString &t)
 

Typedef Documentation

◆ DownloadMap

Definition at line 79 of file metadatacommon.h.

◆ PeopleMap

typedef QMultiMap< PeopleType, PersonInfo > PeopleMap

Definition at line 81 of file metadatacommon.h.

◆ MetadataLookupList

Definition at line 458 of file metadatacommon.h.

Enumeration Type Documentation

◆ LookupStep

enum LookupStep
Enumerator
kLookupSearch 
kLookupData 
kLookupCollection 

Definition at line 22 of file metadatacommon.h.

◆ MetadataType

Enumerator
kMetadataVideo 
kMetadataRecording 
kMetadataMusic 
kMetadataGame 

Definition at line 37 of file metadatacommon.h.

◆ LookupType

enum LookupType
Enumerator
kProbableTelevision 
kProbableGenericTelevision 
kProbableMovie 
kUnknownVideo 
kProbableMusic 
kProbableGame 

Definition at line 45 of file metadatacommon.h.

◆ VideoContentType

Enumerator
kContentMovie 
kContentTelevision 
kContentAdult 
kContentMusicVideo 
kContentHomeMovie 
kContentUnknown 

Definition at line 55 of file metadatacommon.h.

◆ PeopleType

enum PeopleType
Enumerator
kPersonActor 
kPersonAuthor 
kPersonDirector 
kPersonProducer 
kPersonExecProducer 
kPersonCinematographer 
kPersonComposer 
kPersonEditor 
kPersonCastingDirector 
kPersonArtist 
kPersonAlbumArtist 
kPersonGuestStar 

Definition at line 64 of file metadatacommon.h.

Function Documentation

◆ CreateMetadataXML() [1/3]

META_PUBLIC QDomDocument CreateMetadataXML ( MetadataLookupList  list)

Definition at line 438 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ CreateMetadataXML() [2/3]

META_PUBLIC QDomDocument CreateMetadataXML ( MetadataLookup lookup)

Definition at line 454 of file metadatacommon.cpp.

◆ CreateMetadataXML() [3/3]

META_PUBLIC QDomDocument CreateMetadataXML ( ProgramInfo pginfo)

Definition at line 466 of file metadatacommon.cpp.

◆ CreateMetadataXMLItem()

META_PUBLIC void CreateMetadataXMLItem ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 480 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ AddCertifications()

META_PUBLIC void AddCertifications ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 832 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddCategories()

META_PUBLIC void AddCategories ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 846 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddStudios()

META_PUBLIC void AddStudios ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 864 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddCountries()

META_PUBLIC void AddCountries ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 881 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ LookupFromProgramInfo()

META_PUBLIC MetadataLookup* LookupFromProgramInfo ( ProgramInfo pginfo)

Definition at line 409 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ ParseMetadataItem()

META_PUBLIC MetadataLookup* ParseMetadataItem ( const QDomElement &  item,
MetadataLookup lookup,
bool  passseas = true 
)

◆ ParseMetadataMovieNFO()

META_PUBLIC MetadataLookup* ParseMetadataMovieNFO ( const QDomElement &  item,
MetadataLookup lookup 
)

Definition at line 1122 of file metadatacommon.cpp.

Referenced by MetadataDownload::readNFO().

◆ ParsePeople()

META_PUBLIC PeopleMap ParsePeople ( const QDomElement &  people)

Definition at line 1199 of file metadatacommon.cpp.

Referenced by ParseMetadataItem().

◆ ParseArtwork()

META_PUBLIC ArtworkMap ParseArtwork ( const QDomElement &  artwork)

Definition at line 1257 of file metadatacommon.cpp.

Referenced by ParseMetadataItem().

◆ editDistance()

META_PUBLIC int editDistance ( const QString &  s,
const QString &  t 
)

Definition at line 1311 of file metadatacommon.cpp.

Referenced by nearestName().

◆ nearestName()

META_PUBLIC QString nearestName ( const QString &  actual,
const QStringList &  candidates 
)

Definition at line 1346 of file metadatacommon.cpp.

Referenced by MetadataDownload::findBestMatch().

◆ RFC822TimeToQDateTime()

META_PUBLIC QDateTime RFC822TimeToQDateTime ( const QString &  t)

Definition at line 1377 of file metadatacommon.cpp.

Referenced by Parse::ParseItem(), and ParseMetadataItem().