Clementine-audio-player-Mac.../src/resolvers/spotifyresolver.h

33 lines
589 B
C++

#ifndef SPOTIFYRESOLVER_H
#define SPOTIFYRESOLVER_H
#include <QMap>
#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<QString, int> queries_;
int next_id_;
};
#endif // SPOTIFYRESOLVER_H