From c93b76eee663d5b000dcd9f0a3e7b4fa12b99b9b Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 18 Jan 2020 14:02:00 +0100 Subject: mobile-widgets: make cloud_verification_status type proof in QML. Add CLOUD_STATUS enum to interface. Add cloud_verifification_status variable to interface, and make it strongly typed in QML. using backend.cloud_verification_status = 1 will fail but backend.cloud_verification_status = backend.CS_UNKNOWN is correct. Added note to the original definitions of the enums that they have been duplicated. Signed-off-by: jan Iversen Signed-off-by: Dirk Hohndel --- core/settings/qPrefCloudStorage.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/settings/qPrefCloudStorage.h') diff --git a/core/settings/qPrefCloudStorage.h b/core/settings/qPrefCloudStorage.h index d7d2b4ee4..b0d24227a 100644 --- a/core/settings/qPrefCloudStorage.h +++ b/core/settings/qPrefCloudStorage.h @@ -31,6 +31,7 @@ public: static void sync() { loadSync(true); } public: + // NOTE: these enums are duplicated in mobile-widgets/qmlinterface.h enum cloud_status { CS_UNKNOWN, CS_INCORRECT_USER_PASSWD, -- cgit v1.2.3-70-g09d2