mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Move CloudStorage out of the widgets
Cloud Storage is a non-gui based class, we currently use two different approaches for cloud storage, one on the desktop target and other on the mobile target, we should use only one. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
411f455291
commit
8b7427c56d
5 changed files with 139 additions and 119 deletions
27
subsurface-core/cloudstorage.h
Normal file
27
subsurface-core/cloudstorage.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue