21 #ifndef PLAYLISTDB_WRAPPER_H
22 #define PLAYLISTDB_WRAPPER_H
24 #include "Utils/Pimpl.h"
25 #include "Utils/Playlist/CustomPlaylistFwd.h"
26 #include "Database/Playlist.h"
45 PlaylistStoreType type,
46 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
49 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
52 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
55 PlaylistSortOrder so);
58 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
61 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
64 PlaylistSortOrder so=PlaylistSortOrder::IDAsc);
69 bool renamePlaylist(
int id,
const QString& new_name);
70 bool savePlaylistAs(
const MetaDataList& v_md,
const QString& name);
71 bool savePlaylistTemporary(
const MetaDataList& v_md,
const QString& name);
73 bool savePlaylist(
const MetaDataList& v_md,
int id,
bool is_temporary);
75 bool deletePlaylist(
int id);
76 bool deletePlaylist(
const QString& name);
77 bool exists(
const QString& name);
82 PlaylistStoreType type,
83 PlaylistSortOrder sortorder);
86 using DBWrapperPtr=std::shared_ptr<DBWrapper>;
89 #endif // PLAYLISTDBCONNECTOR_H