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

#include <musicmetadata.h>

Collaboration diagram for AlbumArtImages:
Collaboration graph
[legend]

Public Member Functions

 AlbumArtImages (MusicMetadata *metadata, bool loadFromDB=true)
 
 ~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 520 of file musicmetadata.h.

Constructor & Destructor Documentation

◆ AlbumArtImages()

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

Definition at line 1886 of file musicmetadata.cpp.

◆ ~AlbumArtImages()

AlbumArtImages::~AlbumArtImages ( )

Definition at line 1893 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 2111 of file musicmetadata.cpp.

Referenced by MainServer::HandleMusicTagRemoveImage().

◆ getImageFilenames()

QStringList AlbumArtImages::getImageFilenames ( void  ) const

Definition at line 2122 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 2158 of file musicmetadata.cpp.

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

◆ getImageTypeFromName()

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

Definition at line 2198 of file musicmetadata.cpp.

◆ findImages()

void AlbumArtImages::findImages ( void  )
private

Definition at line 1902 of file musicmetadata.cpp.

Referenced by AlbumArtImages().

Member Data Documentation

◆ m_parent

MusicMetadata* AlbumArtImages::m_parent {nullptr}
private

Definition at line 547 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: