mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Inexplicably, commit 8b7427c56d ("Move CloudStorage out of the widgets")
didn't just move the code but added a local member 'verbose' that hides
our global variable...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
		
	
			
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			698 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			698 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;
 | |
| };
 | |
| 
 | |
| QNetworkAccessManager *manager();
 | |
| #endif
 |