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

@@ -446,6 +446,12 @@ void SubsonicService::GetSongs() {
}
void SubsonicService::DeleteSongs() {
collection_backend_->DeleteAllAsync();
}
void SubsonicService::SongsResultsReceived(const SongMap &songs, const QString &error) {
emit SongsResults(songs, error);

View File

@@ -92,6 +92,7 @@ class SubsonicService : public InternetService {
void SendPing();
void SendPingWithCredentials(QUrl url, const QString &username, const QString &password, const SubsonicSettingsPage::AuthMethod auth_method, const bool redirect = false);
void GetSongs() override;
void DeleteSongs();
void ResetSongsRequest() override;
private slots: