#include <playlist.h>
Public Member Functions | |
| Playlist (void) | |
| ~Playlist () | |
| void | setParent (PlaylistContainer *myparent) |
| void | loadPlaylist (QString a_name, QString a_host) |
| void | loadPlaylistByID (int id, QString a_host) |
| void | savePlaylist (QString a_name, QString a_host) |
| void | shuffleTracks (MusicPlayer::ShuffleMode mode) |
| void | describeYourself (void) const |
| void | fillSongsFromCD () |
| void | fillSongsFromSonglist (QString songList) |
| 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) |
| void | fillSonglistFromList (const QList< int > &songList, bool removeDuplicates, InsertPLOption insertOption, int currentTrackID) |
| QString | toRawSonglist (bool shuffled=false) |
| const SongList & | getSongs (void) |
| Metadata * | getSongAt (int pos) |
| int | getCount (void) |
| void | moveTrackUpDown (bool flag, int where_its_at) |
| void | moveTrackUpDown (bool flag, Metadata *the_track) |
| bool | checkTrack (int a_track_id) const |
| void | addTrack (int trackID, bool update_display) |
| Given a tracks ID, add that track to this playlist. | |
| void | addTrack (Metadata *mdata, bool update_display) |
| Given a tracks metadata, add that track to this playlist. | |
| void | removeTrack (int the_track_id) |
| void | removeAllTracks (void) |
| void | copyTracks (Playlist *to_ptr, bool update_display) const |
| bool | hasChanged (void) |
| void | Changed (void) |
| QString | getName (void) |
| void | setName (QString a_name) |
| int | getID (void) |
| void | setID (int x) |
| void | getStats (uint *trackCount, uint *totalLength, uint currentTrack=0, uint *playedLength=NULL) const |
| void | computeSize (double &size_in_MB, double &size_in_sec) |
| int | CreateCDMP3 (void) |
| int | CreateCDAudio (void) |
Private Slots | |
| void | mkisofsData (int fd) |
| void | cdrecordData (int fd) |
| void | processExit (uint retval=0) |
Private Member Functions | |
| QString | removeDuplicateTracks (const QString &orig_songlist, const QString &new_songlist) |
Private Attributes | |
| int | m_playlistid |
| QString | m_name |
| SongList | m_songs |
| SongList | m_shuffledSongs |
| QMap< int, Metadata * > | m_songMap |
| PlaylistContainer * | m_parent |
| bool | m_changed |
| MythProgressDialog * | m_progress |
| MythSystem * | m_proc |
| uint | m_procExitVal |
Definition at line 38 of file playlist.h.
| Playlist::Playlist | ( | void | ) |
Definition at line 137 of file playlist.cpp.
| Playlist::~Playlist | ( | ) |
Definition at line 148 of file playlist.cpp.
| void Playlist::setParent | ( | PlaylistContainer * | myparent | ) | [inline] |
Definition at line 46 of file playlist.h.
Referenced by PlaylistContainer::copyNewPlaylist(), PlaylistContainer::createNewPlaylist(), and PlaylistContainer::load().
| void Playlist::loadPlaylist | ( | QString | a_name, | |
| QString | a_host | |||
| ) |
Definition at line 506 of file playlist.cpp.
Referenced by PlaylistContainer::load().
| void Playlist::loadPlaylistByID | ( | int | id, | |
| QString | a_host | |||
| ) |
Definition at line 568 of file playlist.cpp.
Referenced by PlaylistContainer::load().
| void Playlist::savePlaylist | ( | QString | a_name, | |
| QString | a_host | |||
| ) |
Definition at line 907 of file playlist.cpp.
Referenced by PlaylistContainer::copyNewPlaylist(), PlaylistContainer::createNewPlaylist(), loadPlaylist(), and PlaylistContainer::save().
| void Playlist::shuffleTracks | ( | MusicPlayer::ShuffleMode | mode | ) |
Definition at line 155 of file playlist.cpp.
Referenced by fillSongsFromSonglist(), loadPlaylist(), and MusicPlayer::setShuffleMode().
| void Playlist::describeYourself | ( | void | ) | const |
Definition at line 457 of file playlist.cpp.
Referenced by PlaylistContainer::describeYourself().
| void Playlist::fillSongsFromCD | ( | ) |
Definition at line 785 of file playlist.cpp.
| void Playlist::fillSongsFromSonglist | ( | QString | songList | ) |
Definition at line 597 of file playlist.cpp.
Referenced by MusicCommon::customEvent(), fillSonglistFromList(), fillSonglistFromQuery(), loadPlaylist(), and loadPlaylistByID().
| void Playlist::fillSonglistFromQuery | ( | QString | whereClause, | |
| bool | removeDuplicates = false, |
|||
| InsertPLOption | insertOption = PL_REPLACE, |
|||
| int | currentTrackID = 0 | |||
| ) |
Definition at line 630 of file playlist.cpp.
Referenced by MusicCommon::doUpdatePlaylist(), and fillSonglistFromSmartPlaylist().
| void Playlist::fillSonglistFromSmartPlaylist | ( | QString | category, | |
| QString | name, | |||
| bool | removeDuplicates = false, |
|||
| InsertPLOption | insertOption = PL_REPLACE, |
|||
| int | currentTrackID = 0 | |||
| ) |
Definition at line 817 of file playlist.cpp.
| void Playlist::fillSonglistFromList | ( | const QList< int > & | songList, | |
| bool | removeDuplicates, | |||
| InsertPLOption | insertOption, | |||
| int | currentTrackID | |||
| ) |
Definition at line 721 of file playlist.cpp.
Referenced by MusicCommon::doUpdatePlaylist().
| QString Playlist::toRawSonglist | ( | bool | shuffled = false |
) |
Definition at line 790 of file playlist.cpp.
Referenced by MusicCommon::customEvent(), fillSonglistFromList(), fillSonglistFromQuery(), and savePlaylist().
| const SongList& Playlist::getSongs | ( | void | ) | [inline] |
Definition at line 73 of file playlist.h.
Referenced by MusicPlayer::changeCurrentTrack(), MusicCommon::doUpdatePlaylist(), MusicPlayer::loadPlaylist(), MusicPlayer::moveTrackUpDown(), MusicPlayer::next(), MusicPlayer::removeTrack(), MusicPlayer::restorePosition(), MusicCommon::restorePosition(), MusicPlayer::setShuffleMode(), MusicCommon::showPlaylistOptionsMenu(), MusicCommon::updatePlaylistStats(), and MusicCommon::updateUIPlaylist().
| Metadata * Playlist::getSongAt | ( | int | pos | ) |
Definition at line 994 of file playlist.cpp.
Referenced by MusicPlayer::changeCurrentTrack(), MusicPlayer::getCurrentMetadata(), MusicPlayer::getNextMetadata(), and MusicPlayer::restorePosition().
| int Playlist::getCount | ( | void | ) | [inline] |
Definition at line 76 of file playlist.h.
| void Playlist::moveTrackUpDown | ( | bool | flag, | |
| int | where_its_at | |||
| ) |
Definition at line 101 of file playlist.cpp.
Referenced by MusicPlayer::moveTrackUpDown().
Definition at line 115 of file playlist.cpp.
| bool Playlist::checkTrack | ( | int | a_track_id | ) | const |
Definition at line 38 of file playlist.cpp.
Referenced by SearchView::customEvent(), SearchView::ShowMenu(), SearchView::trackClicked(), and SearchView::updateTracksList().
| void Playlist::addTrack | ( | int | trackID, | |
| bool | update_display | |||
| ) |
Given a tracks ID, add that track to this playlist.
Definition at line 57 of file playlist.cpp.
Referenced by MusicPlayer::addTrack(), copyTracks(), and SearchView::trackClicked().
Given a tracks metadata, add that track to this playlist.
Definition at line 67 of file playlist.cpp.
| void Playlist::removeTrack | ( | int | the_track_id | ) |
Definition at line 88 of file playlist.cpp.
Referenced by PlaylistContainer::deletePlaylist(), MusicPlayer::removeTrack(), and SearchView::trackClicked().
| void Playlist::removeAllTracks | ( | void | ) |
Definition at line 79 of file playlist.cpp.
Referenced by PlaylistContainer::clearActive(), PlaylistContainer::copyToActive(), MusicCommon::customEvent(), PlaylistContainer::deletePlaylist(), fillSonglistFromList(), fillSonglistFromQuery(), and PlaylistContainer::popBackPlaylist().
Definition at line 46 of file playlist.cpp.
Referenced by PlaylistContainer::copyNewPlaylist(), PlaylistContainer::copyToActive(), and PlaylistContainer::popBackPlaylist().
| bool Playlist::hasChanged | ( | void | ) | [inline] |
Definition at line 91 of file playlist.h.
| void Playlist::Changed | ( | void | ) | [inline] |
Definition at line 92 of file playlist.h.
Referenced by PlaylistContainer::clearActive(), PlaylistContainer::copyNewPlaylist(), PlaylistContainer::copyToActive(), PlaylistContainer::createNewPlaylist(), PlaylistContainer::popBackPlaylist(), and PlaylistContainer::renamePlaylist().
| QString Playlist::getName | ( | void | ) | [inline] |
Definition at line 94 of file playlist.h.
Referenced by PlaylistContainer::getPlaylistName().
| void Playlist::setName | ( | QString | a_name | ) | [inline] |
Definition at line 95 of file playlist.h.
Referenced by PlaylistContainer::renamePlaylist().
| int Playlist::getID | ( | void | ) | [inline] |
Definition at line 97 of file playlist.h.
Referenced by MusicCommon::customEvent(), PlaylistContainer::getPlaylist(), and PlaylistContainer::getPlaylistName().
| void Playlist::setID | ( | int | x | ) | [inline] |
Definition at line 98 of file playlist.h.
| void Playlist::getStats | ( | uint * | trackCount, | |
| uint * | totalLength, | |||
| uint | currentTrack = 0, |
|||
| uint * | playedLength = NULL | |||
| ) | const |
Definition at line 478 of file playlist.cpp.
Referenced by MusicCommon::CreateCommon(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), MusicCommon::keyPressEvent(), and savePlaylist().
| void Playlist::computeSize | ( | double & | size_in_MB, | |
| double & | size_in_sec | |||
| ) |
Definition at line 1006 of file playlist.cpp.
| int Playlist::CreateCDMP3 | ( | void | ) |
Definition at line 1123 of file playlist.cpp.
| int Playlist::CreateCDAudio | ( | void | ) |
Definition at line 1330 of file playlist.cpp.
| void Playlist::mkisofsData | ( | int | fd | ) | [private, slot] |
Definition at line 1092 of file playlist.cpp.
Referenced by CreateCDMP3().
| void Playlist::cdrecordData | ( | int | fd | ) | [private, slot] |
Definition at line 1039 of file playlist.cpp.
Referenced by CreateCDMP3().
| void Playlist::processExit | ( | uint | retval = 0 |
) | [private, slot] |
Definition at line 1118 of file playlist.cpp.
Referenced by CreateCDMP3().
| QString Playlist::removeDuplicateTracks | ( | const QString & | orig_songlist, | |
| const QString & | new_songlist | |||
| ) | [private] |
Definition at line 978 of file playlist.cpp.
Referenced by fillSonglistFromList(), and fillSonglistFromQuery().
int Playlist::m_playlistid [private] |
Definition at line 115 of file playlist.h.
Referenced by getID(), loadPlaylist(), loadPlaylistByID(), savePlaylist(), and setID().
QString Playlist::m_name [private] |
Definition at line 116 of file playlist.h.
Referenced by getName(), loadPlaylist(), loadPlaylistByID(), savePlaylist(), and setName().
SongList Playlist::m_songs [private] |
Definition at line 117 of file playlist.h.
Referenced by addTrack(), computeSize(), copyTracks(), CreateCDMP3(), describeYourself(), fillSongsFromSonglist(), getCount(), removeAllTracks(), removeTrack(), shuffleTracks(), toRawSonglist(), and ~Playlist().
SongList Playlist::m_shuffledSongs [private] |
Definition at line 118 of file playlist.h.
Referenced by addTrack(), getSongAt(), getSongs(), getStats(), moveTrackUpDown(), removeAllTracks(), removeTrack(), shuffleTracks(), toRawSonglist(), and ~Playlist().
QMap<int, Metadata*> Playlist::m_songMap [private] |
Definition at line 119 of file playlist.h.
Referenced by addTrack(), checkTrack(), fillSongsFromSonglist(), removeAllTracks(), removeTrack(), and ~Playlist().
PlaylistContainer* Playlist::m_parent [private] |
Definition at line 120 of file playlist.h.
Referenced by setParent(), and shuffleTracks().
bool Playlist::m_changed [private] |
Definition at line 121 of file playlist.h.
Referenced by addTrack(), Changed(), fillSongsFromSonglist(), hasChanged(), loadPlaylist(), moveTrackUpDown(), and removeAllTracks().
MythProgressDialog* Playlist::m_progress [private] |
Definition at line 122 of file playlist.h.
Referenced by cdrecordData(), CreateCDMP3(), and mkisofsData().
MythSystem* Playlist::m_proc [private] |
Definition at line 123 of file playlist.h.
Referenced by cdrecordData(), CreateCDMP3(), and mkisofsData().
uint Playlist::m_procExitVal [private] |
Definition at line 124 of file playlist.h.
Referenced by CreateCDMP3(), and processExit().
1.6.3