#ifndef SPOTIFYRESOLVER_H #define SPOTIFYRESOLVER_H #include #include "resolver.h" namespace spotify_pb { class SearchResponse; } class SpotifyServer; class SpotifyResolver : public Resolver { Q_OBJECT public: SpotifyResolver(SpotifyServer* service, QObject* parent = 0); int ResolveSong(const Song& song); signals: void ResolveFinished(int id, SongList songs); private slots: void SearchFinished(const spotify_pb::SearchResponse& response); private: SpotifyServer* spotify_; QMap queries_; int next_id_; }; #endif // SPOTIFYRESOLVER_H