Playlist Class Reference

#include <playlist.h>

List of all members.


Detailed Description

Definition at line 71 of file playlist.h.


Public Member Functions

 Playlist (AllMusic *all_music_ptr)
 ~Playlist ()
Playlistoperator= (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< Tracksongs
AllMusicall_available_music
PlaylistsContainerparent
bool changed

Constructor & Destructor Documentation

Playlist::Playlist ( AllMusic all_music_ptr  ) 

Definition at line 376 of file playlist.cpp.

Playlist::~Playlist (  ) 

Definition at line 426 of file playlist.cpp.


Member Function Documentation

Playlist & Playlist::operator= ( const Playlist rhs  ) 

Definition at line 432 of file playlist.cpp.

void Playlist::setParent ( PlaylistsContainer myparent  )  [inline]

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 
)

Definition at line 466 of file playlist.cpp.

Referenced by PlaylistsContainer::load().

void Playlist::loadPlaylistByID ( int  id,
QString  a_host 
)

Definition at line 520 of file playlist.cpp.

Referenced by PlaylistsContainer::load().

void Playlist::savePlaylist ( QString  a_name,
QString  a_host 
)

void Playlist::putYourselfOnTheListView ( UIListGenericTree a_parent  ) 

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   ) 

Definition at line 446 of file playlist.cpp.

Referenced by PlaylistsContainer::describeYourself().

void Playlist::fillSongsFromCD (  ) 

Definition at line 718 of file playlist.cpp.

Referenced by PlaybackBoxMusic::occasionallyCheckCD().

void Playlist::fillSongsFromSonglist ( bool  filter  ) 

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 
)

void Playlist::fillSonglistFromSmartPlaylist ( QString  category,
QString  name,
bool  removeDuplicates = false,
InsertPLOption  insertOption = PL_REPLACE,
int  currentTrackID = 0 
)

Definition at line 724 of file playlist.cpp.

Referenced by PlaybackBoxMusic::doUpdatePlaylist().

QString Playlist::getSonglist ( void   )  [inline]

Definition at line 106 of file playlist.h.

Referenced by PlaybackBoxMusic::handleTreeListSignals().

void Playlist::moveTrackUpDown ( bool  flag,
Track the_track 
)

Definition at line 194 of file playlist.cpp.

Referenced by Track::moveUpDown().

bool Playlist::checkTrack ( int  a_track_id,
bool  cd_flag 
)

Definition at line 71 of file playlist.cpp.

Referenced by DatabaseBox::checkTree().

void Playlist::addTrack ( int  the_track_id,
bool  update_display,
bool  cd_flag 
)

void Playlist::removeTrack ( int  the_track_id,
bool  cd_flag 
)

void Playlist::removeAllTracks ( void   ) 

void Playlist::removeAllWidgets ( void   ) 

Definition at line 151 of file playlist.cpp.

Referenced by DatabaseBox::~DatabaseBox().

void Playlist::copyTracks ( Playlist to_ptr,
bool  update_display 
)

bool Playlist::hasChanged ( void   )  [inline]

Definition at line 120 of file playlist.h.

Referenced by PlaylistsContainer::save().

void Playlist::Changed ( void   )  [inline]

QString Playlist::getName ( void   )  [inline]

void Playlist::setName ( QString  a_name  )  [inline]

Definition at line 124 of file playlist.h.

Referenced by PlaylistsContainer::renamePlaylist().

int Playlist::getID ( void   )  [inline]

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 
)

void Playlist::ripOutAllCDTracksNow (  ) 

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   ) 

Definition at line 1659 of file playlist.cpp.

Referenced by DatabaseBox::CreateCDMP3().

int Playlist::CreateCDAudio ( void   ) 

Definition at line 1907 of file playlist.cpp.

Referenced by DatabaseBox::CreateCDAudio().

QString Playlist::removeDuplicateTracks ( const QString &  new_songlist  )  [private]

Definition at line 907 of file playlist.cpp.

Referenced by fillSonglistFromQuery().


Member Data Documentation

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]

QString Playlist::raw_songlist [private]

QPtrList<Track> Playlist::songs [private]

Definition at line 144 of file playlist.h.

Referenced by addTrack(), computeSize(), containsReference(), postLoad(), setParent(), and writeTree().


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

Generated on Sat Dec 18 05:16:09 2010 for MythTV by  doxygen 1.5.5