PlayListManager Class Reference
The
PlayListManager class is used to handle multiple playlists.
More...
#include <playlistmanager.h>
List of all members.
Detailed Description
The
PlayListManager class is used to handle multiple playlists.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Constructor & Destructor Documentation
Member Function Documentation
void activatePlayList |
( |
int |
index |
) |
[slot] |
Sets current playlist with index index.
Sets current playlist to model.
void add |
( |
const QStringList & |
paths |
) |
[slot] |
void addToQueue |
( |
|
) |
[slot] |
void clearQueue |
( |
|
) |
[slot] |
void clearSelection |
( |
|
) |
[slot] |
bool convertTwenty |
( |
|
) |
const |
Returns state of the "Convert %20 to blanks" option (true - enabled, false - disabled).
bool convertUnderscore |
( |
|
) |
const |
Returns state of the "Convert underscores to blanks" option (true - enabled, false - disabled).
Returns a number of playlists.
PlayListModel* createPlayList |
( |
const QString & |
name = QString() |
) |
[slot] |
Creates new playlist with the given name name.
Emitted when current playlist changes.
- Parameters:
-
| current | Current playlist. |
| previous | Previous playlist. |
int currentPlayListIndex |
( |
|
) |
const |
Returns active playlist index.
const QString format |
( |
|
) |
const |
Returns title format string.
Returns the index position of the playlist model.
Returns a pointer to the object's instance.
void invertSelection |
( |
|
) |
[slot] |
bool isRepeatableList |
( |
|
) |
const |
Returns state of "Repeat All" option.
Returns state of "Shuffle" option.
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.
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.
Returns a list of all playlists.
void playListsChanged |
( |
|
) |
[signal] |
Emitted when the list of playlists is changed.
void randomizeList |
( |
|
) |
[slot] |
void removeAt |
( |
int |
i |
) |
[slot] |
void removeDuplicates |
( |
|
) |
[slot] |
void removeInvalidItems |
( |
|
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->clearInvalidItems()
This is a convenience function and is the same as calling selectedPlayList()->removeItem(item)
void removePlayList |
( |
int |
index |
) |
[slot] |
Removes playlist with index index.
void removeSelected |
( |
|
) |
[slot] |
void removeUnselected |
( |
|
) |
[slot] |
void repeatableListChanged |
( |
bool |
state |
) |
[signal] |
Emitted when state of the "Repeat All" option has changed.
- Parameters:
-
| state | New state of the "Repeat All" option (true - enabled, false disabled) |
void reverseList |
( |
|
) |
[slot] |
void selectAll |
( |
|
) |
[slot] |
Returns selected playlist.
Emitted when selected playlist changes.
- Parameters:
-
| selected | Selected playlist. |
| previous | Previous selected playlist. |
int selectedPlayListIndex |
( |
|
) |
const |
Returns selected playlist index.
void selectNextPlayList |
( |
|
) |
[slot] |
Selects next playlist if possible.
void selectPlayList |
( |
int |
index |
) |
[slot] |
Selects playlist with index index.
void selectPreviousPlayList |
( |
|
) |
[slot] |
Selects previous playlist if possible.
void setConvertTwenty |
( |
bool |
enabled |
) |
|
Sets the "Convert %20 to blanks" option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
void setConvertUnderscore |
( |
bool |
enabled |
) |
|
Sets the "Convert underscores to blanks" option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
void setFormat |
( |
const QString & |
format |
) |
|
void setRepeatableList |
( |
bool |
r |
) |
[slot] |
Prepares all playlists for repeatable playing (loop mode).
- Parameters:
-
| r | State of the repeatable mode (true - enabled, false - disabled) |
void setShuffle |
( |
bool |
s |
) |
[slot] |
Prepares all playlists for shuffle playing.
- Parameters:
-
| s | State of the shuffle mode (true - enabled, false - disabled) |
void settingsChanged |
( |
|
) |
[signal] |
Emitted when other settings (format, metadata, etc) have changed.
void setUseMetadata |
( |
bool |
enabled |
) |
|
Sets metadata usage option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
void showDetails |
( |
|
) |
[slot] |
void shuffleChanged |
( |
bool |
state |
) |
[signal] |
Emitted when state of the "Shuffle" option has changed.
- Parameters:
-
| state | New state of the "Shuffle" option (true - enabled, false disabled) |
void sort |
( |
int |
mode |
) |
[slot] |
void sortSelection |
( |
int |
mode |
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->sortSelection(mode)
void stopAfterSelected |
( |
|
) |
[slot] |
bool useMetadata |
( |
|
) |
const |
Returns the state of metadata usage (true - use, false - not use).
The documentation for this class was generated from the following file: