21 #ifndef PLAYLISTDBINTERFACE_H
22 #define PLAYLISTDBINTERFACE_H
24 #include "Utils/Pimpl.h"
25 #include "Utils/globals.h"
45 void setId(
int databaseId);
48 void setName(
const QString& name);
50 bool isTemporary()
const;
51 void setTemporary(
bool b);
53 bool insertTemporaryIntoDatabase();
54 Util::SaveAsAnswer save();
55 Util::SaveAsAnswer saveAs(
const QString& str,
bool force_override);
56 Util::SaveAsAnswer rename(
const QString& str);
57 bool deletePlaylist();
58 bool removeFromDatabase();
61 virtual void setChanged(
bool b) = 0;
62 virtual bool wasChanged()
const = 0;
64 static QString requestNewDatabaseName(QString prefix);
68 #endif // PLAYLISTDBINTERFACE_H