Lyrics: Refactor

This commit is contained in:
Jonas Kvinge
2025-03-08 23:26:44 +01:00
parent b02b114caf
commit 1173d5f865
23 changed files with 544 additions and 836 deletions

View File

@@ -1,6 +1,6 @@
/*
* Strawberry Music Player
* Copyright 2019-2021, Jonas Kvinge <jonas@jkvinge.net>
* Copyright 2019-2025, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -22,9 +22,6 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QList>
#include <QVariant>
#include <QString>
@@ -40,17 +37,10 @@ class LoloLyricsProvider : public LyricsProvider {
public:
explicit LoloLyricsProvider(const SharedPtr<NetworkAccessManager> network, QObject *parent = nullptr);
~LoloLyricsProvider() override;
private:
void Error(const QString &error, const QVariant &debug = QVariant()) override;
private Q_SLOTS:
void StartSearch(const int id, const LyricsSearchRequest &request) override;
void HandleSearchReply(QNetworkReply *reply, const int id, const LyricsSearchRequest &request);
private:
QList<QNetworkReply*> replies_;
};
#endif // LOLOLYRICSPROVIDER_H