|
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 426 of file musicmetadata.h.
|
private |
Definition at line 466 of file musicmetadata.h.
| AllMusic::AllMusic | ( | void | ) |
Definition at line 1437 of file musicmetadata.cpp.
| AllMusic::~AllMusic | ( | ) |
Definition at line 1443 of file musicmetadata.cpp.
| void AllMusic::addCDTrack | ( | const MusicMetadata & | the_track | ) |
Definition at line 1706 of file musicmetadata.cpp.
Referenced by handleMedia().
| bool AllMusic::checkCDTrack | ( | MusicMetadata * | the_track | ) |
Definition at line 1715 of file musicmetadata.cpp.
| bool AllMusic::cleanOutThreads | ( | ) |
Definition at line 1461 of file musicmetadata.cpp.
Referenced by mythplugin_destroy(), and startLoading().
| void AllMusic::clearCDData | ( | void | ) |
Definition at line 1691 of file musicmetadata.cpp.
Referenced by handleMedia().
|
inline |
Definition at line 437 of file musicmetadata.h.
|
inline |
Definition at line 438 of file musicmetadata.h.
|
inline |
Definition at line 452 of file musicmetadata.h.
Referenced by MusicData::loadMusic(), MusicData::reloadMusic(), and PlaylistLoadingThread::run().
|
inline |
Definition at line 456 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode(), and PlaylistEditorView::getCDTracks().
|
inline |
Definition at line 455 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode(), and EditMetadataCommon::~EditMetadataCommon().
| MusicMetadata * AllMusic::getCDMetadata | ( | int | m_the_track | ) |
Definition at line 1723 of file musicmetadata.cpp.
Referenced by MusicCommon::fromCD(), and handleMedia().
|
inline |
Definition at line 448 of file musicmetadata.h.
Referenced by PlaylistEditorView::createRootNode().
|
inline |
Definition at line 450 of file musicmetadata.h.
Referenced by MusicCommon::createQuickPlaylistsMenu(), PlaylistEditorView::createRootNode(), MusicCommon::fromCD(), and handleMedia().
| MusicMetadata * AllMusic::getMetadata | ( | int | an_id | ) |
Definition at line 1653 of file musicmetadata.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), MusicPlayer::customEvent(), Playlist::getRawSongAt(), Playlist::getSongAt(), PlaylistEditorView::keyPressEvent(), MusicPlayer::removeTrack(), SmartPLResultViewer::setSQL(), PlaylistEditorView::treeItemVisible(), updateMetadata(), and SearchView::updateTracksList().
| bool AllMusic::isValidID | ( | int | an_id | ) |
Definition at line 1661 of file musicmetadata.cpp.
Referenced by Playlist::fillSongsFromSonglist().
|
private |
| void AllMusic::resync | ( | ) |
resync our cache with the database
Definition at line 1506 of file musicmetadata.cpp.
Referenced by MetadataLoadingThread::run().
| void AllMusic::save | ( | void | ) |
Check each MusicMetadata entry and save those that have changed (ratings, etc.)
Definition at line 1681 of file musicmetadata.cpp.
Referenced by mythplugin_destroy().
|
inline |
Definition at line 449 of file musicmetadata.h.
| 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 1487 of file musicmetadata.cpp.
Referenced by AllMusic(), and MusicData::reloadMusic().
| bool AllMusic::updateMetadata | ( | int | an_id, |
| MusicMetadata * | the_track | ||
| ) |
Definition at line 1666 of file musicmetadata.cpp.
|
private |
Definition at line 461 of file musicmetadata.h.
Referenced by resync(), save(), and ~AllMusic().
|
private |
Definition at line 470 of file musicmetadata.h.
Referenced by addCDTrack(), checkCDTrack(), clearCDData(), getCDMetadata(), and ~AllMusic().
|
private |
Definition at line 471 of file musicmetadata.h.
Referenced by clearCDData().
Definition at line 474 of file musicmetadata.h.
Referenced by resync(), and startLoading().
|
private |
Definition at line 479 of file musicmetadata.h.
Referenced by resync().
|
private |
Definition at line 478 of file musicmetadata.h.
Referenced by resync().
|
private |
Definition at line 473 of file musicmetadata.h.
Referenced by cleanOutThreads(), startLoading(), and ~AllMusic().
|
private |
Definition at line 467 of file musicmetadata.h.
Referenced by addCDTrack(), clearCDData(), getMetadata(), isValidID(), and resync().
|
private |
Definition at line 464 of file musicmetadata.h.
Referenced by resync().
|
private |
Definition at line 463 of file musicmetadata.h.
Referenced by resync().
|
private |
Definition at line 477 of file musicmetadata.h.
Referenced by resync().
|
private |
Definition at line 476 of file musicmetadata.h.
Referenced by resync().