subsurface/subsurface-core/cloudstorage.h
Tomaz Canabrava ccf29679ae Fix usage of QString
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>
2016-01-26 09:51:14 -08:00

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