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

#include <musicmetadata.h>

Collaboration diagram for MusicMetadata:
Collaboration graph
[legend]

Public Types

typedef uint32_t IdType
 

Public Member Functions

 MusicMetadata (QString lfilename="", QString lartist="", QString lcompilation_artist="", QString lalbum="", QString ltitle="", QString lgenre="", int lyear=0, int ltracknum=0, int llength=0, int lid=0, int lrating=0, int lplaycount=0, QDateTime llastplay=QDateTime(), QDateTime ldateadded=QDateTime(), bool lcompilation=false, QString lformat="")
 
 MusicMetadata (int lid, QString lbroadcaster, QString lchannel, QString ldescription, UrlList lurls, QString llogourl, QString lgenre, QString lmetaformat, QString lcountry, QString llanguage, QString lformat)
 
 ~MusicMetadata ()
 
 MusicMetadata (const MusicMetadata &other)
 
MusicMetadataoperator= (const MusicMetadata &rhs)
 
QString Artist () const
 
QString ArtistSort () const
 
void setArtist (const QString &lartist, const QString &lartist_sort=nullptr)
 
QString CompilationArtist () const
 
QString CompilationArtistSort () const
 
void setCompilationArtist (const QString &lcompilation_artist, const QString &lcompilation_artist_sort=nullptr)
 
QString Album () const
 
QString AlbumSort () const
 
void setAlbum (const QString &lalbum, const QString &lalbum_sort=nullptr)
 
QString Title () const
 
QString TitleSort () const
 
void setTitle (const QString &ltitle, const QString &ltitle_sort=nullptr)
 
QString FormatArtist ()
 
QString FormatTitle ()
 
QString Genre () const
 
void setGenre (const QString &lgenre)
 
void setDirectoryId (int ldirectoryid)
 
int getDirectoryId ()
 
void setArtistId (int lartistid)
 
int getArtistId ()
 
void setAlbumId (int lalbumid)
 
int getAlbumId ()
 
void setGenreId (int lgenreid)
 
int getGenreId ()
 
int Year () const
 
void setYear (int lyear)
 
int Track () const
 
void setTrack (int ltrack)
 
int GetTrackCount () const
 
void setTrackCount (int ltrackcount)
 
int Length () const
 
void setLength (int llength)
 
int DiscNumber () const
 
void setDiscNumber (int discnum)
 
int DiscCount () const
 
void setDiscCount (int disccount)
 
int Playcount () const
 
void setPlaycount (int lplaycount)
 
IdType ID () const
 
void setID (IdType lid)
 
void setRepo (RepoType repo)
 
bool isCDTrack (void) const
 
bool isDBTrack (void) const
 
bool isRadio (void) const
 
QString Filename (bool find=true)
 
void setFilename (const QString &lfilename)
 
QString getLocalFilename (void)
 try to find the track on the local file system More...
 
QString Hostname (void)
 
void setHostname (const QString &host)
 
uint64_t FileSize () const
 
void setFileSize (uint64_t lfilesize)
 
QString Format () const
 
void setFormat (const QString &lformat)
 
int Rating () const
 
void decRating ()
 
void incRating ()
 
void setRating (int lrating)
 
QDateTime LastPlay () const
 
void setLastPlay ()
 
void setLastPlay (const QDateTime &lastPlay)
 
int PlayCount () const
 
void incPlayCount ()
 
bool Compilation () const
 
void setCompilation (bool state)
 
bool determineIfCompilation (bool cd=false)
 
void setBroadcaster (const QString &broadcaster)
 
QString Broadcaster (void)
 
void setChannel (const QString &channel)
 
QString Channel (void)
 
void setDescription (const QString &description)
 
QString Description (void)
 
void setUrl (const QString &url, uint index=0)
 
QString Url (uint index=0)
 
void setLogoUrl (const QString &logourl)
 
QString LogoUrl (void)
 
void setMetadataFormat (const QString &metaformat)
 
QString MetadataFormat (void)
 
void setCountry (const QString &country)
 
QString Country (void)
 
void setLanguage (const QString &language)
 
QString Language (void)
 
void setEmbeddedAlbumArt (AlbumArtList &albumart)
 
void reloadMetadata (void)
 
void dumpToDatabase (void)
 
void setField (const QString &field, const QString &data)
 
void getField (const QString &field, QString *data)
 
void toMap (InfoMap &metadataMap, const QString &prefix="")
 
void persist (void)
 
bool hasChanged (void) const
 
bool compare (MusicMetadata *mdata) const
 
QString getAlbumArtFile (void)
 
QString getAlbumArtFile (ImageType type)
 
AlbumArtImagesgetAlbumArtImages (void)
 
void reloadAlbumArtImages (void)
 
LyricsDatagetLyricsData (void)
 
MetaIOgetTagger (void)
 

Static Public Member Functions

static MusicMetadatacreateFromFilename (const QString &filename)
 
static MusicMetadatacreateFromID (int trackid)
 
static void setArtistAndTrackFormats ()
 
static QStringList fillFieldList (const QString &field)
 
static bool updateStreamList (void)
 

Private Member Functions

 Q_DECLARE_TR_FUNCTIONS (MusicMetadata)
 
void setCompilationFormatting (bool cd=false)
 
QString formatReplaceSymbols (const QString &format)
 
void checkEmptyFields (void)
 
void ensureSortFields (void)
 
void saveHostname (void)
 

Private Attributes

QString m_artist
 
QString m_artist_sort
 
QString m_compilation_artist
 
QString m_compilation_artist_sort
 
QString m_album
 
QString m_album_sort
 
QString m_title
 
QString m_title_sort
 
QString m_formattedartist
 
QString m_formattedtitle
 
QString m_genre
 
QString m_genre_sort
 
QString m_format
 
int m_year {0}
 
int m_tracknum {0}
 
int m_trackCount {0}
 
int m_discnum {0}
 
int m_disccount {0}
 
int m_length {0}
 
int m_rating {0}
 
int m_directoryid {-1}
 
int m_artistid {-1}
 
int m_compartistid {-1}
 
int m_albumid {-1}
 
int m_genreid {-1}
 
QDateTime m_lastplay
 
QDateTime m_templastplay
 
QDateTime m_dateadded
 
int m_playcount {0}
 
int m_tempplaycount {0}
 
bool m_compilation {false}
 
AlbumArtImagesm_albumArt {nullptr}
 
LyricsDatam_lyricsData {nullptr}
 
IdType m_id
 
QString m_filename
 
QString m_hostname
 
QString m_actualFilename
 
uint64_t m_fileSize {0}
 
bool m_changed {false}
 
QString m_broadcaster
 
QString m_channel
 
QString m_description
 
UrlList m_urls
 
QString m_logoUrl
 
QString m_metaFormat
 
QString m_country
 
QString m_language
 

Static Private Attributes

static QString m_formatnormalfileartist = "ARTIST"
 
static QString m_formatnormalfiletrack = "TITLE"
 
static QString m_formatnormalcdartist = "ARTIST"
 
static QString m_formatnormalcdtrack = "TITLE"
 
static QString m_formatcompilationfileartist = "COMPARTIST"
 
static QString m_formatcompilationfiletrack = "TITLE (ARTIST)"
 
static QString m_formatcompilationcdartist = "COMPARTIST"
 
static QString m_formatcompilationcdtrack = "TITLE (ARTIST)"
 

Detailed Description

Definition at line 78 of file musicmetadata.h.

Member Typedef Documentation

◆ IdType

typedef uint32_t MusicMetadata::IdType

Definition at line 84 of file musicmetadata.h.

Constructor & Destructor Documentation

◆ MusicMetadata() [1/3]

MusicMetadata::MusicMetadata ( QString  lfilename = "",
QString  lartist = "",
QString  lcompilation_artist = "",
QString  lalbum = "",
QString  ltitle = "",
QString  lgenre = "",
int  lyear = 0,
int  ltracknum = 0,
int  llength = 0,
int  lid = 0,
int  lrating = 0,
int  lplaycount = 0,
QDateTime  llastplay = QDateTime(),
QDateTime  ldateadded = QDateTime(),
bool  lcompilation = false,
QString  lformat = "" 
)
inline

◆ MusicMetadata() [2/3]

MusicMetadata::MusicMetadata ( int  lid,
QString  lbroadcaster,
QString  lchannel,
QString  ldescription,
UrlList  lurls,
QString  llogourl,
QString  lgenre,
QString  lmetaformat,
QString  lcountry,
QString  llanguage,
QString  lformat 
)

Definition at line 59 of file musicmetadata.cpp.

◆ ~MusicMetadata()

MusicMetadata::~MusicMetadata ( )

Definition at line 81 of file musicmetadata.cpp.

◆ MusicMetadata() [3/3]

MusicMetadata::MusicMetadata ( const MusicMetadata other)
inline

Definition at line 117 of file musicmetadata.h.

Member Function Documentation

◆ Q_DECLARE_TR_FUNCTIONS()

MusicMetadata::Q_DECLARE_TR_FUNCTIONS ( MusicMetadata  )
private

◆ operator=()

MusicMetadata & MusicMetadata::operator= ( const MusicMetadata rhs)

Definition at line 97 of file musicmetadata.cpp.

◆ Artist()

QString MusicMetadata::Artist ( ) const
inline

◆ ArtistSort()

QString MusicMetadata::ArtistSort ( ) const
inline

Definition at line 126 of file musicmetadata.h.

◆ setArtist()

void MusicMetadata::setArtist ( const QString &  lartist,
const QString &  lartist_sort = nullptr 
)
inline

◆ CompilationArtist()

QString MusicMetadata::CompilationArtist ( ) const
inline

◆ CompilationArtistSort()

QString MusicMetadata::CompilationArtistSort ( ) const
inline

Definition at line 137 of file musicmetadata.h.

◆ setCompilationArtist()

void MusicMetadata::setCompilationArtist ( const QString &  lcompilation_artist,
const QString &  lcompilation_artist_sort = nullptr 
)
inline

◆ Album()

QString MusicMetadata::Album ( ) const
inline

◆ AlbumSort()

QString MusicMetadata::AlbumSort ( ) const
inline

Definition at line 148 of file musicmetadata.h.

◆ setAlbum()

void MusicMetadata::setAlbum ( const QString &  lalbum,
const QString &  lalbum_sort = nullptr 
)
inline

◆ Title()

QString MusicMetadata::Title ( ) const
inline

◆ TitleSort()

QString MusicMetadata::TitleSort ( ) const
inline

Definition at line 159 of file musicmetadata.h.

◆ setTitle()

void MusicMetadata::setTitle ( const QString &  ltitle,
const QString &  ltitle_sort = nullptr 
)
inline

◆ FormatArtist()

QString MusicMetadata::FormatArtist ( )

Definition at line 915 of file musicmetadata.cpp.

Referenced by filenameFromMetadata(), getField(), and toMap().

◆ FormatTitle()

QString MusicMetadata::FormatTitle ( )

◆ Genre()

QString MusicMetadata::Genre ( ) const
inline

◆ setGenre()

void MusicMetadata::setGenre ( const QString &  lgenre)
inline

◆ setDirectoryId()

void MusicMetadata::setDirectoryId ( int  ldirectoryid)
inline

◆ getDirectoryId()

int MusicMetadata::getDirectoryId ( )

◆ setArtistId()

void MusicMetadata::setArtistId ( int  lartistid)
inline

◆ getArtistId()

int MusicMetadata::getArtistId ( )

◆ setAlbumId()

void MusicMetadata::setAlbumId ( int  lalbumid)
inline

◆ getAlbumId()

int MusicMetadata::getAlbumId ( )

◆ setGenreId()

void MusicMetadata::setGenreId ( int  lgenreid)
inline

◆ getGenreId()

int MusicMetadata::getGenreId ( )

◆ Year()

int MusicMetadata::Year ( ) const
inline

◆ setYear()

void MusicMetadata::setYear ( int  lyear)
inline

◆ Track()

int MusicMetadata::Track ( ) const
inline

◆ setTrack()

void MusicMetadata::setTrack ( int  ltrack)
inline

◆ GetTrackCount()

int MusicMetadata::GetTrackCount ( ) const
inline

Definition at line 192 of file musicmetadata.h.

◆ setTrackCount()

void MusicMetadata::setTrackCount ( int  ltrackcount)
inline

Definition at line 193 of file musicmetadata.h.

Referenced by MetaIOID3::read(), and AllMusic::resync().

◆ Length()

int MusicMetadata::Length ( ) const
inline

◆ setLength()

void MusicMetadata::setLength ( int  llength)
inline

◆ DiscNumber()

int MusicMetadata::DiscNumber ( ) const
inline

◆ setDiscNumber()

void MusicMetadata::setDiscNumber ( int  discnum)
inline

◆ DiscCount()

int MusicMetadata::DiscCount ( ) const
inline

Definition at line 201 of file musicmetadata.h.

◆ setDiscCount()

void MusicMetadata::setDiscCount ( int  disccount)
inline

Definition at line 202 of file musicmetadata.h.

Referenced by MetaIOID3::read(), and AllMusic::resync().

◆ Playcount()

int MusicMetadata::Playcount ( ) const
inline

Definition at line 204 of file musicmetadata.h.

Referenced by MusicFileScanner::UpdateFileInDB().

◆ setPlaycount()

void MusicMetadata::setPlaycount ( int  lplaycount)
inline

Definition at line 205 of file musicmetadata.h.

Referenced by MetaIOID3::read(), MusicFileScanner::UpdateFileInDB(), and UpdateMeta().

◆ ID()

IdType MusicMetadata::ID ( ) const
inline

Definition at line 207 of file musicmetadata.h.

Referenced by MusicPlayer::activePlaylistChanged(), AllMusic::addCDTrack(), StreamView::addStream(), MusicCommon::changeRating(), AllMusic::clearCDData(), Playlist::copyTracks(), SearchView::customEvent(), MusicCommon::customEvent(), LyricsData::customEvent(), EditAlbumartDialog::customEvent(), MusicPlayer::customEvent(), StreamView::deleteStream(), EditAlbumartDialog::doCopyImageToTag(), EditAlbumartDialog::doRemoveImageFromTag(), MusicCommon::doUpdatePlaylist(), AlbumArtImages::dumpToDatabase(), ExtractImage(), FillMusicMetadataInfo(), PlaylistEditorView::filterTracks(), AlbumArtImages::findImages(), LyricsData::findLyrics(), getAlbumArtFile(), PlaylistEditorView::getCDTracks(), PlaylistEditorView::getPlaylistTracks(), handleMedia(), MainServer::HandleMusicFindAlbumArt(), MainServer::HandleMusicTagChangeImage(), MusicCommon::keyPressEvent(), MusicPlayer::loadStreamPlaylist(), MusicPlayer::moveTrackUpDown(), MusicPlayer::play(), AllStream::removeStream(), MusicPlayer::removeTrack(), MusicCommon::restorePosition(), MusicPlayer::restorePosition(), LyricsData::save(), EditMetadataCommon::saveAll(), EditMetadataCommon::saveToDatabase(), AlbumArtImages::scanForImages(), MusicPlayer::setShuffleMode(), SearchView::ShowMenu(), Playlist::shuffleTracks(), SearchView::trackClicked(), MusicFileScanner::UpdateFileInDB(), PlaylistEditorView::updateSonglist(), StreamView::updateStream(), AllStream::updateStream(), StreamView::updateStreamList(), SearchView::updateTracksList(), MusicCommon::updateUIPlaylist(), and EditMetadataCommon::~EditMetadataCommon().

◆ setID()

void MusicMetadata::setID ( IdType  lid)
inline

◆ setRepo()

void MusicMetadata::setRepo ( RepoType  repo)
inline

◆ isCDTrack()

bool MusicMetadata::isCDTrack ( void  ) const
inline

◆ isDBTrack()

bool MusicMetadata::isDBTrack ( void  ) const
inline

Definition at line 212 of file musicmetadata.h.

Referenced by Playlist::copyTracks(), LyricsData::findLyrics(), and LyricsData::save().

◆ isRadio()

bool MusicMetadata::isRadio ( void  ) const
inline

Definition at line 213 of file musicmetadata.h.

Referenced by Filename(), LyricsData::setLyrics(), and toMap().

◆ Filename()

QString MusicMetadata::Filename ( bool  find = true)

◆ setFilename()

void MusicMetadata::setFilename ( const QString &  lfilename)

◆ getLocalFilename()

QString MusicMetadata::getLocalFilename ( void  )

◆ Hostname()

QString MusicMetadata::Hostname ( void  )
inline

◆ setHostname()

void MusicMetadata::setHostname ( const QString &  host)
inline

◆ FileSize()

uint64_t MusicMetadata::FileSize ( ) const
inline

Definition at line 222 of file musicmetadata.h.

◆ setFileSize()

void MusicMetadata::setFileSize ( uint64_t  lfilesize)
inline

◆ Format()

QString MusicMetadata::Format ( ) const
inline

◆ setFormat()

void MusicMetadata::setFormat ( const QString &  lformat)
inline

Definition at line 226 of file musicmetadata.h.

Referenced by EditStreamMetadata::saveClicked().

◆ Rating()

int MusicMetadata::Rating ( ) const
inline

◆ decRating()

void MusicMetadata::decRating ( )

Definition at line 1142 of file musicmetadata.cpp.

Referenced by MusicCommon::changeRating(), and EditMetadataDialog::decRating().

◆ incRating()

void MusicMetadata::incRating ( )

Definition at line 1151 of file musicmetadata.cpp.

Referenced by MusicCommon::changeRating(), and EditMetadataDialog::incRating().

◆ setRating()

void MusicMetadata::setRating ( int  lrating)
inline

◆ LastPlay()

QDateTime MusicMetadata::LastPlay ( ) const
inline

◆ setLastPlay() [1/2]

void MusicMetadata::setLastPlay ( )

Definition at line 1166 of file musicmetadata.cpp.

Referenced by MetaIOID3::read(), MusicPlayer::updateLastplay(), and UpdateMeta().

◆ setLastPlay() [2/2]

void MusicMetadata::setLastPlay ( const QDateTime &  lastPlay)

Definition at line 1160 of file musicmetadata.cpp.

◆ PlayCount()

int MusicMetadata::PlayCount ( ) const
inline

◆ incPlayCount()

void MusicMetadata::incPlayCount ( )

Definition at line 1172 of file musicmetadata.cpp.

Referenced by MusicPlayer::updateLastplay().

◆ Compilation()

bool MusicMetadata::Compilation ( ) const
inline

◆ setCompilation()

void MusicMetadata::setCompilation ( bool  state)
inline

◆ determineIfCompilation()

bool MusicMetadata::determineIfCompilation ( bool  cd = false)

Definition at line 827 of file musicmetadata.cpp.

Referenced by MetaIOAVFComment::read().

◆ setBroadcaster()

void MusicMetadata::setBroadcaster ( const QString &  broadcaster)
inline

◆ Broadcaster()

QString MusicMetadata::Broadcaster ( void  )
inline

◆ setChannel()

void MusicMetadata::setChannel ( const QString &  channel)
inline

◆ Channel()

QString MusicMetadata::Channel ( void  )
inline

◆ setDescription()

void MusicMetadata::setDescription ( const QString &  description)
inline

◆ Description()

QString MusicMetadata::Description ( void  )
inline

◆ setUrl()

void MusicMetadata::setUrl ( const QString &  url,
uint  index = 0 
)

◆ Url()

QString MusicMetadata::Url ( uint  index = 0)

◆ setLogoUrl()

void MusicMetadata::setLogoUrl ( const QString &  logourl)
inline

◆ LogoUrl()

QString MusicMetadata::LogoUrl ( void  )
inline

◆ setMetadataFormat()

void MusicMetadata::setMetadataFormat ( const QString &  metaformat)
inline

◆ MetadataFormat()

QString MusicMetadata::MetadataFormat ( void  )
inline

◆ setCountry()

void MusicMetadata::setCountry ( const QString &  country)
inline

◆ Country()

QString MusicMetadata::Country ( void  )
inline

◆ setLanguage()

void MusicMetadata::setLanguage ( const QString &  language)
inline

◆ Language()

QString MusicMetadata::Language ( void  )
inline

◆ setEmbeddedAlbumArt()

void MusicMetadata::setEmbeddedAlbumArt ( AlbumArtList albumart)

Definition at line 1178 of file musicmetadata.cpp.

Referenced by MusicFileScanner::AddFileToDB().

◆ reloadMetadata()

void MusicMetadata::reloadMetadata ( void  )

Definition at line 433 of file musicmetadata.cpp.

Referenced by MusicPlayer::customEvent(), and AllMusic::resync().

◆ dumpToDatabase()

void MusicMetadata::dumpToDatabase ( void  )

◆ setField()

void MusicMetadata::setField ( const QString &  field,
const QString &  data 
)

Definition at line 1010 of file musicmetadata.cpp.

◆ getField()

void MusicMetadata::getField ( const QString &  field,
QString *  data 
)

Definition at line 1046 of file musicmetadata.cpp.

◆ toMap()

void MusicMetadata::toMap ( InfoMap metadataMap,
const QString &  prefix = "" 
)

◆ persist()

void MusicMetadata::persist ( void  )

Definition at line 180 of file musicmetadata.cpp.

Referenced by MusicPlayer::updateVolatileMetadata().

◆ hasChanged()

bool MusicMetadata::hasChanged ( void  ) const
inline

Definition at line 285 of file musicmetadata.h.

◆ compare()

bool MusicMetadata::compare ( MusicMetadata mdata) const

Definition at line 152 of file musicmetadata.cpp.

Referenced by AllMusic::resync().

◆ createFromFilename()

MusicMetadata * MusicMetadata::createFromFilename ( const QString &  filename)
static

Definition at line 224 of file musicmetadata.cpp.

Referenced by MetaIO::getMetadata().

◆ createFromID()

MusicMetadata * MusicMetadata::createFromID ( int  trackid)
static

◆ setArtistAndTrackFormats()

void MusicMetadata::setArtistAndTrackFormats ( )
static

Definition at line 789 of file musicmetadata.cpp.

Referenced by MusicData::loadMusic().

◆ fillFieldList()

QStringList MusicMetadata::fillFieldList ( const QString &  field)
static

◆ updateStreamList()

bool MusicMetadata::updateStreamList ( void  )
static

Definition at line 321 of file musicmetadata.cpp.

Referenced by SearchStream::loadStreams(), and UpdateRadioStreams().

◆ getAlbumArtFile() [1/2]

QString MusicMetadata::getAlbumArtFile ( void  )

◆ getAlbumArtFile() [2/2]

QString MusicMetadata::getAlbumArtFile ( ImageType  type)

Definition at line 1328 of file musicmetadata.cpp.

◆ getAlbumArtImages()

AlbumArtImages * MusicMetadata::getAlbumArtImages ( void  )

◆ reloadAlbumArtImages()

void MusicMetadata::reloadAlbumArtImages ( void  )

Definition at line 1348 of file musicmetadata.cpp.

Referenced by StreamView::updateStream().

◆ getLyricsData()

LyricsData * MusicMetadata::getLyricsData ( void  )

Definition at line 1354 of file musicmetadata.cpp.

Referenced by LyricsView::findLyrics().

◆ getTagger()

MetaIO * MusicMetadata::getTagger ( void  )

◆ setCompilationFormatting()

void MusicMetadata::setCompilationFormatting ( bool  cd = false)
inlineprivate

Definition at line 876 of file musicmetadata.cpp.

Referenced by determineIfCompilation(), FormatArtist(), and FormatTitle().

◆ formatReplaceSymbols()

QString MusicMetadata::formatReplaceSymbols ( const QString &  format)
inlineprivate

Definition at line 836 of file musicmetadata.cpp.

Referenced by setCompilationFormatting().

◆ checkEmptyFields()

void MusicMetadata::checkEmptyFields ( void  )
private

Definition at line 846 of file musicmetadata.cpp.

Referenced by getDirectoryId().

◆ ensureSortFields()

void MusicMetadata::ensureSortFields ( void  )
private

Definition at line 862 of file musicmetadata.cpp.

Referenced by checkEmptyFields(), createFromID(), MusicMetadata(), and setField().

◆ saveHostname()

void MusicMetadata::saveHostname ( void  )
private

Definition at line 208 of file musicmetadata.cpp.

Referenced by createFromID(), and Filename().

Member Data Documentation

◆ m_artist

QString MusicMetadata::m_artist
private

◆ m_artist_sort

QString MusicMetadata::m_artist_sort
private

Definition at line 316 of file musicmetadata.h.

Referenced by ensureSortFields(), and operator=().

◆ m_compilation_artist

QString MusicMetadata::m_compilation_artist
private

◆ m_compilation_artist_sort

QString MusicMetadata::m_compilation_artist_sort
private

Definition at line 318 of file musicmetadata.h.

Referenced by ensureSortFields(), and operator=().

◆ m_album

QString MusicMetadata::m_album
private

◆ m_album_sort

QString MusicMetadata::m_album_sort
private

Definition at line 320 of file musicmetadata.h.

Referenced by ensureSortFields(), and operator=().

◆ m_title

QString MusicMetadata::m_title
private

◆ m_title_sort

QString MusicMetadata::m_title_sort
private

Definition at line 322 of file musicmetadata.h.

Referenced by ensureSortFields(), and operator=().

◆ m_formattedartist

QString MusicMetadata::m_formattedartist
private

Definition at line 323 of file musicmetadata.h.

Referenced by FormatArtist(), operator=(), and setCompilationFormatting().

◆ m_formattedtitle

QString MusicMetadata::m_formattedtitle
private

Definition at line 324 of file musicmetadata.h.

Referenced by FormatTitle(), operator=(), and setCompilationFormatting().

◆ m_genre

QString MusicMetadata::m_genre
private

◆ m_genre_sort

QString MusicMetadata::m_genre_sort
private

Definition at line 326 of file musicmetadata.h.

◆ m_format

QString MusicMetadata::m_format
private

Definition at line 327 of file musicmetadata.h.

Referenced by compare(), createFromID(), dumpToDatabase(), and operator=().

◆ m_year

int MusicMetadata::m_year {0}
private

◆ m_tracknum

int MusicMetadata::m_tracknum {0}
private

◆ m_trackCount

int MusicMetadata::m_trackCount {0}
private

Definition at line 330 of file musicmetadata.h.

Referenced by compare(), createFromID(), dumpToDatabase(), operator=(), setField(), and toMap().

◆ m_discnum

int MusicMetadata::m_discnum {0}
private

Definition at line 331 of file musicmetadata.h.

Referenced by compare(), createFromID(), dumpToDatabase(), operator=(), setField(), and toMap().

◆ m_disccount

int MusicMetadata::m_disccount {0}
private

Definition at line 332 of file musicmetadata.h.

Referenced by compare(), createFromID(), dumpToDatabase(), operator=(), setField(), and toMap().

◆ m_length

int MusicMetadata::m_length {0}
private

Definition at line 333 of file musicmetadata.h.

Referenced by createFromID(), dumpToDatabase(), operator=(), setField(), and toMap().

◆ m_rating

int MusicMetadata::m_rating {0}
private

◆ m_directoryid

int MusicMetadata::m_directoryid {-1}
private

Definition at line 335 of file musicmetadata.h.

Referenced by compare(), dumpToDatabase(), getDirectoryId(), operator=(), and reloadMetadata().

◆ m_artistid

int MusicMetadata::m_artistid {-1}
private

Definition at line 336 of file musicmetadata.h.

Referenced by compare(), dumpToDatabase(), getArtistId(), operator=(), and reloadMetadata().

◆ m_compartistid

int MusicMetadata::m_compartistid {-1}
private

Definition at line 337 of file musicmetadata.h.

Referenced by compare(), getAlbumId(), getArtistId(), operator=(), and reloadMetadata().

◆ m_albumid

int MusicMetadata::m_albumid {-1}
private

Definition at line 338 of file musicmetadata.h.

Referenced by compare(), dumpToDatabase(), getAlbumId(), operator=(), and reloadMetadata().

◆ m_genreid

int MusicMetadata::m_genreid {-1}
private

Definition at line 339 of file musicmetadata.h.

Referenced by compare(), dumpToDatabase(), getGenreId(), operator=(), and reloadMetadata().

◆ m_lastplay

QDateTime MusicMetadata::m_lastplay
private

Definition at line 340 of file musicmetadata.h.

Referenced by compare(), createFromID(), operator=(), persist(), and toMap().

◆ m_templastplay

QDateTime MusicMetadata::m_templastplay
private

Definition at line 341 of file musicmetadata.h.

Referenced by operator=(), persist(), and setLastPlay().

◆ m_dateadded

QDateTime MusicMetadata::m_dateadded
private

Definition at line 342 of file musicmetadata.h.

Referenced by createFromID(), operator=(), and toMap().

◆ m_playcount

int MusicMetadata::m_playcount {0}
private

◆ m_tempplaycount

int MusicMetadata::m_tempplaycount {0}
private

Definition at line 344 of file musicmetadata.h.

Referenced by incPlayCount(), operator=(), and persist().

◆ m_compilation

bool MusicMetadata::m_compilation {false}
private

◆ m_albumArt

AlbumArtImages* MusicMetadata::m_albumArt {nullptr}
private

◆ m_lyricsData

LyricsData* MusicMetadata::m_lyricsData {nullptr}
private

Definition at line 349 of file musicmetadata.h.

Referenced by getLyricsData(), operator=(), and ~MusicMetadata().

◆ m_id

IdType MusicMetadata::m_id
private

◆ m_filename

QString MusicMetadata::m_filename
private

◆ m_hostname

QString MusicMetadata::m_hostname
private

Definition at line 353 of file musicmetadata.h.

Referenced by createFromID(), dumpToDatabase(), Filename(), operator=(), and saveHostname().

◆ m_actualFilename

QString MusicMetadata::m_actualFilename
private

Definition at line 354 of file musicmetadata.h.

Referenced by Filename(), operator=(), and setFilename().

◆ m_fileSize

uint64_t MusicMetadata::m_fileSize {0}
private

Definition at line 355 of file musicmetadata.h.

Referenced by compare(), createFromID(), dumpToDatabase(), operator=(), and toMap().

◆ m_changed

bool MusicMetadata::m_changed {false}
private

◆ m_broadcaster

QString MusicMetadata::m_broadcaster
private

Definition at line 359 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_channel

QString MusicMetadata::m_channel
private

Definition at line 360 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_description

QString MusicMetadata::m_description
private

Definition at line 361 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_urls

UrlList MusicMetadata::m_urls
private

Definition at line 362 of file musicmetadata.h.

Referenced by Filename(), MusicMetadata(), operator=(), setUrl(), toMap(), and Url().

◆ m_logoUrl

QString MusicMetadata::m_logoUrl
private

Definition at line 363 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_metaFormat

QString MusicMetadata::m_metaFormat
private

Definition at line 364 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_country

QString MusicMetadata::m_country
private

Definition at line 365 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_language

QString MusicMetadata::m_language
private

Definition at line 366 of file musicmetadata.h.

Referenced by operator=(), and toMap().

◆ m_formatnormalfileartist

QString MusicMetadata::m_formatnormalfileartist = "ARTIST"
staticprivate

Definition at line 369 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatnormalfiletrack

QString MusicMetadata::m_formatnormalfiletrack = "TITLE"
staticprivate

Definition at line 370 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatnormalcdartist

QString MusicMetadata::m_formatnormalcdartist = "ARTIST"
staticprivate

Definition at line 371 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatnormalcdtrack

QString MusicMetadata::m_formatnormalcdtrack = "TITLE"
staticprivate

Definition at line 372 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatcompilationfileartist

QString MusicMetadata::m_formatcompilationfileartist = "COMPARTIST"
staticprivate

Definition at line 374 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatcompilationfiletrack

QString MusicMetadata::m_formatcompilationfiletrack = "TITLE (ARTIST)"
staticprivate

Definition at line 375 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatcompilationcdartist

QString MusicMetadata::m_formatcompilationcdartist = "COMPARTIST"
staticprivate

Definition at line 376 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().

◆ m_formatcompilationcdtrack

QString MusicMetadata::m_formatcompilationcdtrack = "TITLE (ARTIST)"
staticprivate

Definition at line 377 of file musicmetadata.h.

Referenced by setArtistAndTrackFormats(), and setCompilationFormatting().


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