PlaylistContainer Class Reference

#include <playlistcontainer.h>

List of all members.

Public Member Functions

 PlaylistContainer (AllMusic *all_music, const QString &host_name)
 ~PlaylistContainer ()
void load ()
void describeYourself (void) const
PlaylistgetActive (void)
PlaylistgetPlaylist (int id)
PlaylistgetPlaylist (const QString &name)
PlaylistgetStreamPlaylist (void)
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)
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)
QList< Playlist * > * getPlaylists (void)
QStringList getPlaylistNames (void)

Private Attributes

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

Detailed Description

Definition at line 20 of file playlistcontainer.h.


Constructor & Destructor Documentation

PlaylistContainer::PlaylistContainer ( AllMusic all_music,
const QString &  host_name 
)

Definition at line 49 of file playlistcontainer.cpp.

PlaylistContainer::~PlaylistContainer (  ) 

Definition at line 67 of file playlistcontainer.cpp.


Member Function Documentation

void PlaylistContainer::load ( void   ) 

Definition at line 99 of file playlistcontainer.cpp.

Referenced by PlaylistLoadingThread::run().

void PlaylistContainer::describeYourself ( void   )  const

Definition at line 156 of file playlistcontainer.cpp.

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

Definition at line 29 of file playlistcontainer.h.

Referenced by MusicCommon::doUpdatePlaylist(), and MusicPlayer::loadPlaylist().

Playlist * PlaylistContainer::getPlaylist ( int  id  ) 
Playlist * PlaylistContainer::getPlaylist ( const QString &  name  ) 

Definition at line 187 of file playlistcontainer.cpp.

Playlist* PlaylistContainer::getStreamPlaylist ( void   )  [inline]

Definition at line 32 of file playlistcontainer.h.

Referenced by MusicPlayer::loadPlaylist().

void PlaylistContainer::clearCDList (  ) 

Definition at line 29 of file playlistcontainer.cpp.

Referenced by handleMedia(), and CDWatcherThread::run().

void PlaylistContainer::addCDTrack ( int  x  ) 

Definition at line 34 of file playlistcontainer.cpp.

void PlaylistContainer::removeCDTrack ( int  x  ) 

Definition at line 39 of file playlistcontainer.cpp.

bool PlaylistContainer::checkCDTrack ( int  x  ) 

Definition at line 44 of file playlistcontainer.cpp.

void PlaylistContainer::save ( void   ) 

Definition at line 203 of file playlistcontainer.cpp.

Referenced by mythplugin_destroy().

void PlaylistContainer::createNewPlaylist ( QString  name  ) 

Definition at line 216 of file playlistcontainer.cpp.

void PlaylistContainer::copyNewPlaylist ( QString  name  ) 

Definition at line 227 of file playlistcontainer.cpp.

Referenced by MusicCommon::customEvent().

void PlaylistContainer::copyToActive ( int  index  ) 

Definition at line 260 of file playlistcontainer.cpp.

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

Definition at line 330 of file playlistcontainer.cpp.

void PlaylistContainer::postLoad (  ) 

Definition at line 355 of file playlistcontainer.cpp.

Referenced by load(), loadMusic(), and MusicData::reloadMusic().

void PlaylistContainer::deletePlaylist ( int  index  ) 

Definition at line 292 of file playlistcontainer.cpp.

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

Definition at line 282 of file playlistcontainer.cpp.

void PlaylistContainer::popBackPlaylist (  ) 

Definition at line 240 of file playlistcontainer.cpp.

Referenced by deletePlaylist().

bool PlaylistContainer::pendingWriteback (  ) 

Definition at line 371 of file playlistcontainer.cpp.

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

Definition at line 53 of file playlistcontainer.h.

Referenced by load().

int PlaylistContainer::getPending (  )  [inline]

Definition at line 54 of file playlistcontainer.h.

Referenced by mythplugin_destroy().

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

Definition at line 380 of file playlistcontainer.cpp.

void PlaylistContainer::clearActive (  ) 

Definition at line 421 of file playlistcontainer.cpp.

bool PlaylistContainer::doneLoading (  )  [inline]

Definition at line 60 of file playlistcontainer.h.

Referenced by loadMusic().

bool PlaylistContainer::cleanOutThreads (  ) 

Definition at line 411 of file playlistcontainer.cpp.

Referenced by mythplugin_destroy().

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

Definition at line 90 of file playlistcontainer.cpp.

Referenced by Playlist::shuffleTracks().

QList<Playlist*>* PlaylistContainer::getPlaylists ( void   )  [inline]

Definition at line 66 of file playlistcontainer.h.

QStringList PlaylistContainer::getPlaylistNames ( void   ) 

Definition at line 398 of file playlistcontainer.cpp.

Referenced by MusicCommon::customEvent().


Member Data Documentation

Definition at line 72 of file playlistcontainer.h.

Referenced by getStreamPlaylist(), load(), and ~PlaylistContainer().

QList<int> PlaylistContainer::cd_playlist [private]

Definition at line 73 of file playlistcontainer.h.

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

Definition at line 75 of file playlistcontainer.h.

Definition at line 79 of file playlistcontainer.h.

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

Definition at line 80 of file playlistcontainer.h.

Referenced by doneLoading(), and load().

QString PlaylistContainer::my_host [private]

Definition at line 81 of file playlistcontainer.h.

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

Definition at line 83 of file playlistcontainer.h.

Referenced by FillIntelliWeights().

Definition at line 84 of file playlistcontainer.h.

Referenced by FillIntelliWeights().

Definition at line 85 of file playlistcontainer.h.

Referenced by FillIntelliWeights().

Definition at line 86 of file playlistcontainer.h.

Referenced by FillIntelliWeights().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sun Feb 12 06:42:17 2012 for MythTV by  doxygen 1.6.3