mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile UI/login: remove cloudUserName from QMLPrefs
cloudUserName is no longer used as a temporary variable. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ac28896a5d
commit
a97cc83458
2 changed files with 1 additions and 21 deletions
|
@ -55,17 +55,6 @@ void QMLPrefs::setCloudPin(const QString &cloudPin)
|
||||||
emit cloudPinChanged();
|
emit cloudPinChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString QMLPrefs::cloudUserName() const
|
|
||||||
{
|
|
||||||
return m_cloudUserName;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMLPrefs::setCloudUserName(const QString &cloudUserName)
|
|
||||||
{
|
|
||||||
m_cloudUserName = cloudUserName.toLower();
|
|
||||||
emit cloudUserNameChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
|
qPrefCloudStorage::cloud_status QMLPrefs::credentialStatus() const
|
||||||
{
|
{
|
||||||
return m_credentialStatus;
|
return m_credentialStatus;
|
||||||
|
@ -140,7 +129,7 @@ void QMLPrefs::cancelCredentialsPinSetup()
|
||||||
|
|
||||||
void QMLPrefs::clearCredentials()
|
void QMLPrefs::clearCredentials()
|
||||||
{
|
{
|
||||||
setCloudUserName(NULL);
|
qPrefCloudStorage::set_cloud_storage_email(NULL);
|
||||||
setCloudPassword(NULL);
|
setCloudPassword(NULL);
|
||||||
setCloudPin(NULL);
|
setCloudPin(NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,6 @@ class QMLPrefs : public QObject {
|
||||||
MEMBER m_cloudPin
|
MEMBER m_cloudPin
|
||||||
WRITE setCloudPin
|
WRITE setCloudPin
|
||||||
NOTIFY cloudPinChanged)
|
NOTIFY cloudPinChanged)
|
||||||
Q_PROPERTY(QString cloudUserName
|
|
||||||
MEMBER m_cloudUserName
|
|
||||||
WRITE setCloudUserName
|
|
||||||
NOTIFY cloudUserNameChanged)
|
|
||||||
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
|
Q_PROPERTY(qPrefCloudStorage::cloud_status credentialStatus
|
||||||
MEMBER m_credentialStatus
|
MEMBER m_credentialStatus
|
||||||
WRITE setCredentialStatus
|
WRITE setCredentialStatus
|
||||||
|
@ -45,9 +41,6 @@ public:
|
||||||
const QString cloudPin() const;
|
const QString cloudPin() const;
|
||||||
void setCloudPin(const QString &cloudPin);
|
void setCloudPin(const QString &cloudPin);
|
||||||
|
|
||||||
const QString cloudUserName() const;
|
|
||||||
void setCloudUserName(const QString &cloudUserName);
|
|
||||||
|
|
||||||
qPrefCloudStorage::cloud_status credentialStatus() const;
|
qPrefCloudStorage::cloud_status credentialStatus() const;
|
||||||
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
|
void setCredentialStatus(const qPrefCloudStorage::cloud_status value);
|
||||||
|
|
||||||
|
@ -64,7 +57,6 @@ public slots:
|
||||||
private:
|
private:
|
||||||
QString m_cloudPassword;
|
QString m_cloudPassword;
|
||||||
QString m_cloudPin;
|
QString m_cloudPin;
|
||||||
QString m_cloudUserName;
|
|
||||||
qPrefCloudStorage::cloud_status m_credentialStatus;
|
qPrefCloudStorage::cloud_status m_credentialStatus;
|
||||||
static QMLPrefs *m_instance;
|
static QMLPrefs *m_instance;
|
||||||
qPrefCloudStorage::cloud_status m_oldStatus;
|
qPrefCloudStorage::cloud_status m_oldStatus;
|
||||||
|
@ -73,7 +65,6 @@ private:
|
||||||
signals:
|
signals:
|
||||||
void cloudPasswordChanged();
|
void cloudPasswordChanged();
|
||||||
void cloudPinChanged();
|
void cloudPinChanged();
|
||||||
void cloudUserNameChanged();
|
|
||||||
void credentialStatusChanged();
|
void credentialStatusChanged();
|
||||||
void oldStatusChanged();
|
void oldStatusChanged();
|
||||||
void showPinChanged();
|
void showPinChanged();
|
||||||
|
|
Loading…
Add table
Reference in a new issue