will trigger a check of the server connectivity in case of content
access denied reporting when listing folders during discovery
should allow discovering early that terms of service need to be signed
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
this, &AccountState::slotPushNotificationsReady);
connect(account.data(), &Account::serverUserStatusChanged, this,
&AccountState::slotServerUserStatusChanged);
+ connect(account.data(), &Account::termsOfServiceNeedToBeChecked,
+ this, [this] () {
+ checkConnectivity();
+ });
connect(this, &AccountState::isConnectedChanged, [=]{
// Get the Apps available on the server if we're now connected.
void downloadLimitSettingChanged();
void uploadLimitChanged();
void downloadLimitChanged();
+ void termsOfServiceNeedToBeChecked();
protected Q_SLOTS:
void slotCredentialsFetched();
msg = tr("Server error: PROPFIND reply is not XML formatted!");
}
+ if (r->error() == QNetworkReply::ContentAccessDenied) {
+ emit _account->termsOfServiceNeedToBeChecked();
+ }
+
emit finished(HttpError{ httpCode, msg });
deleteLater();
}