20 #ifndef PLAYLISTMANAGER_H 21 #define PLAYLISTMANAGER_H 25 #include <qmmp/qmmp.h> 26 #include "playlistheadermodel.h" 27 #include "playlistmodel.h" 28 #include "qmmpui_export.h" 56 QList <PlayListModel *> playLists()
const;
60 QStringList playListNames()
const;
72 int selectedPlayListIndex()
const;
76 int currentPlayListIndex()
const;
111 void playListAdded(
int index);
115 void playListRemoved(
int index);
119 void playListMoved(
int i,
int j);
123 void playListsChanged();
133 void selectPlayList(
int index);
137 void selectPlayList(
const QString &name);
141 void selectNextPlayList();
145 void selectPreviousPlayList();
153 void activatePlayList(
int index);
157 void activateSelectedPlayList();
161 PlayListModel *createPlayList(
const QString &name = QString());
169 void removePlayList(
int index);
173 void move(
int i,
int j);
181 void clearSelection();
185 void removeSelected();
189 void removeUnselected();
193 void removeTrack (
int i);
201 void invertSelection();
213 void add(
const QList<PlayListTrack *> &tracks);
217 void add(
const QString &path);
221 void add(
const QStringList &paths);
225 void randomizeList();
245 void removeInvalidTracks();
249 void removeDuplicates();
261 void stopAfterSelected();
264 void writePlayLists();
265 void onListChanged(
int flags);
268 void readPlayLists();
270 QList <PlayListModel *> m_models;
276 QMap<QString, Qmmp::TrackProperty> m_propKeys;
277 QMap<QString, Qmmp::MetaData> m_metaKeys;
280 #endif // PLAYLISTMANAGER_H
The PlayListModel class provides a data model for the playlist.
Definition: playlistmodel.h:103
The PlayListManager class is used to handle multiple playlists.
Definition: playlistmanager.h:36
The QmmpUiSettings class provides access to global libqmmpui library settings.
Definition: qmmpuisettings.h:36
The PlayListTrack class provides a track for use with the PlayListModel class.
Definition: playlisttrack.h:36
SortMode
Definition: playlistmodel.h:319