diff options
Diffstat (limited to 'subsurface-core/cloudstorage.h')
-rw-r--r-- | subsurface-core/cloudstorage.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subsurface-core/cloudstorage.h b/subsurface-core/cloudstorage.h new file mode 100644 index 000000000..b4b21dd2a --- /dev/null +++ b/subsurface-core/cloudstorage.h @@ -0,0 +1,27 @@ +#ifndef CLOUD_STORAGE_H +#define CLOUD_STORAGE_H + +#include <QObject> +#include <QNetworkReply> + +class CloudStorageAuthenticate : public QObject { + Q_OBJECT +public: + QNetworkReply* backend(QString email, QString password, QString pin = "", QString newpasswd = ""); + explicit CloudStorageAuthenticate(QObject *parent); +signals: + void finishedAuthenticate(); + void passwordChangeSuccessful(); +private +slots: + void uploadError(QNetworkReply::NetworkError error); + void sslErrors(QList<QSslError> errorList); + void uploadFinished(); +private: + QNetworkReply *reply; + QString userAgent; + bool verbose; +}; + +QNetworkAccessManager *manager(); +#endif
\ No newline at end of file |