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

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

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 

Definition at line 1886 of file musicmetadata.cpp.

◆ ~AlbumArtImages()

AlbumArtImages::~AlbumArtImages ( )

Definition at line 1893 of file musicmetadata.cpp.

Member Function Documentation


AlbumArtImages::Q_DECLARE_TR_FUNCTIONS ( AlbumArtImages  )

◆ scanForImages()

void AlbumArtImages::scanForImages ( void  )

◆ addImage()

void AlbumArtImages::addImage ( const AlbumArtImage newImage)

◆ getImageCount()

uint AlbumArtImages::getImageCount ( )

◆ 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  )

◆ getImageAt()

AlbumArtImage * AlbumArtImages::getImageAt ( uint  index)

◆ dumpToDatabase()

void AlbumArtImages::dumpToDatabase ( void  )

◆ guessImageType()

ImageType AlbumArtImages::guessImageType ( const QString &  filename)

◆ getTypeName()

QString AlbumArtImages::getTypeName ( ImageType  type)

◆ getTypeFilename()

QString AlbumArtImages::getTypeFilename ( ImageType  type)

Definition at line 2158 of file musicmetadata.cpp.

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

◆ getImageTypeFromName()

ImageType AlbumArtImages::getImageTypeFromName ( const QString &  name)

Definition at line 2198 of file musicmetadata.cpp.

◆ findImages()

void AlbumArtImages::findImages ( void  )

Definition at line 1902 of file musicmetadata.cpp.

Referenced by AlbumArtImages().

Member Data Documentation

◆ m_parent

MusicMetadata* AlbumArtImages::m_parent {nullptr}

Definition at line 547 of file musicmetadata.h.

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

◆ m_imageList

AlbumArtList AlbumArtImages::m_imageList

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