mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
b368ecd5aa
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
28 lines
713 B
C++
28 lines
713 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());
|
|
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
|