AllMusic Class Reference

#include <metadata.h>

List of all members.


Detailed Description

Definition at line 333 of file mythmusic/mythmusic/metadata.h.


Public Member Functions

 AllMusic (QString path_assignment, QString a_startdir)
 ~AllMusic ()
QString getLabel (int an_id, bool *error_flag)
MetadatagetMetadata (int an_id)
bool updateMetadata (int an_id, Metadata *the_track)
int count () const
int countLoaded () const
void save ()
bool startLoading (void)
 Start loading metadata.
void resync ()
void clearCDData ()
void addCDTrack (Metadata *the_track)
bool checkCDTrack (Metadata *the_track)
bool getCDMetadata (int m_the_track, Metadata *some_metadata)
QString getCDTitle ()
void setCDTitle (const QString &a_title)
void buildTree ()
void printTree ()
void sortTree ()
void clearTree ()
void writeTree (GenericTree *tree_to_write_to)
void setSorting (QString a_paths)
bool putYourselfOnTheListView (TreeCheckItem *where)
void putCDOnTheListView (CDCheckItem *where)
bool doneLoading ()
bool cleanOutThreads ()
int getCDTrackCount ()
void resetListings ()
void setAllVisible (bool visible)

Private Types

typedef QMap< int, Metadata * > MusicMap
typedef QValueList< MetadataValueMetadata

Private Attributes

MetadataPtrList m_all_music
MusicNodem_root_node
int m_numPcs
int m_numLoaded
MusicMap music_map
ValueMetadata m_cd_data
QString m_cd_title
QString m_startdir
QString m_paths
MetadataLoadingThreadm_metadata_loader
bool m_done_loading
int m_last_listed
int m_playcountMin
int m_playcountMax
double m_lastplayMin
double m_lastplayMax

Member Typedef Documentation

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

Definition at line 384 of file mythmusic/mythmusic/metadata.h.

typedef QValueList<Metadata> AllMusic::ValueMetadata [private]

Definition at line 387 of file mythmusic/mythmusic/metadata.h.


Constructor & Destructor Documentation

AllMusic::AllMusic ( QString  path_assignment,
QString  a_startdir 
)

Definition at line 864 of file mythmusic/mythmusic/metadata.cpp.

AllMusic::~AllMusic (  ) 

Definition at line 890 of file mythmusic/mythmusic/metadata.cpp.


Member Function Documentation

QString AllMusic::getLabel ( int  an_id,
bool error_flag 
)

Definition at line 1137 of file mythmusic/mythmusic/metadata.cpp.

Referenced by Track::postLoad().

Metadata * AllMusic::getMetadata ( int  an_id  ) 

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

Definition at line 1209 of file mythmusic/mythmusic/metadata.cpp.

int AllMusic::count ( void   )  const [inline]

Definition at line 346 of file mythmusic/mythmusic/metadata.h.

Referenced by PlaybackBoxMusic::checkForPlaylists().

int AllMusic::countLoaded (  )  const [inline]

Definition at line 347 of file mythmusic/mythmusic/metadata.h.

Referenced by PlaybackBoxMusic::checkForPlaylists().

void AllMusic::save ( void   ) 

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.

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 926 of file mythmusic/mythmusic/metadata.cpp.

Referenced by AllMusic(), RebuildMusicTree(), and PlaybackBoxMusic::showEditMetadataDialog().

void AllMusic::resync (  ) 

Definition at line 944 of file mythmusic/mythmusic/metadata.cpp.

Referenced by MetadataLoadingThread::run().

void AllMusic::clearCDData (  ) 

Definition at line 1241 of file mythmusic/mythmusic/metadata.cpp.

Referenced by ReadCDThread::run().

void AllMusic::addCDTrack ( Metadata the_track  ) 

Definition at line 1247 of file mythmusic/mythmusic/metadata.cpp.

Referenced by ReadCDThread::run().

bool AllMusic::checkCDTrack ( Metadata the_track  ) 

Definition at line 1252 of file mythmusic/mythmusic/metadata.cpp.

Referenced by ReadCDThread::run().

bool AllMusic::getCDMetadata ( int  m_the_track,
Metadata some_metadata 
)

Definition at line 1265 of file mythmusic/mythmusic/metadata.cpp.

Referenced by DatabaseBox::entered().

QString AllMusic::getCDTitle (  )  [inline]

Definition at line 355 of file mythmusic/mythmusic/metadata.h.

Referenced by DatabaseBox::fillCD().

void AllMusic::setCDTitle ( const QString &  a_title  )  [inline]

Definition at line 356 of file mythmusic/mythmusic/metadata.h.

Referenced by ReadCDThread::run().

void AllMusic::buildTree (  ) 

Definition at line 1074 of file mythmusic/mythmusic/metadata.cpp.

Referenced by Playlist::fillSongsFromSonglist(), and resync().

void AllMusic::printTree (  ) 

Definition at line 1066 of file mythmusic/mythmusic/metadata.cpp.

void AllMusic::sortTree (  ) 

Definition at line 1061 of file mythmusic/mythmusic/metadata.cpp.

Referenced by Playlist::fillSongsFromSonglist(), and resync().

void AllMusic::clearTree (  )  [inline]

Definition at line 360 of file mythmusic/mythmusic/metadata.h.

Referenced by Playlist::fillSongsFromSonglist().

void AllMusic::writeTree ( GenericTree tree_to_write_to  ) 

Definition at line 1104 of file mythmusic/mythmusic/metadata.cpp.

Referenced by PlaylistsContainer::writeTree().

void AllMusic::setSorting ( QString  a_paths  ) 

Definition at line 1280 of file mythmusic/mythmusic/metadata.cpp.

Referenced by AllMusic().

bool AllMusic::putYourselfOnTheListView ( TreeCheckItem where  ) 

Definition at line 1109 of file mythmusic/mythmusic/metadata.cpp.

Referenced by DatabaseBox::keepFilling().

void AllMusic::putCDOnTheListView ( CDCheckItem where  ) 

Definition at line 1115 of file mythmusic/mythmusic/metadata.cpp.

Referenced by DatabaseBox::fillCD().

bool AllMusic::doneLoading (  )  [inline]

bool AllMusic::cleanOutThreads (  ) 

int AllMusic::getCDTrackCount (  )  [inline]

void AllMusic::resetListings (  )  [inline]

Definition at line 368 of file mythmusic/mythmusic/metadata.h.

Referenced by DatabaseBox::~DatabaseBox().

void AllMusic::setAllVisible ( bool  visible  ) 

Definition at line 1306 of file mythmusic/mythmusic/metadata.cpp.

Referenced by Playlist::fillSongsFromSonglist().


Member Data Documentation

int AllMusic::m_numPcs [private]

Definition at line 376 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), count(), and resync().

int AllMusic::m_numLoaded [private]

Definition at line 377 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), buildTree(), countLoaded(), and resync().

Definition at line 385 of file mythmusic/mythmusic/metadata.h.

Referenced by getLabel(), getMetadata(), and resync().

QString AllMusic::m_cd_title [private]

Definition at line 389 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), clearCDData(), getCDTitle(), and setCDTitle().

QString AllMusic::m_startdir [private]

Definition at line 391 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), resync(), and setSorting().

QString AllMusic::m_paths [private]

Definition at line 392 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), buildTree(), and setSorting().

Definition at line 395 of file mythmusic/mythmusic/metadata.h.

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

Definition at line 396 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), doneLoading(), resync(), and startLoading().

int AllMusic::m_last_listed [private]

Definition at line 397 of file mythmusic/mythmusic/metadata.h.

Referenced by AllMusic(), and resetListings().

int AllMusic::m_playcountMin [private]

Definition at line 399 of file mythmusic/mythmusic/metadata.h.

Referenced by resync().

int AllMusic::m_playcountMax [private]

Definition at line 400 of file mythmusic/mythmusic/metadata.h.

Referenced by resync().

double AllMusic::m_lastplayMin [private]

Definition at line 401 of file mythmusic/mythmusic/metadata.h.

Referenced by resync().

double AllMusic::m_lastplayMax [private]

Definition at line 402 of file mythmusic/mythmusic/metadata.h.

Referenced by resync().


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

Generated on Sat Jul 31 05:18:30 2010 for MythTV by  doxygen 1.5.5