PlaylistsContainer Class Reference

#include <playlist.h>

List of all members.


Detailed Description

Definition at line 160 of file playlist.h.


Public Member Functions

 PlaylistsContainer (AllMusic *all_music, QString host_name)
 ~PlaylistsContainer ()
void load ()
void describeYourself ()
PlaylistgetActive (void)
PlaylistgetPlaylist (int id)
void setActiveWidget (PlaylistTitle *widget)
PlaylistTitlegetActiveWidget (void)
GenericTreewriteTree (GenericTree *tree_to_write_to)
void clearCDList ()
void addCDTrack (int x)
void removeCDTrack (int x)
bool checkCDTrack (int x)
void save ()
void createNewPlaylist (QString name)
void copyNewPlaylist (QString name)
void copyToActive (int index)
void showRelevantPlaylists (TreeCheckItem *alllist)
void refreshRelevantPlaylists (TreeCheckItem *alllist)
QString getPlaylistName (int index, bool &reference)
void postLoad ()
void deletePlaylist (int index)
void renamePlaylist (int index, QString new_name)
void popBackPlaylist ()
bool pendingWriteback ()
void setPending (int x)
int getPending ()
bool nameIsUnique (QString a_name, int which_id)
void clearActive ()
bool doneLoading ()
bool cleanOutThreads ()
void FillIntelliWeights (int &rating, int &playcount, int &lastplay, int &random)

Private Attributes

Playlistactive_playlist
Playlistbackup_playlist
QValueList< int > cd_playlist
QPtrList< Playlist > * all_other_playlists
AllMusicall_available_music
PlaylistTitleactive_widget
int pending_writeback_index
PlaylistLoadingThreadplaylists_loader
bool done_loading
QString my_host
int RatingWeight
int PlayCountWeight
int LastPlayWeight
int RandomWeight

Constructor & Destructor Documentation

PlaylistsContainer::PlaylistsContainer ( AllMusic all_music,
QString  host_name 
)

Definition at line 267 of file playlist.cpp.

PlaylistsContainer::~PlaylistsContainer (  ) 

Definition at line 289 of file playlist.cpp.


Member Function Documentation

void PlaylistsContainer::load ( void   ) 

Definition at line 311 of file playlist.cpp.

Referenced by PlaylistLoadingThread::run().

void PlaylistsContainer::describeYourself ( void   ) 

Definition at line 363 of file playlist.cpp.

Playlist* PlaylistsContainer::getActive ( void   )  [inline]

Playlist * PlaylistsContainer::getPlaylist ( int  id  ) 

void PlaylistsContainer::setActiveWidget ( PlaylistTitle widget  ) 

Definition at line 1246 of file playlist.cpp.

Referenced by DatabaseBox::keepFilling().

PlaylistTitle* PlaylistsContainer::getActiveWidget ( void   )  [inline]

Definition at line 173 of file playlist.h.

Referenced by Playlist::addTrack().

GenericTree * PlaylistsContainer::writeTree ( GenericTree tree_to_write_to  ) 

Definition at line 1136 of file playlist.cpp.

Referenced by MusicPlayer::constructPlaylist().

void PlaylistsContainer::clearCDList (  ) 

Definition at line 242 of file playlist.cpp.

Referenced by PlaybackBoxMusic::occasionallyCheckCD(), and ReadCDThread::run().

void PlaylistsContainer::addCDTrack ( int  x  ) 

Definition at line 247 of file playlist.cpp.

void PlaylistsContainer::removeCDTrack ( int  x  ) 

Definition at line 252 of file playlist.cpp.

bool PlaylistsContainer::checkCDTrack ( int  x  ) 

Definition at line 257 of file playlist.cpp.

Referenced by DatabaseBox::fillCD().

void PlaylistsContainer::save ( void   ) 

Definition at line 1198 of file playlist.cpp.

Referenced by postMusic().

void PlaylistsContainer::createNewPlaylist ( QString  name  ) 

Definition at line 1215 of file playlist.cpp.

void PlaylistsContainer::copyNewPlaylist ( QString  name  ) 

Definition at line 1230 of file playlist.cpp.

Referenced by DatabaseBox::copyNewPlaylist().

void PlaylistsContainer::copyToActive ( int  index  ) 

Definition at line 1278 of file playlist.cpp.

Referenced by DatabaseBox::copyToActive().

void PlaylistsContainer::showRelevantPlaylists ( TreeCheckItem alllist  ) 

void PlaylistsContainer::refreshRelevantPlaylists ( TreeCheckItem alllist  ) 

QString PlaylistsContainer::getPlaylistName ( int  index,
bool reference 
)

Definition at line 1362 of file playlist.cpp.

Referenced by copyToActive(), Track::postLoad(), and setActiveWidget().

void PlaylistsContainer::postLoad ( void   ) 

Definition at line 1532 of file playlist.cpp.

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

void PlaylistsContainer::deletePlaylist ( int  index  ) 

Definition at line 1321 of file playlist.cpp.

Referenced by DatabaseBox::deletePlaylist().

void PlaylistsContainer::renamePlaylist ( int  index,
QString  new_name 
)

Definition at line 1305 of file playlist.cpp.

Referenced by DatabaseBox::renamePlaylist().

void PlaylistsContainer::popBackPlaylist (  ) 

Definition at line 1257 of file playlist.cpp.

Referenced by deletePlaylist(), and DatabaseBox::popBackPlaylist().

bool PlaylistsContainer::pendingWriteback (  ) 

Definition at line 1548 of file playlist.cpp.

Referenced by DatabaseBox::doActivePopup().

void PlaylistsContainer::setPending ( int  x  )  [inline]

Definition at line 198 of file playlist.h.

Referenced by load().

int PlaylistsContainer::getPending (  )  [inline]

Definition at line 199 of file playlist.h.

Referenced by postMusic().

bool PlaylistsContainer::nameIsUnique ( QString  a_name,
int  which_id 
)

Definition at line 1557 of file playlist.cpp.

Referenced by DatabaseBox::copyNewPlaylist(), and DatabaseBox::renamePlaylist().

void PlaylistsContainer::clearActive (  ) 

Definition at line 1593 of file playlist.cpp.

Referenced by DatabaseBox::clearActive().

bool PlaylistsContainer::doneLoading (  )  [inline]

Definition at line 205 of file playlist.h.

Referenced by PlaybackBoxMusic::checkForPlaylists(), and DatabaseBox::keepFilling().

bool PlaylistsContainer::cleanOutThreads (  ) 

Definition at line 1583 of file playlist.cpp.

Referenced by postMusic(), and DatabaseBox::~DatabaseBox().

void PlaylistsContainer::FillIntelliWeights ( int &  rating,
int &  playcount,
int &  lastplay,
int &  random 
)

Definition at line 302 of file playlist.cpp.

Referenced by Playlist::writeTree().


Member Data Documentation

QValueList<int> PlaylistsContainer::cd_playlist [private]

Definition at line 214 of file playlist.h.

Referenced by addCDTrack(), checkCDTrack(), clearCDList(), load(), and removeCDTrack().

Definition at line 216 of file playlist.h.

Referenced by copyNewPlaylist(), createNewPlaylist(), load(), PlaylistsContainer(), and writeTree().

Definition at line 220 of file playlist.h.

Referenced by cleanOutThreads(), PlaylistsContainer(), and ~PlaylistsContainer().

Definition at line 221 of file playlist.h.

Referenced by doneLoading(), load(), and PlaylistsContainer().

QString PlaylistsContainer::my_host [private]

Definition at line 222 of file playlist.h.

Referenced by copyNewPlaylist(), createNewPlaylist(), load(), PlaylistsContainer(), and save().

Definition at line 224 of file playlist.h.

Referenced by FillIntelliWeights(), and PlaylistsContainer().

Definition at line 225 of file playlist.h.

Referenced by FillIntelliWeights(), and PlaylistsContainer().

Definition at line 226 of file playlist.h.

Referenced by FillIntelliWeights(), and PlaylistsContainer().

Definition at line 227 of file playlist.h.

Referenced by FillIntelliWeights(), and PlaylistsContainer().


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