MythTV
master
|
#include <libmythmetadata/musicmetadata.h>
Public Member Functions | |
AllMusic (void) | |
~AllMusic () | |
MusicMetadata * | getMetadata (int an_id) |
bool | updateMetadata (int an_id, MusicMetadata *the_track) |
int | count () const |
int | countLoaded () const |
void | save () |
Check each MusicMetadata entry and save those that have changed (ratings, etc.) More... | |
bool | startLoading (void) |
Start loading metadata. More... | |
void | resync () |
resync our cache with the database More... | |
void | clearCDData (void) |
void | addCDTrack (const MusicMetadata &the_track) |
bool | checkCDTrack (MusicMetadata *the_track) |
MusicMetadata * | getCDMetadata (int m_the_track) |
QString | getCDTitle (void) const |
void | setCDTitle (const QString &a_title) |
int | getCDTrackCount (void) const |
bool | doneLoading () const |
bool | cleanOutThreads () |
MetadataPtrList * | getAllMetadata (void) |
MetadataPtrList * | getAllCDMetadata (void) |
bool | isValidID (int an_id) |
Private Types | |
using | MusicMap = QMap< int, MusicMetadata * > |
Private Member Functions | |
Q_DECLARE_TR_FUNCTIONS (AllMusic) | |
Private Attributes | |
MetadataPtrList | m_allMusic |
int | m_numPcs {0} |
int | m_numLoaded {0} |
MusicMap | m_musicMap |
MetadataPtrList | m_cdData |
QString | m_cdTitle |
MetadataLoadingThread * | m_metadataLoader {nullptr} |
bool | m_doneLoading {false} |
int | m_playCountMin {0} |
int | m_playCountMax {0} |
qint64 | m_lastPlayMin {0} |
qint64 | m_lastPlayMax {0} |
Definition at line 418 of file musicmetadata.h.
|
private |
Definition at line 458 of file musicmetadata.h.
AllMusic::AllMusic | ( | void | ) |
Definition at line 1435 of file musicmetadata.cpp.
AllMusic::~AllMusic | ( | ) |
Definition at line 1441 of file musicmetadata.cpp.
|
private |
MusicMetadata * AllMusic::getMetadata | ( | int | an_id | ) |
Definition at line 1651 of file musicmetadata.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), MusicPlayer::customEvent(), Playlist::getRawSongAt(), Playlist::getSongAt(), PlaylistEditorView::keyPressEvent(), MusicPlayer::removeTrack(), SmartPLResultViewer::setSQL(), PlaylistEditorView::treeItemVisible(), and SearchView::updateTracksList().
bool AllMusic::updateMetadata | ( | int | an_id, |
MusicMetadata * | the_track | ||
) |
Definition at line 1664 of file musicmetadata.cpp.
|
inline |
Definition at line 429 of file musicmetadata.h.
|
inline |
Definition at line 430 of file musicmetadata.h.
void AllMusic::save | ( | ) |
Check each MusicMetadata entry and save those that have changed (ratings, etc.)
Definition at line 1679 of file musicmetadata.cpp.
Referenced by mythplugin_destroy().
bool AllMusic::startLoading | ( | void | ) |
Start loading metadata.
Makes the AllMusic object run it's resync in a thread. Once done, the doneLoading() method will return true.
Definition at line 1485 of file musicmetadata.cpp.
Referenced by MusicData::reloadMusic().
void AllMusic::resync | ( | ) |
resync our cache with the database
Definition at line 1504 of file musicmetadata.cpp.
void AllMusic::clearCDData | ( | void | ) |
Definition at line 1689 of file musicmetadata.cpp.
Referenced by handleMedia().
void AllMusic::addCDTrack | ( | const MusicMetadata & | the_track | ) |
Definition at line 1704 of file musicmetadata.cpp.
Referenced by handleMedia().
bool AllMusic::checkCDTrack | ( | MusicMetadata * | the_track | ) |
Definition at line 1713 of file musicmetadata.cpp.
MusicMetadata * AllMusic::getCDMetadata | ( | int | m_the_track | ) |
Definition at line 1721 of file musicmetadata.cpp.
Referenced by MusicCommon::fromCD(), and handleMedia().
|
inline |
Definition at line 440 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode().
|
inline |
Definition at line 441 of file musicmetadata.h.
|
inline |
Definition at line 442 of file musicmetadata.h.
Referenced by MusicCommon::createQuickPlaylistsMenu(), PlaylistEditorView::createRootNode(), MusicCommon::fromCD(), and handleMedia().
|
inline |
Definition at line 444 of file musicmetadata.h.
Referenced by MusicData::loadMusic(), MusicData::reloadMusic(), and PlaylistLoadingThread::run().
bool AllMusic::cleanOutThreads | ( | ) |
Definition at line 1459 of file musicmetadata.cpp.
Referenced by mythplugin_destroy().
|
inline |
Definition at line 447 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode(), and EditMetadataCommon::~EditMetadataCommon().
|
inline |
Definition at line 448 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode(), and PlaylistEditorView::getCDTracks().
bool AllMusic::isValidID | ( | int | an_id | ) |
Definition at line 1659 of file musicmetadata.cpp.
Referenced by Playlist::fillSongsFromSonglist().
|
private |
Definition at line 453 of file musicmetadata.h.
|
private |
Definition at line 455 of file musicmetadata.h.
|
private |
Definition at line 456 of file musicmetadata.h.
|
private |
Definition at line 459 of file musicmetadata.h.
|
private |
Definition at line 462 of file musicmetadata.h.
|
private |
Definition at line 463 of file musicmetadata.h.
|
private |
Definition at line 465 of file musicmetadata.h.
Definition at line 466 of file musicmetadata.h.
|
private |
Definition at line 468 of file musicmetadata.h.
|
private |
Definition at line 469 of file musicmetadata.h.
|
private |
Definition at line 470 of file musicmetadata.h.
|
private |
Definition at line 471 of file musicmetadata.h.