Sayonara Player
Public Member Functions | List of all members
Playlist::DBWrapper Class Reference

DBWrapper is responsible for fetching playlist data from database, especially the handling between skeleton and the playlist itself Most of the functions are wrappers for the DatabasePlaylist class. More...

#include <PlaylistDBWrapper.h>

Public Member Functions

bool getSkeletons (CustomPlaylistSkeletons &skeletons, PlaylistStoreType type, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
bool getAllSkeletons (CustomPlaylistSkeletons &skeletons, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
bool getNonTemporarySkeletons (CustomPlaylistSkeletons &skeletons, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
bool getTemporarySkeletons (CustomPlaylistSkeletons &skeletons, PlaylistSortOrder so)
 
bool getAllPlaylists (CustomPlaylists &playlists, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
bool getTemporaryPlaylists (CustomPlaylists &playlists, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
bool getNonTemporaryPlaylists (CustomPlaylists &playlists, PlaylistSortOrder so=PlaylistSortOrder::IDAsc)
 
CustomPlaylist getPlaylistById (int id)
 
CustomPlaylist getPlaylistByName (const QString &name)
 
bool renamePlaylist (int id, const QString &new_name)
 
bool savePlaylistAs (const MetaDataList &v_md, const QString &name)
 
bool savePlaylistTemporary (const MetaDataList &v_md, const QString &name)
 
bool savePlaylist (const CustomPlaylist &pl)
 
bool savePlaylist (const MetaDataList &v_md, int id, bool is_temporary)
 
bool deletePlaylist (int id)
 
bool deletePlaylist (const QString &name)
 
bool exists (const QString &name)
 

Detailed Description

DBWrapper is responsible for fetching playlist data from database, especially the handling between skeleton and the playlist itself Most of the functions are wrappers for the DatabasePlaylist class.