mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
mobile UI/login: remove cloudPassword from QMLPrefs
cloudPassword is no longer used as a temporary variable Remove cloudPassword from QMLPrefs. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5af7727ad0
commit
48bae80577
2 changed files with 1 additions and 21 deletions
|
@ -33,17 +33,6 @@ QMLPrefs *QMLPrefs::instance()
|
||||||
|
|
||||||
|
|
||||||
/*** public functions ***/
|
/*** public functions ***/
|
||||||
const QString QMLPrefs::cloudPassword() const
|
|
||||||
{
|
|
||||||
return m_cloudPassword;
|
|
||||||
}
|
|
||||||
|
|
||||||
void QMLPrefs::setCloudPassword(const QString &cloudPassword)
|
|
||||||
{
|
|
||||||
m_cloudPassword = cloudPassword;
|
|
||||||
emit cloudPasswordChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
const QString QMLPrefs::cloudPin() const
|
const QString QMLPrefs::cloudPin() const
|
||||||
{
|
{
|
||||||
return m_cloudPin;
|
return m_cloudPin;
|
||||||
|
@ -130,6 +119,6 @@ void QMLPrefs::cancelCredentialsPinSetup()
|
||||||
void QMLPrefs::clearCredentials()
|
void QMLPrefs::clearCredentials()
|
||||||
{
|
{
|
||||||
qPrefCloudStorage::set_cloud_storage_email(NULL);
|
qPrefCloudStorage::set_cloud_storage_email(NULL);
|
||||||
setCloudPassword(NULL);
|
qPrefCloudStorage::set_cloud_storage_password(NULL);
|
||||||
setCloudPin(NULL);
|
setCloudPin(NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,10 +9,6 @@
|
||||||
|
|
||||||
class QMLPrefs : public QObject {
|
class QMLPrefs : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(QString cloudPassword
|
|
||||||
MEMBER m_cloudPassword
|
|
||||||
WRITE setCloudPassword
|
|
||||||
NOTIFY cloudPasswordChanged)
|
|
||||||
Q_PROPERTY(QString cloudPin
|
Q_PROPERTY(QString cloudPin
|
||||||
MEMBER m_cloudPin
|
MEMBER m_cloudPin
|
||||||
WRITE setCloudPin
|
WRITE setCloudPin
|
||||||
|
@ -35,9 +31,6 @@ public:
|
||||||
|
|
||||||
static QMLPrefs *instance();
|
static QMLPrefs *instance();
|
||||||
|
|
||||||
const QString cloudPassword() const;
|
|
||||||
void setCloudPassword(const QString &cloudPassword);
|
|
||||||
|
|
||||||
const QString cloudPin() const;
|
const QString cloudPin() const;
|
||||||
void setCloudPin(const QString &cloudPin);
|
void setCloudPin(const QString &cloudPin);
|
||||||
|
|
||||||
|
@ -55,7 +48,6 @@ public slots:
|
||||||
void clearCredentials();
|
void clearCredentials();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_cloudPassword;
|
|
||||||
QString m_cloudPin;
|
QString m_cloudPin;
|
||||||
qPrefCloudStorage::cloud_status m_credentialStatus;
|
qPrefCloudStorage::cloud_status m_credentialStatus;
|
||||||
static QMLPrefs *m_instance;
|
static QMLPrefs *m_instance;
|
||||||
|
@ -63,7 +55,6 @@ private:
|
||||||
bool m_showPin;
|
bool m_showPin;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void cloudPasswordChanged();
|
|
||||||
void cloudPinChanged();
|
void cloudPinChanged();
|
||||||
void credentialStatusChanged();
|
void credentialStatusChanged();
|
||||||
void oldStatusChanged();
|
void oldStatusChanged();
|
||||||
|
|
Loading…
Reference in a new issue