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:
parent
18dc6f3c88
commit
bb134ee7ac
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user