From 318bf5cccc9a8ac2c8ee18939e3c6c4a4e7a0fb3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 4 Jun 2015 17:26:30 -0700 Subject: 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 --- qt-ui/subsurfacewebservices.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'qt-ui/subsurfacewebservices.h') 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 errorList); + void uploadFinished(); +private: + QNetworkReply *reply; + QString userAgent; }; -- cgit v1.2.3-70-g09d2