Add optional delete from disk in collection and playlist

Fixes #284
This commit is contained in:
Jonas Kvinge
2020-08-19 22:02:35 +02:00
parent 9b14df6b27
commit 653a35496d
19 changed files with 411 additions and 87 deletions

View File

@@ -56,6 +56,7 @@ class MusicStorage {
typedef std::function<void(float progress)> ProgressFunction;
struct CopyJob {
CopyJob() : overwrite_(false), mark_as_listened_(false), remove_original_(false), albumcover_(false) {}
QString source_;
QString destination_;
Song metadata_;
@@ -70,7 +71,9 @@ class MusicStorage {
};
struct DeleteJob {
DeleteJob() : use_trash_(false) {}
Song metadata_;
bool use_trash_;
};
virtual QString LocalPath() const { return QString(); }