23 #ifndef PLAYLISTDBCONNECTOR_H
24 #define PLAYLISTDBCONNECTOR_H
26 #include "Helper/MetaData/MetaData.h"
27 #include "Database/DatabasePlaylist.h"
46 bool get_playlists(CustomPlaylists& playlists,
47 DatabasePlaylist::PlaylistChooserType type,
48 SortOrderPlaylists sortorder);
50 bool extract_stream(
CustomPlaylist& pl, QString name, QString url);
57 bool get_skeletons(CustomPlaylistSkeletons& skeletons,
58 DatabasePlaylist::PlaylistChooserType type,
59 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
61 bool get_all_skeletons(CustomPlaylistSkeletons& skeletons,
62 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
64 bool get_temporary_skeletons(CustomPlaylistSkeletons& skeletons,
65 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
67 bool get_non_temporary_skeletons(CustomPlaylistSkeletons& skeletons,
68 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
70 bool get_all_playlists(CustomPlaylists& playlists,
71 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
73 bool get_temporary_playlists(CustomPlaylists& playlists,
74 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
76 bool get_non_temporary_playlists(CustomPlaylists& playlists,
77 SortOrderPlaylists so=SortOrderPlaylists::IDAsc);
82 bool rename_playlist(
int id,
const QString& new_name);
83 bool save_playlist_as(
const MetaDataList& v_md,
const QString& name);
84 bool save_playlist_temporary(
const MetaDataList& v_md,
const QString& name);
86 bool save_playlist(
const MetaDataList& v_md,
int id,
bool is_temporary);
88 bool delete_playlist(
int id);
89 bool delete_playlist(
const QString& name);
90 bool exists(
const QString& name);
93 #endif // PLAYLISTDBCONNECTOR_H
Definition: DatabaseConnector.h:40
PlaylistDBConnector is responsible for fetching playlist data from database, especially the handling ...
Definition: PlaylistDBConnector.h:37
The CustomPlaylist class.
Definition: CustomPlaylist.h:50