Sayonara Player
Public Member Functions | List of all members
PlaylistDBConnector Class Reference

#include <PlaylistDBConnector.h>

Detailed Description

PlaylistDBConnector 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.

Public Member Functions

bool get_skeletons (CustomPlaylistSkeletons &skeletons, DatabasePlaylist::PlaylistChooserType type, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_all_skeletons (CustomPlaylistSkeletons &skeletons, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_temporary_skeletons (CustomPlaylistSkeletons &skeletons, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_non_temporary_skeletons (CustomPlaylistSkeletons &skeletons, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_all_playlists (CustomPlaylists &playlists, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_temporary_playlists (CustomPlaylists &playlists, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
bool get_non_temporary_playlists (CustomPlaylists &playlists, SortOrderPlaylists so=SortOrderPlaylists::IDAsc)
 
CustomPlaylist get_playlist_by_id (int id)
 
CustomPlaylist get_playlist_by_name (const QString &name)
 
bool rename_playlist (int id, const QString &new_name)
 
bool save_playlist_as (const MetaDataList &v_md, const QString &name)
 
bool save_playlist_temporary (const MetaDataList &v_md, const QString &name)
 
bool save_playlist (const CustomPlaylist &pl)
 
bool save_playlist (const MetaDataList &v_md, int id, bool is_temporary)
 
bool delete_playlist (int id)
 
bool delete_playlist (const QString &name)
 
bool exists (const QString &name)