mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
ccf29679ae
1 - Pass QStrings by const-ref 2 - Don't initialize empty strings with "", they are empty by default 3 - Don't compare empty strings with "", use .isEmpty() 4 - don't append or prepend " ", use QChar(' ') 5 - don't compare QStrings with "constant string", use QLatin1String(" constant string" ) Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
27 lines
No EOL
676 B
C++
27 lines
No EOL
676 B
C++
#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 |