MythTV
master
|
#include <mythplugins/mythmusic/mythmusic/playlistcontainer.h>
Public Member Functions | |
PlaylistContainer (AllMusic *all_music) | |
PlaylistContainer (const PlaylistContainer &rhs)=delete | |
~PlaylistContainer () | |
PlaylistContainer & | operator= (const PlaylistContainer &rhs)=delete |
void | load () |
void | resync (void) |
void | describeYourself (void) const |
Playlist * | getActive (void) |
Playlist * | getPlaylist (int id) |
Playlist * | getPlaylist (const QString &name) |
Playlist * | getStreamPlaylist (void) |
void | save () |
void | createNewPlaylist (const QString &name) |
void | copyNewPlaylist (const QString &name) |
void | copyToActive (int index) |
QString | getPlaylistName (int index, bool &reference) |
void | deletePlaylist (int kill_me) |
void | renamePlaylist (int index, const QString &new_name) |
bool | nameIsUnique (const QString &a_name, int which_id) |
void | clearActive () |
bool | doneLoading () const |
bool | cleanOutThreads () |
void | FillIntelliWeights (int &rating, int &playcount, int &lastplay, int &random) const |
QList< Playlist * > * | getPlaylists (void) |
QStringList | getPlaylistNames (void) |
Private Member Functions | |
Q_DECLARE_TR_FUNCTIONS (PlaylistContainer) | |
Private Attributes | |
Playlist * | m_activePlaylist {nullptr} |
Playlist * | m_streamPlaylist {nullptr} |
QList< Playlist * > * | m_allPlaylists {nullptr} |
PlaylistLoadingThread * | m_playlistsLoader {nullptr} |
bool | m_doneLoading {false} |
QString | m_myHost |
int | m_ratingWeight {2} |
int | m_playCountWeight {2} |
int | m_lastPlayWeight {2} |
int | m_randomWeight {2} |
Definition at line 33 of file playlistcontainer.h.
|
explicit |
Definition at line 29 of file playlistcontainer.cpp.
|
delete |
PlaylistContainer::~PlaylistContainer | ( | ) |
Definition at line 41 of file playlistcontainer.cpp.
|
private |
|
delete |
void PlaylistContainer::load | ( | ) |
Definition at line 69 of file playlistcontainer.cpp.
Referenced by PlaylistLoadingThread::run().
void PlaylistContainer::resync | ( | void | ) |
Definition at line 117 of file playlistcontainer.cpp.
Referenced by MusicData::reloadMusic().
void PlaylistContainer::describeYourself | ( | void | ) | const |
Definition at line 126 of file playlistcontainer.cpp.
|
inline |
Definition at line 47 of file playlistcontainer.h.
Referenced by MusicCommon::doUpdatePlaylist(), MusicPlayer::getCurrentPlaylist(), and handleMedia().
Playlist * PlaylistContainer::getPlaylist | ( | int | id | ) |
Definition at line 134 of file playlistcontainer.cpp.
Referenced by copyToActive(), MusicCommon::customEvent(), deletePlaylist(), PlaylistEditorView::getPlaylistTracks(), renamePlaylist(), and PlaylistEditorView::updateSonglist().
Playlist * PlaylistContainer::getPlaylist | ( | const QString & | name | ) |
Definition at line 155 of file playlistcontainer.cpp.
|
inline |
Definition at line 50 of file playlistcontainer.h.
Referenced by MusicPlayer::getCurrentPlaylist(), and MusicPlayer::loadStreamPlaylist().
void PlaylistContainer::save | ( | ) |
Definition at line 169 of file playlistcontainer.cpp.
Referenced by mythplugin_destroy().
void PlaylistContainer::createNewPlaylist | ( | const QString & | name | ) |
Definition at line 182 of file playlistcontainer.cpp.
void PlaylistContainer::copyNewPlaylist | ( | const QString & | name | ) |
Definition at line 193 of file playlistcontainer.cpp.
Referenced by MusicCommon::customEvent().
void PlaylistContainer::copyToActive | ( | int | index | ) |
Definition at line 205 of file playlistcontainer.cpp.
QString PlaylistContainer::getPlaylistName | ( | int | index, |
bool & | reference | ||
) |
Definition at line 252 of file playlistcontainer.cpp.
void PlaylistContainer::deletePlaylist | ( | int | kill_me | ) |
Definition at line 228 of file playlistcontainer.cpp.
Referenced by PlaylistEditorView::deletePlaylist().
void PlaylistContainer::renamePlaylist | ( | int | index, |
const QString & | new_name | ||
) |
Definition at line 218 of file playlistcontainer.cpp.
bool PlaylistContainer::nameIsUnique | ( | const QString & | a_name, |
int | which_id | ||
) |
Definition at line 275 of file playlistcontainer.cpp.
void PlaylistContainer::clearActive | ( | ) |
Definition at line 308 of file playlistcontainer.cpp.
|
inline |
Definition at line 67 of file playlistcontainer.h.
Referenced by MusicData::loadMusic().
bool PlaylistContainer::cleanOutThreads | ( | ) |
Definition at line 298 of file playlistcontainer.cpp.
Referenced by mythplugin_destroy().
void PlaylistContainer::FillIntelliWeights | ( | int & | rating, |
int & | playcount, | ||
int & | lastplay, | ||
int & | random | ||
) | const |
Definition at line 60 of file playlistcontainer.cpp.
Referenced by Playlist::shuffleTracks().
|
inline |
Definition at line 73 of file playlistcontainer.h.
Referenced by PlaylistEditorView::getPlaylists().
QStringList PlaylistContainer::getPlaylistNames | ( | void | ) |
Definition at line 286 of file playlistcontainer.cpp.
Referenced by MusicCommon::customEvent().
|
private |
Definition at line 77 of file playlistcontainer.h.
Referenced by clearActive(), copyNewPlaylist(), copyToActive(), describeYourself(), getActive(), getPlaylist(), getPlaylistName(), load(), resync(), save(), and ~PlaylistContainer().
|
private |
Definition at line 78 of file playlistcontainer.h.
Referenced by getStreamPlaylist(), load(), save(), and ~PlaylistContainer().
|
private |
Definition at line 79 of file playlistcontainer.h.
Referenced by copyNewPlaylist(), createNewPlaylist(), deletePlaylist(), describeYourself(), getPlaylist(), getPlaylistName(), getPlaylistNames(), getPlaylists(), load(), nameIsUnique(), resync(), save(), and ~PlaylistContainer().
|
private |
Definition at line 81 of file playlistcontainer.h.
Referenced by cleanOutThreads(), PlaylistContainer(), and ~PlaylistContainer().
Definition at line 82 of file playlistcontainer.h.
Referenced by doneLoading(), and load().
|
private |
Definition at line 83 of file playlistcontainer.h.
Referenced by copyNewPlaylist(), createNewPlaylist(), load(), and save().
|
private |
Definition at line 85 of file playlistcontainer.h.
|
private |
Definition at line 86 of file playlistcontainer.h.
Referenced by FillIntelliWeights().
|
private |
Definition at line 87 of file playlistcontainer.h.
Referenced by FillIntelliWeights().
|
private |
Definition at line 88 of file playlistcontainer.h.
Referenced by FillIntelliWeights().