Add tidal cover provider

This commit is contained in:
Jonas Kvinge
2019-04-14 16:40:05 +02:00
parent 36dccc8157
commit 1ad163aac3
20 changed files with 404 additions and 23 deletions

View File

@@ -29,6 +29,7 @@
#include <QList>
#include <QString>
class Application;
struct CoverSearchResult;
// Each implementation of this interface downloads covers from one online service.
@@ -36,8 +37,8 @@ struct CoverSearchResult;
class CoverProvider : public QObject {
Q_OBJECT
public:
explicit CoverProvider(const QString &name, const bool &fetchall, QObject *parent);
public:
explicit CoverProvider(const QString &name, const bool &fetchall, Application *app, QObject *parent);
// A name (very short description) of this provider, like "last.fm".
QString name() const { return name_; }
@@ -50,10 +51,11 @@ public:
virtual void CancelSearch(int id) {}
signals:
signals:
void SearchFinished(int id, const QList<CoverSearchResult>& results);
private:
private:
Application *app_;
QString name_;
bool fetchall_;