@@ -226,14 +226,15 @@ void SpotifyService::ClearSession() {
|
||||
void SpotifyService::OAuthFinished(const bool success, const QString &error) {
|
||||
|
||||
if (success) {
|
||||
Q_EMIT LoginFinished(true);
|
||||
Q_EMIT LoginSuccess();
|
||||
Q_EMIT UpdateSpotifyAccessToken(oauth_->access_token());
|
||||
}
|
||||
else {
|
||||
Q_EMIT LoginFailure(error);
|
||||
Q_EMIT LoginFinished(false);
|
||||
}
|
||||
|
||||
Q_EMIT LoginFinished(success);
|
||||
|
||||
}
|
||||
|
||||
void SpotifyService::GetArtists() {
|
||||
|
||||
@@ -89,6 +89,9 @@ class SpotifyService : public StreamingService {
|
||||
CollectionFilter *albums_collection_filter_model() override { return albums_collection_model_->filter(); }
|
||||
CollectionFilter *songs_collection_filter_model() override { return songs_collection_model_->filter(); }
|
||||
|
||||
Q_SIGNALS:
|
||||
void UpdateSpotifyAccessToken(const QString &access_token);
|
||||
|
||||
public Q_SLOTS:
|
||||
void Authenticate();
|
||||
void ClearSession();
|
||||
|
||||
Reference in New Issue
Block a user