// SPDX-License-Identifier: GPL-2.0 #ifndef CLOUD_STORAGE_H #define CLOUD_STORAGE_H #include #include 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(const QList &errorList); void uploadFinished(); private: QNetworkReply *reply; QString userAgent; QString cloudNewPassword; }; QNetworkAccessManager *manager(); #endif