Replace slots with Q_SLOTS
This commit is contained in:
@@ -97,7 +97,7 @@ class TidalBaseRequest : public QObject {
|
||||
Q_SIGNALS:
|
||||
void RequestLogin();
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
|
||||
private:
|
||||
|
||||
@@ -61,11 +61,11 @@ class TidalFavoriteRequest : public TidalBaseRequest {
|
||||
void AlbumsRemoved(const SongList &songs);
|
||||
void SongsRemoved(const SongList &songs);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AddFavoritesReply(QNetworkReply *reply, const TidalFavoriteRequest::FavoriteType type, const SongList &songs);
|
||||
void RemoveFavoritesReply(QNetworkReply *reply, const TidalFavoriteRequest::FavoriteType type, const SongList &songs);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void AddArtists(const SongList &songs);
|
||||
void AddAlbums(const SongList &songs);
|
||||
void AddSongs(const SongList &songs);
|
||||
|
||||
@@ -107,7 +107,7 @@ class TidalRequest : public TidalBaseRequest {
|
||||
void UpdateProgress(const int id, const int max);
|
||||
void StreamURLFinished(const QUrl &media_url, const QUrl &url, const Song::FileType filetype, const QString &error = QString());
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ArtistsReplyReceived(QNetworkReply *reply, const int limit_requested, const int offset_requested);
|
||||
|
||||
void AlbumsReplyReceived(QNetworkReply *reply, const int limit_requested, const int offset_requested);
|
||||
@@ -120,7 +120,7 @@ class TidalRequest : public TidalBaseRequest {
|
||||
void AlbumSongsReplyReceived(QNetworkReply *reply, const Artist &artist, const Album &album, const int offset_requested);
|
||||
void AlbumCoverReceived(QNetworkReply *reply, const QString &album_id, const QUrl &url, const QString &filename);
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void LoginComplete(const bool success, const QString &error = QString());
|
||||
|
||||
private:
|
||||
|
||||
@@ -116,7 +116,7 @@ class TidalService : public StreamingService {
|
||||
CollectionFilter *albums_collection_filter_model() override { return albums_collection_model_->filter(); }
|
||||
CollectionFilter *songs_collection_filter_model() override { return songs_collection_model_->filter(); }
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void ShowConfig() override;
|
||||
void StartAuthorization(const QString &client_id);
|
||||
void TryLogin();
|
||||
@@ -130,7 +130,7 @@ class TidalService : public StreamingService {
|
||||
void ResetSongsRequest() override;
|
||||
void AuthorizationUrlReceived(const QUrl &url);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ExitReceived();
|
||||
void RequestNewAccessToken() { RequestAccessToken(); }
|
||||
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
|
||||
@@ -62,10 +62,10 @@ class TidalStreamURLRequest : public TidalBaseRequest {
|
||||
void StreamURLFailure(const uint id, const QUrl &media_url, const QString &error);
|
||||
void StreamURLSuccess(const uint id, const QUrl &media_url, const QUrl &stream_url, const Song::FileType filetype, const int samplerate = -1, const int bit_depth = -1, const qint64 duration = -1);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void StreamURLReceived();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void LoginComplete(const bool success, const QString &error = QString());
|
||||
|
||||
private:
|
||||
|
||||
@@ -46,7 +46,7 @@ class TidalUrlHandler : public UrlHandler {
|
||||
private:
|
||||
void CancelTask(const int task_id);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void GetStreamURLFailure(const uint id, const QUrl &media_url, const QString &error);
|
||||
void GetStreamURLSuccess(const uint id, const QUrl &media_url, const QUrl &stream_url, const Song::FileType filetype, const int samplerate, const int bit_depth, const qint64 duration);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user