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

◆ addImage()

void AlbumArtImages::addImage ( const AlbumArtImage newImage)

◆ dumpToDatabase()

void AlbumArtImages::dumpToDatabase ( void  )

◆ findImages()

void AlbumArtImages::findImages ( void  )
private

Definition at line 1936 of file musicmetadata.cpp.

Referenced by AlbumArtImages().

◆ getImage()

AlbumArtImage * AlbumArtImages::getImage ( ImageType  type)

◆ getImageAt()

AlbumArtImage * AlbumArtImages::getImageAt ( uint  index)

◆ getImageByID()

AlbumArtImage * AlbumArtImages::getImageByID ( int  imageID)

Definition at line 2145 of file musicmetadata.cpp.

Referenced by MainServer::HandleMusicTagRemoveImage().

◆ getImageCount()

uint AlbumArtImages::getImageCount ( )
inline

◆ getImageFilenames()

QStringList AlbumArtImages::getImageFilenames ( void  ) const

Definition at line 2156 of file musicmetadata.cpp.

◆ getImageList()

AlbumArtList * AlbumArtImages::getImageList ( void  )
inline

◆ getImageTypeFromName()

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

Definition at line 2232 of file musicmetadata.cpp.

◆ getTypeFilename()

QString AlbumArtImages::getTypeFilename ( ImageType  type)
static

Definition at line 2192 of file musicmetadata.cpp.

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

◆ getTypeName()

QString AlbumArtImages::getTypeName ( ImageType  type)
static

◆ guessImageType()

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

◆ Q_DECLARE_TR_FUNCTIONS()

AlbumArtImages::Q_DECLARE_TR_FUNCTIONS ( AlbumArtImages  )
private

◆ scanForImages()

void AlbumArtImages::scanForImages ( void  )

Member Data Documentation

◆ m_imageList

AlbumArtList AlbumArtImages::m_imageList
private

◆ m_parent

MusicMetadata* AlbumArtImages::m_parent {nullptr}
private

Definition at line 542 of file musicmetadata.h.

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


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