1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 18:03:44 +01:00

Rename NeedLogin to set_need_login

This commit is contained in:
Jonas Kvinge 2021-06-28 00:21:14 +02:00
parent 18dc6f3c88
commit bb134ee7ac
5 changed files with 7 additions and 7 deletions

View File

@ -129,7 +129,7 @@ QByteArray TidalBaseRequest::GetReplyData(QNetworkReply *reply, const bool send_
if (!oauth() && send_login && login_attempts() < max_login_attempts() && !api_token().isEmpty() && !username().isEmpty() && !password().isEmpty()) {
qLog(Error) << "Tidal:" << error;
qLog(Info) << "Tidal:" << "Attempting to login.";
NeedLogin();
set_need_login();
emit service_->RequestLogin(); // clazy:exclude=incorrect-emit
}
else {

View File

@ -92,8 +92,8 @@ class TidalBaseRequest : public QObject {
int max_login_attempts() { return service_->max_login_attempts(); }
int login_attempts() { return service_->login_attempts(); }
virtual void NeedLogin() = 0;
virtual void set_need_login() = 0;
private slots:
void HandleSSLErrors(const QList<QSslError> &ssl_errors);

View File

@ -48,8 +48,7 @@ class TidalFavoriteRequest : public TidalBaseRequest {
};
bool need_login() { return need_login_; }
void NeedLogin() override { need_login_ = true; }
void set_need_login() override { need_login_ = true; }
signals:
void ArtistsAdded(SongList);

View File

@ -56,7 +56,7 @@ class TidalRequest : public TidalBaseRequest {
void ReloadSettings();
void Process();
void NeedLogin() override { need_login_ = true; }
void set_need_login() override { need_login_ = true; }
void Search(const int query_id, const QString &search_text);
private:

View File

@ -46,13 +46,14 @@ class TidalStreamURLRequest : public TidalBaseRequest {
void GetStreamURL();
void Process();
void NeedLogin() override { need_login_ = true; }
void Cancel();
bool oauth() { return service_->oauth(); }
TidalSettingsPage::StreamUrlMethod stream_url_method() { return service_->stream_url_method(); }
QUrl original_url() { return original_url_; }
int song_id() { return song_id_; }
void set_need_login() override { need_login_ = true; }
bool need_login() { return need_login_; }
signals: