Go to the documentation of this file.
55 void loadPlaylist(
const QString& a_name,
const QString& a_host);
58 void savePlaylist(
const QString& a_name,
const QString& a_host);
66 bool removeDuplicates =
false,
68 int currentTrackID = 0);
70 bool removeDuplicates =
false,
72 int currentTrackID = 0);
74 bool removeDuplicates,
77 QString
toRawSonglist(
bool shuffled =
false,
bool tracksOnly =
false);
114 void getStats(
uint *trackCount, std::chrono::seconds *totalLength,
115 uint currentTrack = 0, std::chrono::seconds *playedLength =
nullptr)
const;
119 #ifdef CD_WRTITING_FIXED
120 void computeSize(
double &size_in_MB,
double &size_in_sec);
121 int CreateCDMP3(
void);
122 int CreateCDAudio(
void);
125 void mkisofsData(
int fd);
126 void cdrecordData(
int fd);
127 void processExit(
uint retval);
144 #ifdef CD_WRTITING_FIXED
145 MythProgressDialog *m_progress {
nullptr};
147 uint m_procExitVal {0};
MusicMetadata * getSongAt(int pos) const
void setParent(PlaylistContainer *myparent)
void shuffleTracks(MusicPlayer::ShuffleMode mode)
void loadPlaylistByID(int id, const QString &a_host)
InsertPLOption insertPLOption
void removeAllCDTracks(void)
MusicMetadata * getRawSongAt(int pos) const
QList< MusicMetadata::IdType > SongList
void fillSonglistFromSmartPlaylist(const QString &category, const QString &name, bool removeDuplicates=false, InsertPLOption insertOption=PL_REPLACE, int currentTrackID=0)
QString toRawSonglist(bool shuffled=false, bool tracksOnly=false)
static constexpr const char * DEFAULT_PLAYLIST_NAME
void fillSonglistFromQuery(const QString &whereClause, bool removeDuplicates=false, InsertPLOption insertOption=PL_REPLACE, int currentTrackID=0)
static QString removeDuplicateTracks(const QString &orig_songlist, const QString &new_songlist)
void removeTrack(MusicMetadata::IdType trackID)
void resync(void)
make sure all tracks are still valid after a scan
void setName(const QString &a_name)
void addTrack(MusicMetadata::IdType trackID, bool update_display)
Given a tracks ID, add that track to this playlist.
void disableSaves(void)
whether any changes should be saved to the DB
bool hasChanged(void) const
bool checkTrack(MusicMetadata::IdType trackID) const
void loadPlaylist(const QString &a_name, const QString &a_host)
void moveTrackUpDown(bool flag, int where_its_at)
bool isActivePlaylist(void)
void copyTracks(Playlist *to_ptr, bool update_display)
PlaylistContainer * m_parent
void getStats(uint *trackCount, std::chrono::seconds *totalLength, uint currentTrack=0, std::chrono::seconds *playedLength=nullptr) const
int getTrackPosition(MusicMetadata::IdType trackID)
void savePlaylist(const QString &a_name, const QString &a_host)
PlayPLOption playPLOption
void fillSongsFromSonglist(const QString &songList)
void describeYourself(void) const
void removeAllTracks(void)
void fillSonglistFromList(const QList< int > &songList, bool removeDuplicates, InsertPLOption insertOption, int currentTrackID)