mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
8b7427c56d
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>
27 lines
No EOL
637 B
C++
27 lines
No EOL
637 B
C++
#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 |