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

#include <libmythmetadata/musicmetadata.h>

Collaboration diagram for AlbumArtImages:
[legend]

Public Member Functions

 AlbumArtImages (MusicMetadata *metadata, bool loadFromDB=true)
 
 AlbumArtImages (MusicMetadata *metadata, const AlbumArtImages &other)
 
 ~AlbumArtImages ()
 
void scanForImages (void)
 
void addImage (const AlbumArtImage *newImage)
 
uint getImageCount ()
 
AlbumArtImagegetImage (ImageType type)
 
AlbumArtImagegetImageByID (int imageID)
 
QStringList getImageFilenames (void) const
 
AlbumArtListgetImageList (void)
 
AlbumArtImagegetImageAt (uint index)
 
void dumpToDatabase (void)
 saves or updates the image details in the DB More...
 

Static Public Member Functions

static ImageType guessImageType (const QString &filename)
 
static QString getTypeName (ImageType type)
 
static QString getTypeFilename (ImageType type)
 
static ImageType getImageTypeFromName (const QString &name)
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (AlbumArtImages)
 
void findImages (void)
 

Private Attributes

MusicMetadatam_parent {nullptr}
 
AlbumArtList m_imageList
 

Detailed Description

Definition at line 514 of file musicmetadata.h.

Constructor & Destructor Documentation

◆ AlbumArtImages() [1/2]

AlbumArtImages::AlbumArtImages ( MusicMetadata metadata,
bool  loadFromDB = true 
)
explicit

Definition at line 1911 of file musicmetadata.cpp.

◆ AlbumArtImages() [2/2]

AlbumArtImages::AlbumArtImages ( MusicMetadata metadata,
const AlbumArtImages other 
)
explicit

Definition at line 1918 of file musicmetadata.cpp.

◆ ~AlbumArtImages()

AlbumArtImages::~AlbumArtImages ( )

Definition at line 1927 of file musicmetadata.cpp.

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

AlbumArtImages::Q_DECLARE_TR_FUNCTIONS ( AlbumArtImages  )
private

◆ scanForImages()

void AlbumArtImages::scanForImages ( void  )

◆ addImage()

void AlbumArtImages::addImage ( const AlbumArtImage newImage)

◆ getImageCount()

uint AlbumArtImages::getImageCount ( )
inline

◆ getImage()

AlbumArtImage * AlbumArtImages::getImage ( ImageType  type)

◆ getImageByID()

AlbumArtImage * AlbumArtImages::getImageByID ( int  imageID)

Definition at line 2145 of file musicmetadata.cpp.

Referenced by MainServer::HandleMusicTagRemoveImage().

◆ getImageFilenames()

QStringList AlbumArtImages::getImageFilenames ( void  ) const

Definition at line 2156 of file musicmetadata.cpp.

◆ getImageList()

AlbumArtList* AlbumArtImages::getImageList ( void  )
inline

◆ getImageAt()

AlbumArtImage * AlbumArtImages::getImageAt ( uint  index)

◆ dumpToDatabase()

void AlbumArtImages::dumpToDatabase ( void  )

◆ guessImageType()

ImageType AlbumArtImages::guessImageType ( const QString &  filename)
static

◆ getTypeName()

QString AlbumArtImages::getTypeName ( ImageType  type)
static

◆ getTypeFilename()

QString AlbumArtImages::getTypeFilename ( ImageType  type)
static

Definition at line 2192 of file musicmetadata.cpp.

Referenced by ExtractImage(), and MainServer::HandleMusicTagChangeImage().

◆ getImageTypeFromName()

ImageType AlbumArtImages::getImageTypeFromName ( const QString &  name)
static

Definition at line 2232 of file musicmetadata.cpp.

◆ findImages()

void AlbumArtImages::findImages ( void  )
private

Definition at line 1936 of file musicmetadata.cpp.

Referenced by AlbumArtImages().

Member Data Documentation

◆ m_parent

MusicMetadata* AlbumArtImages::m_parent {nullptr}
private

Definition at line 542 of file musicmetadata.h.

Referenced by dumpToDatabase(), findImages(), and scanForImages().

◆ m_imageList

AlbumArtList AlbumArtImages::m_imageList
private

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