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 PlayListModel *createPlayList(
const QString &name = QString());
165 void removePlayList(
int index);
169 void move(
int i,
int j);
177 void clearSelection();
181 void removeSelected();
185 void removeUnselected();
189 void removeTrack (
int i);
197 void invertSelection();
209 void add(
const QString &path);
213 void add(
const QStringList &paths);
217 void randomizeList();
225 void sortSelection(
int mode);
237 void removeInvalidTracks();
241 void removeDuplicates();
253 void stopAfterSelected();
256 void writePlayLists();
257 void onListChanged(
int flags);
260 void readPlayLists();
262 QList <PlayListModel *> m_models;
268 QMap<QString, Qmmp::TrackProperty> m_propKeys;
269 QMap<QString, Qmmp::MetaData> m_metaKeys;
272 #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