deezerService.h 620 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef DEEZERSERVICE_H
#define DEEZERSERVICE_H

#include <QObject>
#include "../pulpo.h"

class deezer : public Pulpo
{
    Q_OBJECT

private:
    const QString API = "https://api.deezer.com/search?q=";

    QString getID(const QString &url);
    bool getAlbumInfo(const QByteArray &array);
    bool extractLyrics(const QByteArray &array);

public:
19
    explicit deezer(const FMH::MODEL &song);
20 21 22 23 24 25 26 27 28
    virtual bool setUpService(const PULPO::ONTOLOGY &ontology, const PULPO::INFO &info);

protected:
    virtual bool parseArtist();
    virtual bool parseAlbum();
    virtual bool parseTrack();
};

#endif // DEEZERSERVICE_H