Qmmp
|
#include <playlistmanager.h>
The PlayListManager class is used to handle multiple playlists.
PlayListManager | ( | QObject * | parent | ) |
Constructor.
parent | Parent object. |
~PlayListManager | ( | ) |
Destructor.
void activatePlayList | ( | PlayListModel * | model | ) | [slot] |
Sets current playlist to model.
void activatePlayList | ( | int | index | ) | [slot] |
Sets current playlist with index index.
void add | ( | const QString & | path | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->add(path)
void add | ( | const QStringList & | paths | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->add(paths)
void addToQueue | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->addToQueue()
void clear | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->clear()
void clearQueue | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->clearQueue()
void clearSelection | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->clearSelection()
int count | ( | ) | const |
Returns a number of playlists.
PlayListModel* createPlayList | ( | const QString & | name = QString() | ) | [slot] |
Creates and selects new playlist with the given name name.
PlayListModel* currentPlayList | ( | ) | const |
Returns active playlist.
void currentPlayListChanged | ( | PlayListModel * | current, |
PlayListModel * | previous | ||
) | [signal] |
Emitted when current playlist changes.
current | Current playlist. |
previous | Previous playlist. |
int currentPlayListIndex | ( | ) | const |
Returns active playlist index.
Returns playlist header model.
int indexOf | ( | PlayListModel * | model | ) | const |
Returns the index position of the playlist model.
static PlayListManager* instance | ( | ) | [static] |
Returns a pointer to the object's instance.
void invertSelection | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->invertSelection()
void move | ( | int | i, |
int | j | ||
) | [slot] |
Moves playlist with index i to index j.
void playListAdded | ( | int | index | ) | [signal] |
Emitted when the playlist with index index is added.
PlayListModel* playListAt | ( | int | i | ) | const |
Returns the playlist at index position i in the list. i must be a valid index position in the list (i.e., 0 <= i < count()).
void playListMoved | ( | int | i, |
int | j | ||
) | [signal] |
Emitted when playlist changes its position from i to j.
QStringList playListNames | ( | ) | const |
Returns a names of all playlists.
void playListRemoved | ( | int | index | ) | [signal] |
Emitted when the playlist with index index is removed.
QList<PlayListModel *> playLists | ( | ) | const |
Returns a list of all playlists.
void playListsChanged | ( | ) | [signal] |
Emitted when the list of playlists is changed.
void randomizeList | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->randomizeList()
void refresh | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->refresh()
void removeDuplicates | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeDuplicates()
void removeInvalidTracks | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->clearInvalidItems()
void removePlayList | ( | PlayListModel * | model | ) | [slot] |
Removes playlist model.
void removePlayList | ( | int | index | ) | [slot] |
Removes playlist with index index.
void removeSelected | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeSelected()
void removeTrack | ( | int | i | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeAt(i)
void removeTrack | ( | PlayListTrack * | item | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeItem(item)
void removeUnselected | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeUnselected()
void reverseList | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->reverseList()
void selectAll | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->selectAll()
PlayListModel* selectedPlayList | ( | ) | const |
Returns selected playlist.
void selectedPlayListChanged | ( | PlayListModel * | selected, |
PlayListModel * | previous | ||
) | [signal] |
Emitted when selected playlist changes.
selected | Selected playlist. |
previous | Previous selected playlist. |
int selectedPlayListIndex | ( | ) | const |
Returns selected playlist index.
void selectNextPlayList | ( | ) | [slot] |
Selects next playlist if possible.
void selectPlayList | ( | PlayListModel * | model | ) | [slot] |
Selects playlist model.
void selectPlayList | ( | int | index | ) | [slot] |
Selects playlist with index index.
void selectPlayList | ( | const QString & | name | ) | [slot] |
Selects playlist with name name.
void selectPreviousPlayList | ( | ) | [slot] |
Selects previous playlist if possible.
void showDetails | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->showDetails()
void sort | ( | int | mode | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->sort(mode)
void sortSelection | ( | int | mode | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->sortSelection(mode)
void stopAfterSelected | ( | ) | [slot] |
This is a convenience function and is the same as calling selectedPlayList()->stopAfterSelected()