Subsonic: Add button to delete songs

Fixes #883
This commit is contained in:
Jonas Kvinge
2022-01-28 21:25:44 +01:00
parent 81e6b55c39
commit 7a61e740e8
6 changed files with 53 additions and 10 deletions

View File

@@ -1801,6 +1801,12 @@ void CollectionBackend::ResetStatistics(const int id) {
}
void CollectionBackend::DeleteAllAsync() {
QMetaObject::invokeMethod(this, "DeleteAll", Qt::QueuedConnection);
}
void CollectionBackend::DeleteAll() {
{

View File

@@ -197,7 +197,7 @@ class CollectionBackend : public CollectionBackendInterface {
void IncrementSkipCountAsync(const int id, const float progress);
void ResetStatisticsAsync(const int id);
void DeleteAll();
void DeleteAllAsync();
Song GetSongBySongId(const QString &song_id);
SongList GetSongsBySongId(const QStringList &song_ids);
@@ -234,6 +234,7 @@ class CollectionBackend : public CollectionBackendInterface {
void IncrementPlayCount(const int id);
void IncrementSkipCount(const int id, const float progress);
void ResetStatistics(const int id);
void DeleteAll();
void SongPathChanged(const Song &song, const QFileInfo &new_file, const std::optional<int> new_collection_directory_id);
SongList GetSongsBy(const QString &artist, const QString &album, const QString &title);