#include <playlistmanager.h>
Inherits QObject.
The PlayListManager class is used to handle multiple playlists.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ PlayListManager()
◆ ~PlayListManager()
◆ activatePlayList [1/2]
Sets current playlist to model.
◆ activatePlayList [2/2]
void activatePlayList |
( |
int |
index | ) |
|
|
slot |
Sets current playlist with index index.
◆ activateSelectedPlayList
void activateSelectedPlayList |
( |
| ) |
|
|
slot |
Sets selected playlist as current.
◆ add [1/3]
◆ add [2/3]
void add |
( |
const QString & |
path | ) |
|
|
slot |
◆ add [3/3]
void add |
( |
const QStringList & |
paths | ) |
|
|
slot |
◆ addToQueue
◆ clear
◆ clearQueue
◆ clearSelection
◆ count()
Returns a number of playlists.
◆ createPlayList
PlayListModel* createPlayList |
( |
const QString & |
name = QString() | ) |
|
|
slot |
Creates and selects new playlist with the given name name.
◆ currentPlayList()
◆ currentPlayListChanged
Emitted when current playlist changes.
- Parameters
-
current | Current playlist. |
previous | Previous playlist. |
◆ currentPlayListIndex()
int currentPlayListIndex |
( |
| ) |
const |
Returns active playlist index.
◆ headerModel()
Returns playlist header model.
◆ indexOf()
Returns the index position of the playlist model.
◆ instance()
Returns a pointer to the object's instance.
◆ invertSelection
◆ move
void move |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
slot |
Moves playlist with index i to index j.
◆ playListAdded
void playListAdded |
( |
int |
index | ) |
|
|
signal |
Emitted when the playlist with index index is added.
◆ playListAt()
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()).
◆ playListMoved
void playListMoved |
( |
int |
i, |
|
|
int |
j |
|
) |
| |
|
signal |
Emitted when playlist changes its position from i to j.
◆ playListNames()
QStringList playListNames |
( |
| ) |
const |
Returns a names of all playlists.
◆ playListRemoved
void playListRemoved |
( |
int |
index | ) |
|
|
signal |
Emitted when the playlist with index index is removed.
◆ playLists()
Returns a list of all playlists.
◆ playListsChanged
void playListsChanged |
( |
| ) |
|
|
signal |
Emitted when the list of playlists is changed.
◆ randomizeList
◆ refresh
◆ removeDuplicates
void removeDuplicates |
( |
| ) |
|
|
slot |
◆ removeInvalidTracks
void removeInvalidTracks |
( |
| ) |
|
|
slot |
This is a convenience function and is the same as calling selectedPlayList()->clearInvalidItems()
◆ removePlayList [1/2]
◆ removePlayList [2/2]
void removePlayList |
( |
int |
index | ) |
|
|
slot |
Removes playlist with index index.
◆ removeSelected
◆ removeTrack [1/2]
void removeTrack |
( |
int |
i | ) |
|
|
slot |
◆ removeTrack [2/2]
This is a convenience function and is the same as calling selectedPlayList()->removeItem(item)
◆ removeUnselected
void removeUnselected |
( |
| ) |
|
|
slot |
◆ reverseList
◆ selectAll
◆ selectedPlayList()
Returns selected playlist.
◆ selectedPlayListChanged
Emitted when selected playlist changes.
- Parameters
-
selected | Selected playlist. |
previous | Previous selected playlist. |
◆ selectedPlayListIndex()
int selectedPlayListIndex |
( |
| ) |
const |
Returns selected playlist index.
◆ selectNextPlayList
void selectNextPlayList |
( |
| ) |
|
|
slot |
Selects next playlist if possible.
◆ selectPlayList [1/3]
◆ selectPlayList [2/3]
void selectPlayList |
( |
int |
index | ) |
|
|
slot |
Selects playlist with index index.
◆ selectPlayList [3/3]
void selectPlayList |
( |
const QString & |
name | ) |
|
|
slot |
Selects playlist with name name.
◆ selectPreviousPlayList
void selectPreviousPlayList |
( |
| ) |
|
|
slot |
Selects previous playlist if possible.
◆ showDetails
◆ sort
◆ sortSelection
This is a convenience function and is the same as calling selectedPlayList()->sortSelection(mode)
◆ stopAfterSelected
void stopAfterSelected |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following file: