diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 17:26:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-07 09:54:35 -0700 |
commit | 318bf5cccc9a8ac2c8ee18939e3c6c4a4e7a0fb3 (patch) | |
tree | 25ee266d20b6e8b85a225d562a5574ae4d4da785 /qt-ui/subsurfacewebservices.h | |
parent | d9801b67b4dc7b925b356d2574cafaa03e598a3b (diff) | |
download | subsurface-318bf5cccc9a8ac2c8ee18939e3c6c4a4e7a0fb3.tar.gz |
Cloud storage: first stab at creating an account on the backend
This triggers when the email address / password is changed in the
preferences. It opens an https connection with the backend server (the URL
is hardcoded) which should create an account with these credentials.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r-- | qt-ui/subsurfacewebservices.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h index a9735382c..48f93da92 100644 --- a/qt-ui/subsurfacewebservices.h +++ b/qt-ui/subsurfacewebservices.h @@ -109,6 +109,21 @@ slots: virtual void startDownload() { } virtual void startUpload() { } virtual void buttonClicked(QAbstractButton *button) { } +}; + +class CloudStorageAuthenticate : QObject { + Q_OBJECT +public: + QNetworkReply* authenticate(QString email, QString password); + explicit CloudStorageAuthenticate(QObject *parent); +private +slots: + void uploadError(QNetworkReply::NetworkError error); + void sslErrors(QList<QSslError> errorList); + void uploadFinished(); +private: + QNetworkReply *reply; + QString userAgent; }; |