2020-01-04 08:26:09 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef QMLINTERFACE_H
|
|
|
|
#define QMLINTERFACE_H
|
2020-01-18 13:02:00 +00:00
|
|
|
#include "core/settings/qPrefCloudStorage.h"
|
2020-01-18 22:12:32 +00:00
|
|
|
#include "core/settings/qPrefUnit.h"
|
2020-01-19 17:44:16 +00:00
|
|
|
#include "core/settings/qPrefDivePlanner.h"
|
2020-01-20 20:19:12 +00:00
|
|
|
#include "core/settings/qPrefTechnicalDetails.h"
|
2020-01-19 17:44:16 +00:00
|
|
|
#include "qt-models/diveplannermodel.h"
|
2020-01-08 11:06:23 +00:00
|
|
|
#include "backend-shared/plannershared.h"
|
2020-01-24 12:31:51 +00:00
|
|
|
#include "backend-shared/divesummary.h"
|
2020-01-18 13:02:00 +00:00
|
|
|
|
2020-01-04 08:26:09 +00:00
|
|
|
#include <QObject>
|
|
|
|
#include <QQmlContext>
|
2020-01-24 12:31:51 +00:00
|
|
|
#include <QStringList>
|
|
|
|
|
2020-01-04 08:26:09 +00:00
|
|
|
// This class is a pure interface class and may not contain any implementation code
|
|
|
|
// Allowed are:
|
|
|
|
// header
|
|
|
|
// Q_PROPERTY
|
|
|
|
// signal/slot for Q_PROPERTY functions
|
|
|
|
// the functions may contain either
|
|
|
|
// a) a function call to the implementation
|
|
|
|
// b) a reference to a global variable like e.g. prefs.
|
|
|
|
// Q_INVOCABLE functions
|
|
|
|
// the functions may contain
|
|
|
|
// a) a function call to the implementation
|
|
|
|
// source
|
|
|
|
// connect signal/signal to pass signals from implementation
|
|
|
|
|
|
|
|
|
|
|
|
class QMLInterface : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
// Q_PROPERTY used in QML
|
2020-01-18 13:02:00 +00:00
|
|
|
Q_PROPERTY(CLOUD_STATUS cloud_verification_status READ cloud_verification_status WRITE set_cloud_verification_status NOTIFY cloud_verification_statusChanged)
|
2020-01-18 22:12:32 +00:00
|
|
|
Q_PROPERTY(DURATION duration_units READ duration_units WRITE set_duration_units NOTIFY duration_unitsChanged)
|
|
|
|
Q_PROPERTY(LENGTH length READ length WRITE set_length NOTIFY lengthChanged)
|
|
|
|
Q_PROPERTY(PRESSURE pressure READ pressure WRITE set_pressure NOTIFY pressureChanged)
|
|
|
|
Q_PROPERTY(TEMPERATURE temperature READ temperature WRITE set_temperature NOTIFY temperatureChanged)
|
|
|
|
Q_PROPERTY(UNIT_SYSTEM unit_system READ unit_system WRITE set_unit_system NOTIFY unit_systemChanged)
|
|
|
|
Q_PROPERTY(TIME vertical_speed_time READ vertical_speed_time WRITE set_vertical_speed_time NOTIFY vertical_speed_timeChanged)
|
|
|
|
Q_PROPERTY(VOLUME volume READ volume WRITE set_volume NOTIFY volumeChanged)
|
|
|
|
Q_PROPERTY(WEIGHT weight READ weight WRITE set_weight NOTIFY weightChanged)
|
2020-01-04 08:26:09 +00:00
|
|
|
|
2020-01-19 17:44:16 +00:00
|
|
|
Q_PROPERTY(int ascratelast6m READ ascratelast6m WRITE set_ascratelast6m NOTIFY ascratelast6mChanged);
|
|
|
|
Q_PROPERTY(int ascratestops READ ascratestops WRITE set_ascratestops NOTIFY ascratestopsChanged);
|
|
|
|
Q_PROPERTY(int ascrate50 READ ascrate50 WRITE set_ascrate50 NOTIFY ascrate50Changed);
|
|
|
|
Q_PROPERTY(int ascrate75 READ ascrate75 WRITE set_ascrate75 NOTIFY ascrate75Changed);
|
|
|
|
Q_PROPERTY(int descrate READ descrate WRITE set_descrate NOTIFY descrateChanged);
|
|
|
|
|
2020-01-28 15:31:42 +00:00
|
|
|
Q_PROPERTY(DIVE_MODE dive_mode READ dive_mode WRITE set_dive_mode NOTIFY dive_modeChanged);
|
2020-01-22 09:38:46 +00:00
|
|
|
Q_PROPERTY(DECO_MODE planner_deco_mode READ planner_deco_mode WRITE set_planner_deco_mode NOTIFY planner_deco_modeChanged);
|
|
|
|
Q_PROPERTY(int reserve_gas READ reserve_gas WRITE set_reserve_gas NOTIFY reserve_gasChanged);
|
2020-01-20 20:19:12 +00:00
|
|
|
Q_PROPERTY(bool safetystop READ safetystop WRITE set_safetystop NOTIFY safetystopChanged);
|
|
|
|
Q_PROPERTY(int gflow READ gflow WRITE set_gflow NOTIFY gflowChanged);
|
|
|
|
Q_PROPERTY(int gfhigh READ gfhigh WRITE set_gfhigh NOTIFY gfhighChanged);
|
|
|
|
Q_PROPERTY(int vpmb_conservatism READ vpmb_conservatism WRITE set_vpmb_conservatism NOTIFY vpmb_conservatismChanged);
|
2020-01-22 09:38:46 +00:00
|
|
|
Q_PROPERTY(bool dobailout READ dobailout WRITE set_dobailout NOTIFY dobailoutChanged);
|
2020-01-20 20:19:12 +00:00
|
|
|
Q_PROPERTY(bool drop_stone_mode READ drop_stone_mode WRITE set_drop_stone_mode NOTIFY drop_stone_modeChanged);
|
|
|
|
Q_PROPERTY(bool last_stop6m READ last_stop6m WRITE set_last_stop6m NOTIFY last_stop6mChanged);
|
|
|
|
Q_PROPERTY(bool switch_at_req_stop READ switch_at_req_stop WRITE set_switch_at_req_stop NOTIFY switch_at_req_stopChanged);
|
2020-01-22 09:38:46 +00:00
|
|
|
Q_PROPERTY(bool doo2breaks READ doo2breaks WRITE set_doo2breaks NOTIFY doo2breaksChanged);
|
|
|
|
Q_PROPERTY(int min_switch_duration READ min_switch_duration WRITE set_min_switch_duration NOTIFY min_switch_durationChanged);
|
2020-01-10 21:51:28 +00:00
|
|
|
Q_PROPERTY(int surface_segment READ surface_segment WRITE set_surface_segment NOTIFY surface_segmentChanged);
|
2020-01-20 20:19:12 +00:00
|
|
|
|
2020-01-21 16:43:18 +00:00
|
|
|
Q_PROPERTY(int bottomsac READ bottomsac WRITE set_bottomsac NOTIFY bottomsacChanged);
|
|
|
|
Q_PROPERTY(int decosac READ decosac WRITE set_decosac NOTIFY decosacChanged);
|
|
|
|
Q_PROPERTY(int problemsolvingtime READ problemsolvingtime WRITE set_problemsolvingtime NOTIFY problemsolvingtimeChanged);
|
|
|
|
Q_PROPERTY(int sacfactor READ sacfactor WRITE set_sacfactor NOTIFY sacfactorChanged);
|
|
|
|
Q_PROPERTY(bool o2narcotic READ o2narcotic WRITE set_o2narcotic NOTIFY o2narcoticChanged);
|
|
|
|
Q_PROPERTY(int bottompo2 READ bottompo2 WRITE set_bottompo2 NOTIFY bottompo2Changed);
|
|
|
|
Q_PROPERTY(int decopo2 READ decopo2 WRITE set_decopo2 NOTIFY decopo2Changed);
|
|
|
|
Q_PROPERTY(int bestmixend READ bestmixend WRITE set_bestmixend NOTIFY bestmixendChanged);
|
|
|
|
|
2020-01-20 19:10:35 +00:00
|
|
|
Q_PROPERTY(bool display_runtime READ display_runtime WRITE set_display_runtime NOTIFY display_runtimeChanged);
|
|
|
|
Q_PROPERTY(bool display_duration READ display_duration WRITE set_display_duration NOTIFY display_durationChanged);
|
|
|
|
Q_PROPERTY(bool display_transitions READ display_transitions WRITE set_display_transitions NOTIFY display_transitionsChanged);
|
|
|
|
Q_PROPERTY(bool verbatim_plan READ verbatim_plan WRITE set_verbatim_plan NOTIFY verbatim_planChanged);
|
|
|
|
Q_PROPERTY(bool display_variations READ display_variations WRITE set_display_variations NOTIFY display_variationsChanged);
|
|
|
|
|
2020-01-24 12:31:51 +00:00
|
|
|
Q_PROPERTY(QStringList diveSummaryText READ diveSummaryText NOTIFY diveSummaryTextChanged);
|
|
|
|
|
2020-01-04 08:26:09 +00:00
|
|
|
public:
|
|
|
|
static QMLInterface *instance();
|
|
|
|
|
|
|
|
// function to do the needed setup and do connect of signal/signal
|
|
|
|
static void setup(QQmlContext *ct);
|
|
|
|
|
|
|
|
// Duplicated enums, these enums are properly defined in the C/C++ structure
|
|
|
|
// but duplicated here to make them available to QML.
|
|
|
|
|
|
|
|
// Duplicating the enums poses a slight risk for forgetting to update
|
|
|
|
// them if the proper enum is changed (e.g. assigning a new start value).
|
|
|
|
|
|
|
|
// remark please do not use these enums outside the C++/QML interface.
|
|
|
|
enum UNIT_SYSTEM {
|
|
|
|
METRIC,
|
|
|
|
IMPERIAL,
|
|
|
|
PERSONALIZE
|
|
|
|
};
|
|
|
|
Q_ENUM(UNIT_SYSTEM);
|
|
|
|
|
|
|
|
enum LENGTH {
|
|
|
|
METERS,
|
|
|
|
FEET
|
|
|
|
};
|
|
|
|
Q_ENUM(LENGTH);
|
|
|
|
|
|
|
|
enum VOLUME {
|
|
|
|
LITER,
|
|
|
|
CUFT
|
|
|
|
};
|
|
|
|
Q_ENUM(VOLUME);
|
|
|
|
|
|
|
|
enum PRESSURE {
|
|
|
|
BAR,
|
|
|
|
PSI,
|
|
|
|
PASCALS
|
|
|
|
};
|
|
|
|
Q_ENUM(PRESSURE);
|
|
|
|
|
|
|
|
enum TEMPERATURE {
|
|
|
|
CELSIUS,
|
|
|
|
FAHRENHEIT,
|
|
|
|
KELVIN
|
|
|
|
};
|
|
|
|
Q_ENUM(TEMPERATURE);
|
|
|
|
|
|
|
|
enum WEIGHT {
|
|
|
|
KG,
|
|
|
|
LBS
|
|
|
|
};
|
|
|
|
Q_ENUM(WEIGHT);
|
|
|
|
|
|
|
|
enum TIME {
|
|
|
|
SECONDS,
|
|
|
|
MINUTES
|
|
|
|
};
|
|
|
|
Q_ENUM(TIME);
|
|
|
|
|
|
|
|
enum DURATION {
|
|
|
|
MIXED,
|
|
|
|
MINUTES_ONLY,
|
|
|
|
ALWAYS_HOURS
|
|
|
|
};
|
|
|
|
Q_ENUM(DURATION);
|
|
|
|
|
2020-01-18 13:02:00 +00:00
|
|
|
enum CLOUD_STATUS {
|
|
|
|
CS_UNKNOWN,
|
|
|
|
CS_INCORRECT_USER_PASSWD,
|
|
|
|
CS_NEED_TO_VERIFY,
|
|
|
|
CS_VERIFIED,
|
|
|
|
CS_NOCLOUD
|
|
|
|
};
|
|
|
|
Q_ENUM(CLOUD_STATUS);
|
|
|
|
|
2020-01-22 09:12:43 +00:00
|
|
|
enum DECO_MODE {
|
|
|
|
BUEHLMANN,
|
|
|
|
RECREATIONAL,
|
|
|
|
VPMB
|
|
|
|
};
|
|
|
|
Q_ENUM(DECO_MODE);
|
|
|
|
|
|
|
|
enum DIVE_MODE {
|
|
|
|
OC,
|
|
|
|
CCR,
|
|
|
|
PSCR,
|
|
|
|
FREEDIVE
|
|
|
|
};
|
|
|
|
Q_ENUM(DIVE_MODE);
|
|
|
|
|
2020-01-24 12:31:51 +00:00
|
|
|
// Function to calculate dive summary
|
|
|
|
Q_INVOKABLE void summaryCalculation(int primaryPeriod, int secondaryPeriod);
|
|
|
|
|
2020-01-18 13:02:00 +00:00
|
|
|
public:
|
|
|
|
CLOUD_STATUS cloud_verification_status() { return (CLOUD_STATUS)prefs.cloud_verification_status; }
|
2020-01-18 22:12:32 +00:00
|
|
|
DURATION duration_units() { return (DURATION)prefs.units.duration_units; }
|
|
|
|
LENGTH length() { return (LENGTH)prefs.units.length; }
|
|
|
|
PRESSURE pressure() { return (PRESSURE)prefs.units.pressure; }
|
|
|
|
TEMPERATURE temperature() { return (TEMPERATURE)prefs.units.temperature; }
|
|
|
|
UNIT_SYSTEM unit_system() { return (UNIT_SYSTEM)prefs.unit_system; }
|
|
|
|
TIME vertical_speed_time() { return (TIME)prefs.units.vertical_speed_time; }
|
|
|
|
VOLUME volume() { return (VOLUME)prefs.units.volume; }
|
|
|
|
WEIGHT weight() { return (WEIGHT)prefs.units.weight; }
|
2020-01-18 13:02:00 +00:00
|
|
|
|
2020-01-19 17:44:16 +00:00
|
|
|
int ascratelast6m() { return DivePlannerPointsModel::instance()->ascratelast6mDisplay(); }
|
|
|
|
int ascratestops() { return DivePlannerPointsModel::instance()->ascratestopsDisplay(); }
|
|
|
|
int ascrate50() { return DivePlannerPointsModel::instance()->ascrate50Display(); }
|
|
|
|
int ascrate75() { return DivePlannerPointsModel::instance()->ascrate75Display(); }
|
|
|
|
int descrate() { return DivePlannerPointsModel::instance()->descrateDisplay(); }
|
|
|
|
|
2020-01-28 15:31:42 +00:00
|
|
|
DIVE_MODE dive_mode() { return OC; }
|
2020-01-22 09:38:46 +00:00
|
|
|
DECO_MODE planner_deco_mode() { return (DECO_MODE)plannerShared::planner_deco_mode(); }
|
|
|
|
int reserve_gas() { return plannerShared::reserve_gas(); }
|
2020-01-20 20:19:12 +00:00
|
|
|
bool safetystop() { return prefs.safetystop; }
|
|
|
|
int gflow() { return prefs.gflow; }
|
|
|
|
int gfhigh() { return prefs.gfhigh; }
|
|
|
|
int vpmb_conservatism() { return prefs.vpmb_conservatism; }
|
2020-01-22 09:38:46 +00:00
|
|
|
bool dobailout() { return plannerShared::dobailout(); }
|
2020-01-20 20:19:12 +00:00
|
|
|
bool drop_stone_mode() { return prefs.drop_stone_mode; }
|
|
|
|
bool last_stop6m() { return prefs.last_stop; }
|
|
|
|
bool switch_at_req_stop() { return prefs.switch_at_req_stop; }
|
2020-01-22 09:38:46 +00:00
|
|
|
bool doo2breaks() { return plannerShared::doo2breaks(); }
|
|
|
|
int min_switch_duration() { return plannerShared::min_switch_duration(); }
|
2020-01-10 21:51:28 +00:00
|
|
|
int surface_segment() { return plannerShared::surface_segment(); }
|
2020-01-20 20:19:12 +00:00
|
|
|
|
2020-01-21 16:43:18 +00:00
|
|
|
int bottomsac() { return (int)plannerShared::bottomsac(); }
|
|
|
|
int decosac() { return (int)plannerShared::decosac(); }
|
|
|
|
int problemsolvingtime() { return prefs.problemsolvingtime; }
|
|
|
|
int sacfactor() { return (int)plannerShared::sacfactor(); }
|
|
|
|
bool o2narcotic() { return (int)plannerShared::o2narcotic(); }
|
|
|
|
int bottompo2() { return (int)plannerShared::bottompo2(); }
|
|
|
|
int decopo2() { return (int)plannerShared::decopo2(); }
|
|
|
|
int bestmixend() { return plannerShared::bestmixend(); }
|
|
|
|
|
2020-01-20 19:10:35 +00:00
|
|
|
bool display_runtime() { return prefs.display_runtime; }
|
|
|
|
bool display_duration() { return prefs.display_duration; }
|
|
|
|
bool display_transitions() { return prefs.display_transitions; }
|
|
|
|
bool verbatim_plan() { return prefs.verbatim_plan; }
|
|
|
|
bool display_variations() { return prefs.display_variations; }
|
|
|
|
|
2020-01-24 12:31:51 +00:00
|
|
|
const QStringList &diveSummaryText() { return diveSummary::diveSummaryText; }
|
|
|
|
|
2020-01-18 13:02:00 +00:00
|
|
|
public slots:
|
|
|
|
void set_cloud_verification_status(CLOUD_STATUS value) { qPrefCloudStorage::set_cloud_verification_status(value); }
|
2020-01-18 22:12:32 +00:00
|
|
|
void set_duration_units(DURATION value) { qPrefUnits::set_duration_units((units::DURATION)value); }
|
|
|
|
void set_length(LENGTH value) { qPrefUnits::set_length((units::LENGTH)value); }
|
|
|
|
void set_pressure(PRESSURE value) { qPrefUnits::set_pressure((units::PRESSURE)value); }
|
|
|
|
void set_temperature(TEMPERATURE value) { qPrefUnits::set_temperature((units::TEMPERATURE)value); }
|
|
|
|
void set_unit_system(UNIT_SYSTEM value) { qPrefUnits::set_unit_system((unit_system_values)value); }
|
|
|
|
void set_vertical_speed_time(TIME value) { qPrefUnits::set_vertical_speed_time((units::TIME)value); }
|
|
|
|
void set_volume(VOLUME value) { qPrefUnits::set_volume((units::VOLUME)value); }
|
|
|
|
void set_weight(WEIGHT value) { qPrefUnits::set_weight((units::WEIGHT)value); }
|
2020-01-18 13:02:00 +00:00
|
|
|
|
2020-01-19 17:44:16 +00:00
|
|
|
void set_ascratelast6m(int value) { DivePlannerPointsModel::instance()->setAscratelast6mDisplay(value); }
|
|
|
|
void set_ascratestops(int value) { DivePlannerPointsModel::instance()->setAscratestopsDisplay(value); }
|
|
|
|
void set_ascrate50(int value) { DivePlannerPointsModel::instance()->setAscrate50Display(value); }
|
|
|
|
void set_ascrate75(int value) { DivePlannerPointsModel::instance()->setAscrate75Display(value); }
|
|
|
|
void set_descrate(int value) { DivePlannerPointsModel::instance()->setDescrateDisplay(value); }
|
|
|
|
|
2020-01-28 15:31:42 +00:00
|
|
|
void set_dive_mode(DIVE_MODE value) { DivePlannerPointsModel::instance()->setRebreatherMode((int)value); }
|
2020-01-22 09:38:46 +00:00
|
|
|
void set_planner_deco_mode(DECO_MODE value) { plannerShared::set_planner_deco_mode((deco_mode)value); }
|
|
|
|
void set_reserve_gas(int value) { plannerShared::set_reserve_gas(value); }
|
2020-01-20 20:19:12 +00:00
|
|
|
void set_safetystop(bool value) { DivePlannerPointsModel::instance()->setSafetyStop(value); }
|
|
|
|
void set_gflow(int value) { DivePlannerPointsModel::instance()->setGFLow(value); }
|
|
|
|
void set_gfhigh(int value) { DivePlannerPointsModel::instance()->setGFHigh(value); }
|
|
|
|
void set_vpmb_conservatism(int value) { DivePlannerPointsModel::instance()->setVpmbConservatism(value); }
|
2020-01-22 09:38:46 +00:00
|
|
|
void set_dobailout(bool value) { plannerShared::set_dobailout(value); }
|
2020-01-20 20:19:12 +00:00
|
|
|
void set_drop_stone_mode(bool value) { DivePlannerPointsModel::instance()->setDropStoneMode(value); }
|
|
|
|
void set_last_stop6m(bool value) { DivePlannerPointsModel::instance()->setLastStop6m(value); }
|
|
|
|
void set_switch_at_req_stop(bool value) { DivePlannerPointsModel::instance()->setSwitchAtReqStop(value); }
|
2020-01-22 09:38:46 +00:00
|
|
|
void set_doo2breaks(bool value) { plannerShared::set_doo2breaks(value); }
|
|
|
|
void set_min_switch_duration(int value) { plannerShared::set_min_switch_duration(value); }
|
2020-01-10 21:51:28 +00:00
|
|
|
void set_surface_segment(int value) { plannerShared::set_surface_segment(value); }
|
2020-01-20 20:19:12 +00:00
|
|
|
|
2020-01-21 16:43:18 +00:00
|
|
|
void set_bottomsac(int value) { plannerShared::set_bottomsac((double)value); }
|
|
|
|
void set_decosac(int value) { plannerShared::set_decosac((double)value); }
|
|
|
|
void set_problemsolvingtime(int value) { DivePlannerPointsModel::instance()->setProblemSolvingTime(value); }
|
|
|
|
void set_sacfactor(int value) { plannerShared::set_sacfactor((double)value); }
|
|
|
|
void set_o2narcotic(bool value) { plannerShared::set_o2narcotic(value); }
|
|
|
|
void set_bottompo2(int value) { plannerShared::set_bottompo2((double)value); }
|
|
|
|
void set_decopo2(int value) { plannerShared::set_decopo2((double)value); }
|
|
|
|
void set_bestmixend(int value) { plannerShared::set_bestmixend(value); }
|
|
|
|
|
2020-01-20 19:10:35 +00:00
|
|
|
void set_display_runtime(bool value) { DivePlannerPointsModel::instance()->setDisplayRuntime(value); }
|
|
|
|
void set_display_duration(bool value) { DivePlannerPointsModel::instance()->setDisplayDuration(value); }
|
|
|
|
void set_display_transitions(bool value) { DivePlannerPointsModel::instance()->setDisplayTransitions(value); }
|
|
|
|
void set_verbatim_plan(bool value) { DivePlannerPointsModel::instance()->setVerbatim(value); }
|
|
|
|
void set_display_variations(bool value) { DivePlannerPointsModel::instance()->setDisplayVariations(value); }
|
|
|
|
|
2020-01-18 13:02:00 +00:00
|
|
|
signals:
|
|
|
|
void cloud_verification_statusChanged(CLOUD_STATUS);
|
2020-01-18 22:12:32 +00:00
|
|
|
void duration_unitsChanged(DURATION);
|
|
|
|
void lengthChanged(LENGTH);
|
|
|
|
void pressureChanged(PRESSURE);
|
|
|
|
void temperatureChanged(TEMPERATURE);
|
|
|
|
void unit_systemChanged(UNIT_SYSTEM);
|
|
|
|
void vertical_speed_timeChanged(TIME);
|
|
|
|
void volumeChanged(VOLUME);
|
|
|
|
void weightChanged(WEIGHT);
|
2020-01-18 13:02:00 +00:00
|
|
|
|
2020-01-19 17:44:16 +00:00
|
|
|
void ascratelast6mChanged(int);
|
|
|
|
void ascratestopsChanged(int);
|
|
|
|
void ascrate50Changed(int);
|
|
|
|
void ascrate75Changed(int);
|
|
|
|
void descrateChanged(int);
|
|
|
|
|
2020-01-28 15:31:42 +00:00
|
|
|
void dive_modeChanged(DIVE_MODE value);
|
2020-01-22 09:38:46 +00:00
|
|
|
void planner_deco_modeChanged(DECO_MODE value);
|
|
|
|
void reserve_gasChanged(int value);
|
2020-01-20 20:19:12 +00:00
|
|
|
void safetystopChanged(bool value);
|
|
|
|
void gflowChanged(int value);
|
|
|
|
void gfhighChanged(int value);
|
|
|
|
void vpmb_conservatismChanged(int value);
|
2020-01-22 09:38:46 +00:00
|
|
|
void dobailoutChanged(bool value);
|
2020-01-20 20:19:12 +00:00
|
|
|
void drop_stone_modeChanged(bool value);
|
|
|
|
void last_stop6mChanged(bool value);
|
|
|
|
void switch_at_req_stopChanged(bool value);
|
2020-01-22 09:38:46 +00:00
|
|
|
void doo2breaksChanged(bool value);
|
|
|
|
void min_switch_durationChanged(int value);
|
2020-01-10 21:51:28 +00:00
|
|
|
void surface_segmentChanged(int value);
|
2020-01-20 20:19:12 +00:00
|
|
|
|
2020-01-21 16:43:18 +00:00
|
|
|
void bottomsacChanged(int value);
|
|
|
|
void decosacChanged(int value);
|
|
|
|
void sacfactorChanged(int value);
|
|
|
|
void problemsolvingtimeChanged(int value);
|
|
|
|
void o2narcoticChanged(bool value);
|
|
|
|
void bottompo2Changed(int value);
|
|
|
|
void decopo2Changed(int value);
|
|
|
|
void bestmixendChanged(int value);
|
|
|
|
|
2020-01-20 19:10:35 +00:00
|
|
|
void display_runtimeChanged(bool value);
|
|
|
|
void display_durationChanged(bool value);
|
|
|
|
void display_transitionsChanged(bool value);
|
|
|
|
void verbatim_planChanged(bool value);
|
|
|
|
void display_variationsChanged(bool value);
|
|
|
|
|
2020-01-24 12:31:51 +00:00
|
|
|
void diveSummaryTextChanged(QStringList);
|
2020-01-04 08:26:09 +00:00
|
|
|
private:
|
|
|
|
QMLInterface() {}
|
|
|
|
};
|
|
|
|
#endif // QMLINTERFACE_H
|