mobile-widgets: make DECO_MODE and DIVE_MODE available to QML

Duplicate deco_mode to DECO_MODE, in order to make it available to QML.

Duplicate enum divemode_t to DIVE_MODE in order to make it
available to QML. Only part of the enum is made available.

Signed-off-by: jan Iversen <jan@casacondor.com>
This commit is contained in:
jan Iversen 2020-01-22 10:12:43 +01:00 committed by Dirk Hohndel
parent 59ac506091
commit ee839fe5d9

View file

@ -142,6 +142,21 @@ public:
};
Q_ENUM(CLOUD_STATUS);
enum DECO_MODE {
BUEHLMANN,
RECREATIONAL,
VPMB
};
Q_ENUM(DECO_MODE);
enum DIVE_MODE {
OC,
CCR,
PSCR,
FREEDIVE
};
Q_ENUM(DIVE_MODE);
public:
CLOUD_STATUS cloud_verification_status() { return (CLOUD_STATUS)prefs.cloud_verification_status; }
DURATION duration_units() { return (DURATION)prefs.units.duration_units; }