Mixxx

PlaylistDAO Class Reference

#include <playlistdao.h>

Inheritance diagram for PlaylistDAO:
Collaboration diagram for PlaylistDAO:

List of all members.

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)

Detailed Description

Definition at line 17 of file playlistdao.h.


Constructor & Destructor Documentation

PlaylistDAO::PlaylistDAO ( QSqlDatabase &  database)

Definition at line 10 of file playlistdao.cpp.

PlaylistDAO::~PlaylistDAO ( ) [virtual]

Definition at line 14 of file playlistdao.cpp.


Member Function Documentation

void PlaylistDAO::added ( int  playlistId) [signal]

Here is the caller graph for this function:

void PlaylistDAO::addToAutoDJQueue ( int  playlistId)

Add a playlist to the Auto-DJ Queue

Definition at line 399 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaylistDAO::appendTrackToPlaylist ( int  trackId,
int  playlistId 
)

Append a track to a playlist

Definition at line 192 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaylistDAO::changed ( int  playlistId) [signal]

Here is the caller graph for this function:

bool PlaylistDAO::createPlaylist ( QString  name,
bool  hidden = false 
)

Create a playlist

Create a playlist with the given name.

Parameters:
nameThe name of the playlist to be created.

Definition at line 25 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaylistDAO::deleted ( int  playlistId) [signal]

Here is the caller graph for this function:

void PlaylistDAO::deletePlaylist ( int  playlistId)

Delete a playlist

Definition at line 113 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

int PlaylistDAO::getPlaylistIdFromName ( QString  name)

Definition at line 95 of file playlistdao.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void PlaylistDAO::initialize ( ) [virtual]

Implements DAO.

Definition at line 18 of file playlistdao.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

bool PlaylistDAO::isHidden ( int  playlistId)

Definition at line 275 of file playlistdao.cpp.

Here is the caller graph for this function:

bool PlaylistDAO::isPlaylistLocked ( int  playlistId)

Find out the state of a playlist lock

Definition at line 175 of file playlistdao.cpp.

Here is the caller graph for this function:

unsigned int PlaylistDAO::playlistCount ( )

Find out how many playlists exist.

Definition at line 236 of file playlistdao.cpp.

Here is the caller graph for this function:

void PlaylistDAO::removeTrackFromPlaylist ( int  playlistId,
int  position 
)

Remove a track from a playlist

Definition at line 315 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaylistDAO::removeTrackFromPlaylists ( int  trackId)

Remove a track from all playlists

Definition at line 293 of file playlistdao.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlaylistDAO::renamePlaylist ( int  playlistId,
const QString &  newName 
)

Rename a playlist

Definition at line 148 of file playlistdao.cpp.

Here is the caller graph for this function:

void PlaylistDAO::setDatabase ( QSqlDatabase &  database) [inline]

Definition at line 24 of file playlistdao.h.

Here is the caller graph for this function:

bool PlaylistDAO::setPlaylistLocked ( int  playlistId,
bool  locked 
)

Lock or unlock a playlist

Definition at line 159 of file playlistdao.cpp.

Here is the caller graph for this function:

void PlaylistDAO::trackAdded ( int  playlistId,
int  trackId,
int  position 
) [signal]

Here is the caller graph for this function:

void PlaylistDAO::trackRemoved ( int  playlistId,
int  trackId,
int  position 
) [signal]

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines