Add const/references to all signal parameters
This commit is contained in:
@@ -52,12 +52,12 @@ class TidalFavoriteRequest : public TidalBaseRequest {
|
||||
};
|
||||
|
||||
signals:
|
||||
void ArtistsAdded(SongList);
|
||||
void AlbumsAdded(SongList);
|
||||
void SongsAdded(SongList);
|
||||
void ArtistsRemoved(SongList);
|
||||
void AlbumsRemoved(SongList);
|
||||
void SongsRemoved(SongList);
|
||||
void ArtistsAdded(const SongList &songs);
|
||||
void AlbumsAdded(const SongList &songs);
|
||||
void SongsAdded(const SongList &songs);
|
||||
void ArtistsRemoved(const SongList &songs);
|
||||
void AlbumsRemoved(const SongList &songs);
|
||||
void SongsRemoved(const SongList &songs);
|
||||
|
||||
private slots:
|
||||
void AddFavoritesReply(QNetworkReply *reply, const TidalFavoriteRequest::FavoriteType type, const SongList &songs);
|
||||
|
||||
@@ -99,11 +99,11 @@ class TidalRequest : public TidalBaseRequest {
|
||||
|
||||
signals:
|
||||
void LoginSuccess();
|
||||
void LoginFailure(QString failure_reason);
|
||||
void Results(int id, SongMap songs = SongMap(), QString error = QString());
|
||||
void UpdateStatus(int id, QString text);
|
||||
void UpdateProgress(int id, int max);
|
||||
void StreamURLFinished(QUrl original_url, QUrl url, Song::FileType, QString error = QString());
|
||||
void LoginFailure(const QString &failure_reason);
|
||||
void Results(const int id, const SongMap &songs = SongMap(), const QString &error = QString());
|
||||
void UpdateStatus(const int id, const QString &text);
|
||||
void UpdateProgress(const int id, const int max);
|
||||
void StreamURLFinished(const QUrl &original_url, const QUrl &url, const Song::FileType filetype, const QString &error = QString());
|
||||
|
||||
private slots:
|
||||
void ArtistsReplyReceived(QNetworkReply *reply, const int limit_requested, const int offset_requested);
|
||||
|
||||
@@ -58,8 +58,8 @@ class TidalStreamURLRequest : public TidalBaseRequest {
|
||||
|
||||
signals:
|
||||
void TryLogin();
|
||||
void StreamURLFailure(uint id, QUrl original_url, QString error);
|
||||
void StreamURLSuccess(uint id, QUrl original_url, QUrl stream_url, Song::FileType filetype, int samplerate = -1, int bit_depth = -1, qint64 duration = -1);
|
||||
void StreamURLFailure(const uint id, const QUrl &original_url, const QString &error);
|
||||
void StreamURLSuccess(const uint id, const QUrl &original_url, const QUrl &stream_url, const Song::FileType filetype, const int samplerate = -1, const int bit_depth = -1, const qint64 duration = -1);
|
||||
|
||||
private slots:
|
||||
void StreamURLReceived();
|
||||
|
||||
Reference in New Issue
Block a user