diff options
Diffstat (limited to 'mobile-widgets/qmlprefs.cpp')
-rw-r--r-- | mobile-widgets/qmlprefs.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mobile-widgets/qmlprefs.cpp b/mobile-widgets/qmlprefs.cpp index 4330597ce..03f51f765 100644 --- a/mobile-widgets/qmlprefs.cpp +++ b/mobile-widgets/qmlprefs.cpp @@ -11,10 +11,10 @@ QMLPrefs *QMLPrefs::m_instance = NULL; QMLPrefs::QMLPrefs() : - m_credentialStatus(QMLPrefs::CS_UNKNOWN), + m_credentialStatus(qPref::CS_UNKNOWN), m_developer(false), m_distanceThreshold(1000), - m_oldStatus(QMLPrefs::CS_UNKNOWN), + m_oldStatus(qPref::CS_UNKNOWN), m_showPin(false), m_timeThreshold(60) { @@ -69,16 +69,16 @@ void QMLPrefs::setCloudUserName(const QString &cloudUserName) emit cloudUserNameChanged(); } -QMLPrefs::cloud_status QMLPrefs::credentialStatus() const +qPref::cloud_status QMLPrefs::credentialStatus() const { return m_credentialStatus; } -void QMLPrefs::setCredentialStatus(const QMLPrefs::cloud_status value) +void QMLPrefs::setCredentialStatus(const qPref::cloud_status value) { if (m_credentialStatus != value) { setOldStatus(m_credentialStatus); - if (value == QMLPrefs::CS_NOCLOUD) { + if (value == qPref::CS_NOCLOUD) { QMLManager::instance()->appendTextToLog("Switching to no cloud mode"); set_filename(NOCLOUD_LOCALSTORAGE); clearCredentials(); @@ -105,12 +105,12 @@ void QMLPrefs::setDistanceThreshold(int distance) emit distanceThresholdChanged(); } -QMLPrefs::cloud_status QMLPrefs::oldStatus() const +qPref::cloud_status QMLPrefs::oldStatus() const { return m_oldStatus; } -void QMLPrefs::setOldStatus(const QMLPrefs::cloud_status value) +void QMLPrefs::setOldStatus(const qPref::cloud_status value) { if (m_oldStatus != value) { m_oldStatus = value; @@ -177,7 +177,7 @@ void QMLPrefs::cancelCredentialsPinSetup() */ QSettings s; - setCredentialStatus(QMLPrefs::CS_UNKNOWN); + setCredentialStatus(qPref::CS_UNKNOWN); s.beginGroup("CloudStorage"); s.setValue("email", m_cloudUserName); s.setValue("password", m_cloudPassword); |