Refactor Tidal, Spotify, Qobuz, Subsonic and cover providers

Use common HTTP, Json and OAuthenticator class
This commit is contained in:
Jonas Kvinge
2025-03-08 23:11:07 +01:00
parent 7de8a44709
commit cd516c37b9
81 changed files with 2429 additions and 3968 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,12 +22,10 @@
#include "config.h"
#include <QtGlobal>
#include <QObject>
#include <QVariant>
#include <QString>
#include <QStringList>
#include <QUrl>
#include <QSharedPointer>
#include "includes/shared_ptr.h"
#include "core/song.h"
@@ -65,16 +63,14 @@ class QobuzStreamURLRequest : public QobuzBaseRequest {
void LoginComplete(const bool success, const QString &error = QString());
private:
void Error(const QString &error, const QVariant &debug = QVariant());
QobuzService *service_;
QNetworkReply *reply_;
QUrl media_url_;
uint id_;
int song_id_;
int tries_;
bool need_login_;
QStringList errors_;
};
using QobuzStreamURLRequestPtr = QSharedPointer<QobuzStreamURLRequest>;
#endif // QOBUZSTREAMURLREQUEST_H