MythTV  0.26-pre
Public Member Functions | Private Types | Private Attributes
AllMusic Class Reference

#include <metadata.h>

List of all members.

Public Member Functions

 AllMusic (void)
 ~AllMusic ()
MetadatagetMetadata (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)
MetadatagetCDMetadata (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

Detailed Description

Definition at line 318 of file metadata.h.


Member Typedef Documentation

typedef QMap<int, Metadata*> AllMusic::MusicMap [private]

Definition at line 355 of file metadata.h.


Constructor & Destructor Documentation

Definition at line 970 of file metadata.cpp.

Definition at line 986 of file metadata.cpp.


Member Function Documentation

bool AllMusic::updateMetadata ( int  an_id,
Metadata the_track 
)

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.

Check each Metadata entry and save those that have changed (ratings, etc.)

Definition at line 1174 of file metadata.cpp.

Referenced by mythplugin_destroy(), runScan(), and MusicCommon::~MusicCommon().

Start loading metadata.

Makes the AllMusic object run it's resync in a thread. Once done, the doneLoading() method will return true.

Note:
Alternatively, this could be made to emit a signal so the caller won't have to poll for completion.
Returns:
true if the loader thread was started

Definition at line 1030 of file metadata.cpp.

Referenced by AllMusic(), and MusicData::reloadMusic().

Definition at line 1050 of file metadata.cpp.

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]
bool AllMusic::doneLoading ( ) const [inline]

Definition at line 342 of file metadata.h.

Referenced by loadMusic(), MusicData::reloadMusic(), and PlaylistLoadingThread::run().

Definition at line 1004 of file metadata.cpp.

Referenced by mythplugin_destroy(), runScan(), and startLoading().

MetadataPtrList* AllMusic::getAllMetadata ( void  ) [inline]

Definition at line 345 of file metadata.h.

Referenced by EditAlbumartDialog::~EditAlbumartDialog().

Definition at line 1154 of file metadata.cpp.

Referenced by Playlist::fillSongsFromSonglist().


Member Data Documentation

MetadataPtrList AllMusic::m_all_music [private]

Definition at line 350 of file metadata.h.

Referenced by resync(), save(), and ~AllMusic().

Definition at line 352 of file metadata.h.

Referenced by resync().

Definition at line 353 of file metadata.h.

Referenced by resync().

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(), and ~AllMusic().

QString AllMusic::m_cdTitle [private]

Definition at line 360 of file metadata.h.

Referenced by clearCDData().

MetadataLoadingThread* AllMusic::m_metadata_loader [private]

Definition at line 362 of file metadata.h.

Referenced by cleanOutThreads(), startLoading(), and ~AllMusic().

Definition at line 363 of file metadata.h.

Referenced by resync(), and startLoading().

Definition at line 364 of file metadata.h.

Definition at line 366 of file metadata.h.

Referenced by resync().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends