21 #ifndef PLAYLISTDBINTERFACE_H 22 #define PLAYLISTDBINTERFACE_H 25 #include "Utils/Pimpl.h" 42 enum class SaveAsAnswer : uint8_t
54 void set_id(
int db_id);
56 QString get_name()
const;
57 void set_name(
const QString& name);
59 bool is_temporary()
const;
60 void set_temporary(
bool b);
62 bool insert_temporary_into_db();
64 SaveAsAnswer save_as(
const QString& str,
bool force_override);
65 SaveAsAnswer rename(
const QString& str);
66 bool delete_playlist();
67 bool remove_from_db();
70 virtual int count()
const = 0;
71 virtual bool is_empty()
const = 0;
72 virtual void set_changed(
bool b) = 0;
73 virtual bool was_changed()
const = 0;
74 virtual bool is_storable()
const =0;
76 static QString request_new_db_name();
80 #endif // PLAYLISTDBINTERFACE_H
Definition: AbstractPlaylist.h:44
The PlaylistDBInterface class.
Definition: PlaylistDBInterface.h:35