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 <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2020-01-18 14:02:00 +01:00 committed by Dirk Hohndel
parent 9105a4c39b
commit c93b76eee6
3 changed files with 24 additions and 0 deletions

View file

@ -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,