21 #ifndef PLAYLISTDBINTERFACE_H 22 #define PLAYLISTDBINTERFACE_H 47 enum class SaveAsAnswer : quint8
59 void set_id(
int db_id);
61 QString get_name()
const;
62 void set_name(
const QString& name);
64 bool is_temporary()
const;
65 void set_temporary(
bool b);
67 bool insert_temporary_into_db();
69 SaveAsAnswer save_as(
const QString& str,
bool force_override);
70 SaveAsAnswer rename(
const QString& str);
71 bool delete_playlist();
72 bool remove_from_db();
76 virtual int get_count()
const = 0;
77 virtual bool is_empty()
const = 0;
78 virtual void set_changed(
bool b) = 0;
79 virtual bool was_changed()
const = 0;
80 virtual bool is_storable()
const =0;
82 static QString request_new_db_name();
85 #endif // PLAYLISTDBINTERFACE_H
PlaylistDBWrapper is responsible for fetching playlist data from database, especially the handling be...
Definition: PlaylistDBWrapper.h:36
The PlaylistDBInterface class.
Definition: PlaylistDBInterface.h:33