#include <playlist.h>
Definition at line 71 of file playlist.h.
Public Member Functions | |
| Playlist (AllMusic *all_music_ptr) | |
| ~Playlist () | |
| Playlist & | operator= (const Playlist &rhs) |
| void | setParent (PlaylistsContainer *myparent) |
| void | postLoad (void) |
| void | loadPlaylist (QString a_name, QString a_host) |
| void | loadPlaylistByID (int id, QString a_host) |
| void | savePlaylist (QString a_name, QString a_host) |
| void | putYourselfOnTheListView (UIListGenericTree *a_parent) |
| int | writeTree (GenericTree *tree_to_write_to, int a_counter) |
| void | describeYourself (void) |
| void | fillSongsFromCD () |
| void | fillSongsFromSonglist (bool filter) |
| void | fillSongsFromSonglist (QString songList, bool filter) |
| void | fillSonglistFromSongs () |
| void | fillSonglistFromQuery (QString whereClause, bool removeDuplicates=false, InsertPLOption insertOption=PL_REPLACE, int currentTrackID=0) |
| void | fillSonglistFromSmartPlaylist (QString category, QString name, bool removeDuplicates=false, InsertPLOption insertOption=PL_REPLACE, int currentTrackID=0) |
| QString | getSonglist (void) |
| void | moveTrackUpDown (bool flag, Track *the_track) |
| bool | checkTrack (int a_track_id, bool cd_flag) |
| void | addTrack (int the_track_id, bool update_display, bool cd_flag) |
| void | removeTrack (int the_track_id, bool cd_flag) |
| void | removeAllTracks (void) |
| void | removeAllWidgets (void) |
| void | copyTracks (Playlist *to_ptr, bool update_display) |
| bool | hasChanged (void) |
| void | Changed (void) |
| QString | getName (void) |
| void | setName (QString a_name) |
| int | getID (void) |
| int | getFirstTrackID (void) |
| void | setID (int x) |
| bool | containsReference (int to_check, int depth) |
| void | ripOutAllCDTracksNow () |
| void | computeSize (double &size_in_MB, double &size_in_sec) |
| int | CreateCDMP3 (void) |
| int | CreateCDAudio (void) |
Private Member Functions | |
| QString | removeDuplicateTracks (const QString &new_songlist) |
Private Attributes | |
| int | playlistid |
| QString | name |
| QString | raw_songlist |
| QPtrList< Track > | songs |
| AllMusic * | all_available_music |
| PlaylistsContainer * | parent |
| bool | changed |
| Playlist::Playlist | ( | AllMusic * | all_music_ptr | ) |
Definition at line 376 of file playlist.cpp.
| Playlist::~Playlist | ( | ) |
Definition at line 426 of file playlist.cpp.
Definition at line 432 of file playlist.cpp.
| void Playlist::setParent | ( | PlaylistsContainer * | myparent | ) | [inline] |
Definition at line 79 of file playlist.h.
Referenced by PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::createNewPlaylist(), and PlaylistsContainer::load().
| void Playlist::postLoad | ( | void | ) |
Definition at line 55 of file playlist.cpp.
Referenced by fillSonglistFromQuery(), and PlaylistsContainer::postLoad().
| void Playlist::loadPlaylist | ( | QString | a_name, | |
| QString | a_host | |||
| ) |
| void Playlist::loadPlaylistByID | ( | int | id, | |
| QString | a_host | |||
| ) |
| void Playlist::savePlaylist | ( | QString | a_name, | |
| QString | a_host | |||
| ) |
Definition at line 808 of file playlist.cpp.
Referenced by PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::createNewPlaylist(), loadPlaylist(), and PlaylistsContainer::save().
| void Playlist::putYourselfOnTheListView | ( | UIListGenericTree * | a_parent | ) |
Definition at line 409 of file playlist.cpp.
Referenced by DatabaseBox::keepFilling(), and PlaylistsContainer::showRelevantPlaylists().
| int Playlist::writeTree | ( | GenericTree * | tree_to_write_to, | |
| int | a_counter | |||
| ) |
Definition at line 925 of file playlist.cpp.
Referenced by PlaylistsContainer::writeTree(), and writeTree().
| void Playlist::describeYourself | ( | void | ) |
| void Playlist::fillSongsFromCD | ( | ) |
| void Playlist::fillSongsFromSonglist | ( | bool | filter | ) |
Definition at line 551 of file playlist.cpp.
Referenced by fillSonglistFromQuery(), fillSongsFromSonglist(), PlaybackBoxMusic::handleTreeListSignals(), and PlaylistsContainer::load().
| void Playlist::fillSongsFromSonglist | ( | QString | songList, | |
| bool | filter | |||
| ) |
Definition at line 545 of file playlist.cpp.
| void Playlist::fillSonglistFromSongs | ( | ) |
Definition at line 595 of file playlist.cpp.
Referenced by copyTracks(), PlaylistsContainer::save(), and savePlaylist().
| void Playlist::fillSonglistFromQuery | ( | QString | whereClause, | |
| bool | removeDuplicates = false, |
|||
| InsertPLOption | insertOption = PL_REPLACE, |
|||
| int | currentTrackID = 0 | |||
| ) |
Definition at line 612 of file playlist.cpp.
Referenced by PlaybackBoxMusic::doUpdatePlaylist(), and fillSonglistFromSmartPlaylist().
| void Playlist::fillSonglistFromSmartPlaylist | ( | QString | category, | |
| QString | name, | |||
| bool | removeDuplicates = false, |
|||
| InsertPLOption | insertOption = PL_REPLACE, |
|||
| int | currentTrackID = 0 | |||
| ) |
| QString Playlist::getSonglist | ( | void | ) | [inline] |
Definition at line 102 of file playlist.cpp.
Referenced by PlaylistsContainer::copyNewPlaylist(), copyTracks(), DatabaseBox::doSelected(), and fillSongsFromCD().
| void Playlist::removeTrack | ( | int | the_track_id, | |
| bool | cd_flag | |||
| ) |
Definition at line 176 of file playlist.cpp.
Referenced by PlaylistsContainer::deletePlaylist(), DatabaseBox::deleteTrack(), Track::deleteYourself(), DatabaseBox::doSelected(), and PlaylistTitle::removeTrack().
| void Playlist::removeAllTracks | ( | void | ) |
Definition at line 139 of file playlist.cpp.
Referenced by PlaylistsContainer::clearActive(), PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::copyToActive(), PlaylistsContainer::deletePlaylist(), fillSonglistFromQuery(), PlaybackBoxMusic::occasionallyCheckCD(), and PlaylistsContainer::popBackPlaylist().
| void Playlist::removeAllWidgets | ( | void | ) |
Definition at line 88 of file playlist.cpp.
Referenced by PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::copyToActive(), and PlaylistsContainer::popBackPlaylist().
| bool Playlist::hasChanged | ( | void | ) | [inline] |
| void Playlist::Changed | ( | void | ) | [inline] |
Definition at line 121 of file playlist.h.
Referenced by PlaylistsContainer::clearActive(), PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::copyToActive(), PlaylistsContainer::createNewPlaylist(), PlaylistsContainer::popBackPlaylist(), postLoad(), and PlaylistsContainer::renamePlaylist().
| QString Playlist::getName | ( | void | ) | [inline] |
Definition at line 123 of file playlist.h.
Referenced by PlaylistsContainer::getPlaylistName(), PlaylistsContainer::nameIsUnique(), PlaylistsContainer::save(), PlaylistsContainer::showRelevantPlaylists(), and PlaylistsContainer::writeTree().
| void Playlist::setName | ( | QString | a_name | ) | [inline] |
| int Playlist::getID | ( | void | ) | [inline] |
Definition at line 126 of file playlist.h.
Referenced by PlaylistsContainer::copyNewPlaylist(), PlaylistsContainer::getPlaylist(), PlaylistsContainer::getPlaylistName(), PlaylistsContainer::nameIsUnique(), PlaylistsContainer::renamePlaylist(), PlaylistsContainer::showRelevantPlaylists(), and PlaylistsContainer::writeTree().
| int Playlist::getFirstTrackID | ( | void | ) |
Definition at line 416 of file playlist.cpp.
| void Playlist::setID | ( | int | x | ) | [inline] |
Definition at line 128 of file playlist.h.
| bool Playlist::containsReference | ( | int | to_check, | |
| int | depth | |||
| ) |
Definition at line 1385 of file playlist.cpp.
Referenced by containsReference(), PlaylistsContainer::refreshRelevantPlaylists(), and PlaylistsContainer::showRelevantPlaylists().
| void Playlist::ripOutAllCDTracksNow | ( | ) |
Definition at line 160 of file playlist.cpp.
Referenced by PlaybackBoxMusic::occasionallyCheckCD(), and DatabaseBox::occasionallyCheckCD().
| void Playlist::computeSize | ( | double & | size_in_MB, | |
| double & | size_in_sec | |||
| ) |
Definition at line 1605 of file playlist.cpp.
Referenced by computeSize(), and DatabaseBox::doActivePopup().
| int Playlist::CreateCDMP3 | ( | void | ) |
| int Playlist::CreateCDAudio | ( | void | ) |
| QString Playlist::removeDuplicateTracks | ( | const QString & | new_songlist | ) | [private] |
int Playlist::playlistid [private] |
Definition at line 139 of file playlist.h.
Referenced by getID(), loadPlaylist(), loadPlaylistByID(), operator=(), Playlist(), savePlaylist(), and setID().
QString Playlist::name [private] |
Definition at line 140 of file playlist.h.
Referenced by getName(), loadPlaylist(), loadPlaylistByID(), operator=(), Playlist(), savePlaylist(), and setName().
QString Playlist::raw_songlist [private] |
Definition at line 141 of file playlist.h.
Referenced by fillSonglistFromQuery(), fillSonglistFromSongs(), fillSongsFromSonglist(), getSonglist(), loadPlaylist(), loadPlaylistByID(), operator=(), Playlist(), removeDuplicateTracks(), and savePlaylist().
QPtrList<Track> Playlist::songs [private] |
Definition at line 142 of file playlist.h.
Referenced by addTrack(), checkTrack(), computeSize(), containsReference(), copyTracks(), CreateCDMP3(), describeYourself(), fillSonglistFromSongs(), fillSongsFromSonglist(), getFirstTrackID(), moveTrackUpDown(), operator=(), Playlist(), postLoad(), putYourselfOnTheListView(), removeAllTracks(), removeAllWidgets(), removeTrack(), ripOutAllCDTracksNow(), writeTree(), and ~Playlist().
AllMusic* Playlist::all_available_music [private] |
Definition at line 143 of file playlist.h.
Referenced by addTrack(), computeSize(), CreateCDMP3(), fillSongsFromCD(), fillSongsFromSonglist(), Playlist(), savePlaylist(), and writeTree().
PlaylistsContainer* Playlist::parent [private] |
Definition at line 144 of file playlist.h.
Referenced by addTrack(), computeSize(), containsReference(), postLoad(), setParent(), and writeTree().
bool Playlist::changed [private] |
Definition at line 145 of file playlist.h.
Referenced by addTrack(), Changed(), fillSongsFromSonglist(), hasChanged(), loadPlaylist(), moveTrackUpDown(), Playlist(), removeAllTracks(), removeTrack(), and ripOutAllCDTracksNow().
1.5.5