diff options
author | Fabian Müller <fmueller@owncloud.com> | 2022-02-07 13:19:17 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-02-16 15:25:15 +0300 |
commit | d2374e510250ef2bfcd03e4ccdc51eec278f29f6 (patch) | |
tree | e9073eb172ffc7d7eb71e9b111ae61934a9f65f9 /src/gui/accountstate.h | |
parent | 620a6c5782a9c88689e0682b1298a84705c57c94 (diff) |
Extract "Update URL dialog" into separate class
Using inheritance here instead of a factory saves some boilerplate code,
and apparently it's the Qt way of life.
Diffstat (limited to 'src/gui/accountstate.h')
-rw-r--r-- | src/gui/accountstate.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/accountstate.h b/src/gui/accountstate.h index b24283ecd..9f910c9dc 100644 --- a/src/gui/accountstate.h +++ b/src/gui/accountstate.h @@ -18,11 +18,12 @@ #include "jobqueue.h" +#include "connectionvalidator.h" +#include "creds/abstractcredentials.h" +#include "updateurldialog.h" #include <QByteArray> #include <QElapsedTimer> #include <QPointer> -#include "connectionvalidator.h" -#include "creds/abstractcredentials.h" #include <memory> class QDialog; @@ -133,7 +134,7 @@ public: * was not so long ago. */ void tagLastSuccessfullETagRequest(const QDateTime &tp); - QDialog *updateUrlDialog(const QUrl &url); + UpdateUrlDialog *updateUrlDialog(const QUrl &newUrl); public slots: /// Triggers a ping to the server to update state and @@ -167,7 +168,7 @@ private: bool _waitingForNewCredentials; QDateTime _timeOfLastETagCheck; QPointer<ConnectionValidator> _connectionValidator; - QPointer<QMessageBox> _updateUrlDialog; + QPointer<UpdateUrlDialog> _updateUrlDialog; /** * Starts counting when the server starts being back up after 503 or |