diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-15 14:12:03 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-03-15 14:12:03 +0300 |
commit | fd95b7a4de7fd3e0d091d1a72bbfe1eee255205a (patch) | |
tree | f47d3616cfec439db5ee19d7ad8336a24c19f713 /src/gui/connectionvalidator.h | |
parent | 0dd2065bd8fff67f30521f67c37af1fc2f1fb861 (diff) | |
parent | b35eec30325eb9933339e02e66640ca2082ade35 (diff) |
Merge remote-tracking branch 'origin/2.10'
Diffstat (limited to 'src/gui/connectionvalidator.h')
-rw-r--r-- | src/gui/connectionvalidator.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/connectionvalidator.h b/src/gui/connectionvalidator.h index 4ecb69587..6e1cfdd83 100644 --- a/src/gui/connectionvalidator.h +++ b/src/gui/connectionvalidator.h @@ -97,6 +97,12 @@ public: // How often should the Application ask this object to check for the connection? static constexpr auto DefaultCallingInterval = std::chrono::seconds(62); + + /** Whether to clear the cookies before we start the CheckServerJob job + * This option also depends on Theme::instance()->connectionValidatorClearCookies() + */ + void setClearCookies(bool clearCookies); + public slots: /// Checks the server and the authentication. void checkServer(); @@ -104,10 +110,6 @@ public slots: void systemProxyLookupDone(const QNetworkProxy &proxy); signals: - /** - * Emited before the actual validation starts - */ - void aboutToStart(); void connectionResult(ConnectionValidator::Status status, const QStringList &errors); protected slots: @@ -139,6 +141,7 @@ private: QStringList _errors; AccountPtr _account; bool _updateConfig = true; + bool _clearCookies = false; }; } |