spotifyService.h 626 Bytes
Newer Older
Aleix Pol Gonzalez's avatar
Aleix Pol Gonzalez committed
1 2
#ifndef SPOTIFYSERVICE_H
#define SPOTIFYSERVICE_H
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

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


class spotify : public Pulpo
{
    Q_OBJECT

private:
    const QString API = "https://api.spotify.com/v1/search?q=";
    const QString CLIENT_ID = "a49552c9276745f5b4752250c2d84367";
    const QString CLIENT_SECRET = "b3f1562559f3405dbcde4a435f50089a";

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

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

#endif // SPOTIFY_H