#include <metadata.h>
Public Member Functions | |
| AllMusic (void) | |
| ~AllMusic () | |
| Metadata * | getMetadata (int an_id) |
| bool | updateMetadata (int an_id, Metadata *the_track) |
| int | count () const |
| int | countLoaded () const |
| void | save () |
| Check each Metadata entry and save those that have changed (ratings, etc.). | |
| bool | startLoading (void) |
| Start loading metadata. | |
| void | resync () |
| void | clearCDData (void) |
| void | addCDTrack (const Metadata &the_track) |
| bool | checkCDTrack (Metadata *the_track) |
| Metadata * | 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) |
| bool | isValidID (int an_id) |
Private Types | |
| typedef QMap< int, Metadata * > | MusicMap |
Private Attributes | |
| MetadataPtrList | m_all_music |
| int | m_numPcs |
| int | m_numLoaded |
| MusicMap | music_map |
| MetadataPtrList | m_cdData |
| QString | m_cdTitle |
| MetadataLoadingThread * | m_metadata_loader |
| bool | m_done_loading |
| int | m_last_listed |
| int | m_playcountMin |
| int | m_playcountMax |
| double | m_lastplayMin |
| double | m_lastplayMax |
Definition at line 318 of file metadata.h.
typedef QMap<int, Metadata*> AllMusic::MusicMap [private] |
Definition at line 355 of file metadata.h.
| AllMusic::AllMusic | ( | void | ) |
Definition at line 970 of file metadata.cpp.
| AllMusic::~AllMusic | ( | ) |
Definition at line 986 of file metadata.cpp.
| Metadata * AllMusic::getMetadata | ( | int | an_id | ) |
Definition at line 1146 of file metadata.cpp.
Referenced by Playlist::addTrack(), MusicPlayer::customEvent(), MusicCommon::customEvent(), Playlist::fillSongsFromSonglist(), MusicPlayer::removeTrack(), SmartPLResultViewer::setSQL(), updateMetadata(), and SearchView::updateTracksList().
Definition at line 1159 of file metadata.cpp.
| int AllMusic::count | ( | void | ) | const [inline] |
Definition at line 327 of file metadata.h.
| int AllMusic::countLoaded | ( | ) | const [inline] |
Definition at line 328 of file metadata.h.
| void AllMusic::save | ( | void | ) |
Check each Metadata entry and save those that have changed (ratings, etc.).
Definition at line 1174 of file metadata.cpp.
Referenced by mythplugin_destroy(), and MusicCommon::~MusicCommon().
| 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 1030 of file metadata.cpp.
Referenced by AllMusic(), and MusicData::reloadMusic().
| void AllMusic::resync | ( | ) |
Definition at line 1050 of file metadata.cpp.
| void AllMusic::clearCDData | ( | void | ) |
Definition at line 1185 of file metadata.cpp.
Referenced by handleMedia(), and CDWatcherThread::run().
| void AllMusic::addCDTrack | ( | const Metadata & | the_track | ) |
Definition at line 1196 of file metadata.cpp.
Referenced by CDWatcherThread::run().
Definition at line 1205 of file metadata.cpp.
Referenced by CDWatcherThread::run().
| Metadata * AllMusic::getCDMetadata | ( | int | m_the_track | ) |
Definition at line 1216 of file metadata.cpp.
Referenced by MusicCommon::fromCD().
| QString AllMusic::getCDTitle | ( | void | ) | const [inline] |
Definition at line 338 of file metadata.h.
| void AllMusic::setCDTitle | ( | const QString & | a_title | ) | [inline] |
Definition at line 339 of file metadata.h.
Referenced by CDWatcherThread::run().
| int AllMusic::getCDTrackCount | ( | void | ) | const [inline] |
Definition at line 340 of file metadata.h.
Referenced by MusicCommon::createQuickPlaylistsMenu(), MusicCommon::fromCD(), and CDWatcherThread::run().
| bool AllMusic::doneLoading | ( | ) | const [inline] |
Definition at line 342 of file metadata.h.
Referenced by loadMusic(), MusicData::reloadMusic(), and PlaylistLoadingThread::run().
| bool AllMusic::cleanOutThreads | ( | ) |
Definition at line 1004 of file metadata.cpp.
Referenced by mythplugin_destroy(), and startLoading().
| MetadataPtrList* AllMusic::getAllMetadata | ( | void | ) | [inline] |
Definition at line 345 of file metadata.h.
Referenced by EditAlbumartDialog::~EditAlbumartDialog().
| bool AllMusic::isValidID | ( | int | an_id | ) |
Definition at line 1154 of file metadata.cpp.
Referenced by Playlist::fillSongsFromSonglist().
MetadataPtrList AllMusic::m_all_music [private] |
Definition at line 350 of file metadata.h.
Referenced by getAllMetadata(), resync(), save(), and ~AllMusic().
int AllMusic::m_numPcs [private] |
Definition at line 352 of file metadata.h.
int AllMusic::m_numLoaded [private] |
Definition at line 353 of file metadata.h.
Referenced by countLoaded(), and resync().
MusicMap AllMusic::music_map [private] |
Definition at line 356 of file metadata.h.
Referenced by addCDTrack(), getMetadata(), isValidID(), and resync().
MetadataPtrList AllMusic::m_cdData [private] |
Definition at line 359 of file metadata.h.
Referenced by addCDTrack(), checkCDTrack(), clearCDData(), getCDMetadata(), getCDTrackCount(), and ~AllMusic().
QString AllMusic::m_cdTitle [private] |
Definition at line 360 of file metadata.h.
Referenced by clearCDData(), getCDTitle(), and setCDTitle().
MetadataLoadingThread* AllMusic::m_metadata_loader [private] |
Definition at line 362 of file metadata.h.
Referenced by cleanOutThreads(), startLoading(), and ~AllMusic().
bool AllMusic::m_done_loading [private] |
Definition at line 363 of file metadata.h.
Referenced by doneLoading(), resync(), and startLoading().
int AllMusic::m_last_listed [private] |
Definition at line 364 of file metadata.h.
int AllMusic::m_playcountMin [private] |
Definition at line 366 of file metadata.h.
Referenced by resync().
int AllMusic::m_playcountMax [private] |
Definition at line 367 of file metadata.h.
Referenced by resync().
double AllMusic::m_lastplayMin [private] |
Definition at line 368 of file metadata.h.
Referenced by resync().
double AllMusic::m_lastplayMax [private] |
Definition at line 369 of file metadata.h.
Referenced by resync().
1.6.3