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
| PlayListManager::PlayListManager |
( |
QObject * |
parent |
) |
|
| PlayListManager::~PlayListManager |
( |
|
) |
|
Member Function Documentation
| void PlayListManager::activatePlayList |
( |
PlayListModel * |
model |
) |
[slot] |
Sets current playlist to model.
| void PlayListManager::addDirectory |
( |
const QString & |
dir |
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->addDirectory(dir)
| void PlayListManager::addFile |
( |
const QString & |
path |
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->addFile(path)
| void PlayListManager::addFiles |
( |
const QStringList & |
l |
) |
[slot] |
| void PlayListManager::addToQueue |
( |
|
) |
[slot] |
| void PlayListManager::clear |
( |
|
) |
[slot] |
| void PlayListManager::clearSelection |
( |
|
) |
[slot] |
| bool PlayListManager::convertTwenty |
( |
|
) |
|
Returns state of the "Convert %20 to blanks" option (true - enabled, false - disabled).
| bool PlayListManager::convertUnderscore |
( |
|
) |
|
Returns state of the "Convert underscores to blanks" option (true - enabled, false - disabled).
| int PlayListManager::count |
( |
|
) |
|
Returns a number of playlists.
| PlayListModel* PlayListManager::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. |
| const QString PlayListManager::format |
( |
|
) |
const |
Returns title format string.
Returns the index position of the playlist model.
| void PlayListManager::invertSelection |
( |
|
) |
[slot] |
| bool PlayListManager::isRepeatableList |
( |
|
) |
const |
Returns state of "Repeat All" option.
| bool PlayListManager::isShuffle |
( |
|
) |
const |
Returns state of "Shuffle" option.
| void PlayListManager::move |
( |
int |
i, |
|
|
int |
j | |
|
) |
| | [slot] |
Moves playlist with index i to index j.
| void PlayListManager::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 PlayListManager::playListMoved |
( |
int |
i, |
|
|
int |
j | |
|
) |
| | [signal] |
Emitted when playlist changes its position from i to j.
| QStringList PlayListManager::playListNames |
( |
|
) |
const |
Returns a names of all playlists.
| void PlayListManager::playListRemoved |
( |
int |
index |
) |
[signal] |
Emitted when the playlist with index index is removed.
Returns a list of all playlists.
| void PlayListManager::playListsChanged |
( |
|
) |
[signal] |
Emitted when the list of playlists is changed.
| void PlayListManager::randomizeList |
( |
|
) |
[slot] |
| void PlayListManager::removeAt |
( |
int |
i |
) |
[slot] |
| void PlayListManager::removeDuplicates |
( |
|
) |
[slot] |
| void PlayListManager::removeInvalidItems |
( |
|
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->clearInvalidItems()
| void PlayListManager::removeItem |
( |
PlayListItem * |
item |
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->removeItem(item)
| void PlayListManager::removePlayList |
( |
PlayListModel * |
model |
) |
[slot] |
| void PlayListManager::removeSelected |
( |
|
) |
[slot] |
| void PlayListManager::removeUnselected |
( |
|
) |
[slot] |
| void PlayListManager::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 PlayListManager::reverseList |
( |
|
) |
[slot] |
| void PlayListManager::selectAll |
( |
|
) |
[slot] |
Returns selected playlist.
Emitted when selected playlist changes.
- Parameters:
-
| selected | Selected playlist. |
| previous | Previous selected playlist. |
| void PlayListManager::selectNextPlayList |
( |
|
) |
[slot] |
Selects next playlist if possible.
| void PlayListManager::selectPlayList |
( |
int |
index |
) |
[slot] |
Selects playlist with index index.
| void PlayListManager::selectPlayList |
( |
PlayListModel * |
model |
) |
[slot] |
| void PlayListManager::selectPreviousPlayList |
( |
|
) |
[slot] |
Selects previous playlist if possible.
| void PlayListManager::setConvertTwenty |
( |
bool |
enabled |
) |
|
Sets the "Convert %20 to blanks" option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
| void PlayListManager::setConvertUnderscore |
( |
bool |
enabled |
) |
|
Sets the "Convert underscores to blanks" option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
| void PlayListManager::setFormat |
( |
const QString & |
format |
) |
|
| void PlayListManager::setRepeatableList |
( |
bool |
r |
) |
[slot] |
Prepares all playlists for repeatable playing (loop mode).
- Parameters:
-
| r | State of the repeatable mode (true - enabled, false - disabled) |
| void PlayListManager::setShuffle |
( |
bool |
s |
) |
[slot] |
Prepares all playlists for shuffle playing.
- Parameters:
-
| s | State of the shuffle mode (true - enabled, false - disabled) |
| void PlayListManager::settingsChanged |
( |
|
) |
[signal] |
Emitted when other settings (format, metadata, etc) have changed.
| void PlayListManager::setUseMetadata |
( |
bool |
enabled |
) |
|
Sets metadata usage option state to enabled
- Parameters:
-
| enabled | Option state (true - enabled, false - disabled) |
| void PlayListManager::showDetails |
( |
|
) |
[slot] |
| void PlayListManager::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 PlayListManager::sort |
( |
int |
mode |
) |
[slot] |
| void PlayListManager::sortSelection |
( |
int |
mode |
) |
[slot] |
This is a convenience function and is the same as calling selectedPlayList()->sortSelection(mode)
| bool PlayListManager::useMetadata |
( |
|
) |
|
Returns the state of metadata usage (true - use, false - not use).
The documentation for this class was generated from the following file: