Replace slots with Q_SLOTS
This commit is contained in:
@@ -91,7 +91,7 @@ class QobuzBaseRequest : public QObject {
|
||||
int max_login_attempts() const { return service_->max_login_attempts(); }
|
||||
int login_attempts() const { return service_->login_attempts(); }
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void HandleSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
|
||||
private:
|
||||
|
||||
@@ -57,11 +57,11 @@ class QobuzFavoriteRequest : public QobuzBaseRequest {
|
||||
void AlbumsRemoved(const SongList &songs);
|
||||
void SongsRemoved(const SongList &songs);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void AddFavoritesReply(QNetworkReply *reply, const QobuzFavoriteRequest::FavoriteType type, const SongList &songs);
|
||||
void RemoveFavoritesReply(QNetworkReply *reply, const QobuzFavoriteRequest::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);
|
||||
|
||||
@@ -106,7 +106,7 @@ class QobuzRequest : public QobuzBaseRequest {
|
||||
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);
|
||||
|
||||
@@ -109,7 +109,7 @@ class QobuzService : 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 TryLogin();
|
||||
void SendLogin();
|
||||
@@ -121,7 +121,7 @@ class QobuzService : public StreamingService {
|
||||
void ResetAlbumsRequest() override;
|
||||
void ResetSongsRequest() override;
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void ExitReceived();
|
||||
void HandleLoginSSLErrors(const QList<QSslError> &ssl_errors);
|
||||
void HandleAuthReply(QNetworkReply *reply);
|
||||
|
||||
@@ -58,10 +58,10 @@ class QobuzStreamURLRequest : public QobuzBaseRequest {
|
||||
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, const int bit_depth, const qint64 duration);
|
||||
|
||||
private slots:
|
||||
private Q_SLOTS:
|
||||
void StreamURLReceived();
|
||||
|
||||
public slots:
|
||||
public Q_SLOTS:
|
||||
void LoginComplete(const bool success, const QString &error = QString());
|
||||
|
||||
private:
|
||||
|
||||
@@ -44,7 +44,7 @@ class QobuzUrlHandler : 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