summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-09 17:16:31 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-09 17:16:31 -0700
commit8282ed23488b734f126bf58fc18474c4a7db5c23 (patch)
tree994b4919a16917a71570c47e7bd5bbdb54e5d54d /qt-ui/subsurfacewebservices.h
parent9d0f2a6571f541862fd8204c067ea2f5ed2c4091 (diff)
parent57507cfb93984e520fdd9545c84ea3b921c2914e (diff)
downloadsubsurface-8282ed23488b734f126bf58fc18474c4a7db5c23.tar.gz
Merge branch 'cloudstorage'
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index a9735382c..6f8d6279a 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -109,6 +109,23 @@ slots:
virtual void startDownload() { }
virtual void startUpload() { }
virtual void buttonClicked(QAbstractButton *button) { }
+};
+
+class CloudStorageAuthenticate : public QObject {
+ Q_OBJECT
+public:
+ QNetworkReply* authenticate(QString email, QString password, QString pin = "");
+ explicit CloudStorageAuthenticate(QObject *parent);
+signals:
+ void finishedAuthenticate(bool toggle);
+private
+slots:
+ void uploadError(QNetworkReply::NetworkError error);
+ void sslErrors(QList<QSslError> errorList);
+ void uploadFinished();
+private:
+ QNetworkReply *reply;
+ QString userAgent;
};