aboutsummaryrefslogtreecommitdiffstats
path: root/core/cloudstorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/cloudstorage.h')
-rw-r--r--core/cloudstorage.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/cloudstorage.h b/core/cloudstorage.h
new file mode 100644
index 000000000..6addb739d
--- /dev/null
+++ b/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(const QString& email,const QString& password,const QString& pin = QString(),const QString& newpasswd = QString());
+ 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