21 #ifndef PLAYLISTDBINTERFACE_H
22 #define PLAYLISTDBINTERFACE_H
24 #include "Utils/Pimpl.h"
25 #include "Utils/globals.h"
45 void set_id(
int db_id);
47 QString get_name()
const;
48 void set_name(
const QString& name);
50 bool is_temporary()
const;
51 void set_temporary(
bool b);
53 bool insert_temporary_into_db();
54 Util::SaveAsAnswer save();
55 Util::SaveAsAnswer save_as(
const QString& str,
bool force_override);
56 Util::SaveAsAnswer rename(
const QString& str);
57 bool delete_playlist();
58 bool remove_from_db();
61 virtual void set_changed(
bool b) = 0;
62 virtual bool was_changed()
const = 0;
63 virtual bool is_storable()
const =0;
65 static QString request_new_db_name(QString prefix);
69 #endif // PLAYLISTDBINTERFACE_H