File indexing completed on 2025-02-16 04:25:53

0001 #ifndef MUSICBRAINZSERVICE_H
0002 #define MUSICBRAINZSERVICE_H
0003 #include "../pulpo.h"
0004 #include <QObject>
0005 
0006 using namespace BAE;
0007 
0008 class musicBrainz : public Pulpo
0009 {
0010     Q_OBJECT
0011 
0012 private:
0013     const QString API = "http://musicbrainz.org/ws/2/";
0014     const QMap<QString, QString> header = {{"User-Agent", "Babe/1.0 ( babe.kde.org )"}};
0015 
0016 public:
0017     explicit musicBrainz(const FMH::MODEL &song);
0018     virtual bool setUpService(const PULPO::ONTOLOGY &ontology, const PULPO::INFO &info);
0019 
0020 protected:
0021     virtual bool parseArtist();
0022     virtual bool parseAlbum();
0023     virtual bool parseTrack();
0024 };
0025 
0026 #endif // MUSICBRAINZSERVICE_H