mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 11:31:29 +00:00
32bc034f41
Apple store rules require this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
31 lines
856 B
C++
31 lines
856 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#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());
|
|
QNetworkReply* deleteAccount(const QString& email, const QString &passwd);
|
|
explicit CloudStorageAuthenticate(QObject *parent);
|
|
signals:
|
|
void finishedAuthenticate();
|
|
void finishedDelete();
|
|
void passwordChangeSuccessful();
|
|
private
|
|
slots:
|
|
void uploadError(QNetworkReply::NetworkError error);
|
|
void sslErrors(const QList<QSslError> &errorList);
|
|
void uploadFinished();
|
|
void deleteFinished();
|
|
private:
|
|
QNetworkReply *reply;
|
|
QString userAgent;
|
|
QString cloudNewPassword;
|
|
};
|
|
|
|
QNetworkAccessManager *manager();
|
|
#endif
|