23 #ifndef PLAYLISTDBINTERFACE_H
24 #define PLAYLISTDBINTERFACE_H
26 #include "Helper/MetaData/MetaData.h"
27 #include "Helper/Playlist/CustomPlaylist.h"
48 enum class SaveAsAnswer : quint8 {
58 void set_id(
int db_id);
60 QString get_name()
const;
61 void set_name(
const QString& name);
63 bool is_temporary()
const;
64 void set_temporary(
bool b);
68 bool insert_temporary_into_db();
70 SaveAsAnswer save_as(
const QString& str,
bool force_override);
71 SaveAsAnswer rename(
const QString& str);
72 bool delete_playlist();
73 bool remove_from_db();
77 virtual int get_count()
const = 0;
78 virtual bool is_empty()
const = 0;
79 virtual void set_changed(
bool b) = 0;
80 virtual bool was_changed()
const = 0;
81 virtual bool is_storable()
const =0;
82 void enable_saving(
bool b);
83 bool is_save_enabled()
const;
85 static QString request_new_db_name();
88 #endif // PLAYLISTDBINTERFACE_H
PlaylistDBConnector is responsible for fetching playlist data from database, especially the handling ...
Definition: PlaylistDBConnector.h:37
The PlaylistDBInterface class.
Definition: PlaylistDBInterface.h:34
The CustomPlaylistSkeleton class.
Definition: CustomPlaylist.h:34