Add setting for cover providers
This commit is contained in:
@@ -33,11 +33,11 @@
|
||||
#include <QJsonObject>
|
||||
|
||||
#include "coverprovider.h"
|
||||
#include "tidal/tidalservice.h"
|
||||
|
||||
class QNetworkAccessManager;
|
||||
class QNetworkReply;
|
||||
class Application;
|
||||
class TidalService;
|
||||
|
||||
class TidalCoverProvider : public CoverProvider {
|
||||
Q_OBJECT
|
||||
@@ -47,6 +47,9 @@ class TidalCoverProvider : public CoverProvider {
|
||||
bool StartSearch(const QString &artist, const QString &album, const QString &title, const int id);
|
||||
void CancelSearch(const int id);
|
||||
|
||||
bool IsAuthenticated() const { return service_ && service_->authenticated(); }
|
||||
void Deauthenticate() { if (service_) service_->Logout(); }
|
||||
|
||||
private slots:
|
||||
void HandleSearchReply(QNetworkReply *reply, const int id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user