![]() |
Mixxx
|
#include <playlistdao.h>
Signals | |
void | added (int playlistId) |
void | deleted (int playlistId) |
void | changed (int playlistId) |
void | trackAdded (int playlistId, int trackId, int position) |
void | trackRemoved (int playlistId, int trackId, int position) |
Public Member Functions | |
PlaylistDAO (QSqlDatabase &database) | |
virtual | ~PlaylistDAO () |
void | initialize () |
void | setDatabase (QSqlDatabase &database) |
bool | createPlaylist (QString name, bool hidden=false) |
void | deletePlaylist (int playlistId) |
void | renamePlaylist (int playlistId, const QString &newName) |
bool | setPlaylistLocked (int playlistId, bool locked) |
bool | isPlaylistLocked (int playlistId) |
void | appendTrackToPlaylist (int trackId, int playlistId) |
unsigned int | playlistCount () |
QString | getPlaylistName (unsigned int position) |
int | getPlaylistIdFromName (QString name) |
int | getPlaylistId (int position) |
bool | isHidden (int playlistId) |
void | removeTrackFromPlaylists (int trackId) |
void | removeTrackFromPlaylist (int playlistId, int position) |
void | insertTrackIntoPlaylist (int trackId, int playlistId, int position) |
void | addToAutoDJQueue (int playlistId) |
Definition at line 17 of file playlistdao.h.
PlaylistDAO::PlaylistDAO | ( | QSqlDatabase & | database | ) |
Definition at line 10 of file playlistdao.cpp.
PlaylistDAO::~PlaylistDAO | ( | ) | [virtual] |
Definition at line 14 of file playlistdao.cpp.
void PlaylistDAO::added | ( | int | playlistId | ) | [signal] |
void PlaylistDAO::addToAutoDJQueue | ( | int | playlistId | ) |
Add a playlist to the Auto-DJ Queue
Definition at line 399 of file playlistdao.cpp.
void PlaylistDAO::appendTrackToPlaylist | ( | int | trackId, |
int | playlistId | ||
) |
Append a track to a playlist
Definition at line 192 of file playlistdao.cpp.
void PlaylistDAO::changed | ( | int | playlistId | ) | [signal] |
bool PlaylistDAO::createPlaylist | ( | QString | name, |
bool | hidden = false |
||
) |
Create a playlist
Create a playlist with the given name.
name | The name of the playlist to be created. |
Definition at line 25 of file playlistdao.cpp.
void PlaylistDAO::deleted | ( | int | playlistId | ) | [signal] |
void PlaylistDAO::deletePlaylist | ( | int | playlistId | ) |
Delete a playlist
Definition at line 113 of file playlistdao.cpp.
int PlaylistDAO::getPlaylistId | ( | int | position | ) |
Get the id of the playlist at position. Note that the position is the natural position in the database table, not the display order position column stored in the database.
Definition at line 252 of file playlistdao.cpp.
int PlaylistDAO::getPlaylistIdFromName | ( | QString | name | ) |
QString PlaylistDAO::getPlaylistName | ( | unsigned int | position | ) |
Get the name of the playlist at the given position
Find out the name of the playlist at the given position
Definition at line 73 of file playlistdao.cpp.
void PlaylistDAO::initialize | ( | ) | [virtual] |
Implements DAO.
Definition at line 18 of file playlistdao.cpp.
void PlaylistDAO::insertTrackIntoPlaylist | ( | int | trackId, |
int | playlistId, | ||
int | position | ||
) |
Insert a track into a specific position in a playlist
Definition at line 365 of file playlistdao.cpp.
bool PlaylistDAO::isHidden | ( | int | playlistId | ) |
bool PlaylistDAO::isPlaylistLocked | ( | int | playlistId | ) |
Find out the state of a playlist lock
Definition at line 175 of file playlistdao.cpp.
unsigned int PlaylistDAO::playlistCount | ( | ) |
Find out how many playlists exist.
Definition at line 236 of file playlistdao.cpp.
void PlaylistDAO::removeTrackFromPlaylist | ( | int | playlistId, |
int | position | ||
) |
Remove a track from a playlist
Definition at line 315 of file playlistdao.cpp.
void PlaylistDAO::removeTrackFromPlaylists | ( | int | trackId | ) |
Remove a track from all playlists
Definition at line 293 of file playlistdao.cpp.
void PlaylistDAO::renamePlaylist | ( | int | playlistId, |
const QString & | newName | ||
) |
Rename a playlist
Definition at line 148 of file playlistdao.cpp.
void PlaylistDAO::setDatabase | ( | QSqlDatabase & | database | ) | [inline] |
bool PlaylistDAO::setPlaylistLocked | ( | int | playlistId, |
bool | locked | ||
) |
Lock or unlock a playlist
Definition at line 159 of file playlistdao.cpp.
void PlaylistDAO::trackAdded | ( | int | playlistId, |
int | trackId, | ||
int | position | ||
) | [signal] |
void PlaylistDAO::trackRemoved | ( | int | playlistId, |
int | trackId, | ||
int | position | ||
) | [signal] |