File indexing completed on 2025-02-16 04:25:52
0001 #ifndef DEEZERSERVICE_H 0002 #define DEEZERSERVICE_H 0003 0004 #include "../pulpo.h" 0005 #include <QObject> 0006 0007 class deezer : public Pulpo 0008 { 0009 Q_OBJECT 0010 0011 private: 0012 const QString API = "https://api.deezer.com/search?q="; 0013 0014 QString getID(const QString &url); 0015 bool getAlbumInfo(const QByteArray &array); 0016 bool extractLyrics(const QByteArray &array); 0017 0018 public: 0019 explicit deezer(const FMH::MODEL &song); 0020 virtual bool setUpService(const PULPO::ONTOLOGY &ontology, const PULPO::INFO &info); 0021 0022 protected: 0023 virtual bool parseArtist(); 0024 virtual bool parseAlbum(); 0025 virtual bool parseTrack(); 0026 }; 0027 0028 #endif // DEEZERSERVICE_H