aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-10-18 00:33:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-18 15:21:12 -0700
commit1cc6b117770362a1273f24eaa51c27d58670708c (patch)
tree7f6119c726fbef29c0352a213607c53aa0210f96
parent0c7cc038921697e22a0a4a015d46f780e852427d (diff)
downloadsubsurface-1cc6b117770362a1273f24eaa51c27d58670708c.tar.gz
Define new OSTC3 settings in devicedetails
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--devicedetails.cpp44
-rw-r--r--devicedetails.h16
2 files changed, 60 insertions, 0 deletions
diff --git a/devicedetails.cpp b/devicedetails.cpp
index d6984b3fb..fa8765eff 100644
--- a/devicedetails.cpp
+++ b/devicedetails.cpp
@@ -27,7 +27,9 @@ DeviceDetails::DeviceDetails(QObject *parent) :
m_sp3(zero_setpoint),
m_sp4(zero_setpoint),
m_sp5(zero_setpoint),
+ m_setPointFallback(0),
m_ccrMode(0),
+ m_calibrationGas(0),
m_diveMode(0),
m_decoType(0),
m_ppO2Max(0),
@@ -50,6 +52,8 @@ DeviceDetails::DeviceDetails(QObject *parent) :
m_dateFormat(0),
m_compassGain(0),
m_pressureSensorOffset(0),
+ m_flipScreen(0),
+ m_safetyStop(0),
m_maxDepth(0),
m_totalTime(0),
m_numberOfDives(0),
@@ -325,6 +329,16 @@ void DeviceDetails::setSp5(const setpoint &sp5)
m_sp5 = sp5;
}
+bool DeviceDetails::setPointFallback() const
+{
+ return m_setPointFallback;
+}
+
+void DeviceDetails::setSetPointFallback(bool setSetPointFallback)
+{
+ m_setPointFallback = setSetPointFallback;
+}
+
int DeviceDetails::ccrMode() const
{
return m_ccrMode;
@@ -335,6 +349,16 @@ void DeviceDetails::setCcrMode(int ccrMode)
m_ccrMode = ccrMode;
}
+int DeviceDetails::calibrationGas() const
+{
+ return m_calibrationGas;
+}
+
+void DeviceDetails::setCalibrationGas(int calibrationGas)
+{
+ m_calibrationGas = calibrationGas;
+}
+
int DeviceDetails::diveMode() const
{
return m_diveMode;
@@ -505,6 +529,26 @@ void DeviceDetails::setPressureSensorOffset(int pressureSensorOffset)
m_pressureSensorOffset = pressureSensorOffset;
}
+bool DeviceDetails::flipScreen() const
+{
+ return m_flipScreen;
+}
+
+void DeviceDetails::setFlipScreen(bool flipScreen)
+{
+ m_flipScreen = flipScreen;
+}
+
+bool DeviceDetails::safetyStop() const
+{
+ return m_safetyStop;
+}
+
+void DeviceDetails::setSafetyStop(bool safetyStop)
+{
+ m_safetyStop = safetyStop;
+}
+
int DeviceDetails::maxDepth() const
{
return m_maxDepth;
diff --git a/devicedetails.h b/devicedetails.h
index 13311eca5..7f48d743e 100644
--- a/devicedetails.h
+++ b/devicedetails.h
@@ -101,9 +101,15 @@ public:
setpoint sp5() const;
void setSp5(const setpoint &sp5);
+ bool setPointFallback() const;
+ void setSetPointFallback(bool setSetPointFallback);
+
int ccrMode() const;
void setCcrMode(int ccrMode);
+ int calibrationGas() const;
+ void setCalibrationGas(int calibrationGas);
+
int diveMode() const;
void setDiveMode(int diveMode);
@@ -155,6 +161,12 @@ public:
int pressureSensorOffset() const;
void setPressureSensorOffset(int pressureSensorOffset);
+ bool flipScreen() const;
+ void setFlipScreen(bool flipScreen);
+
+ bool safetyStop() const;
+ void setSafetyStop(bool safetyStop);
+
int maxDepth() const;
void setMaxDepth(int maxDepth);
@@ -213,7 +225,9 @@ private:
setpoint m_sp3;
setpoint m_sp4;
setpoint m_sp5;
+ bool m_setPointFallback;
int m_ccrMode;
+ int m_calibrationGas;
int m_diveMode;
int m_decoType;
int m_ppO2Max;
@@ -236,6 +250,8 @@ private:
int m_dateFormat;
int m_compassGain;
int m_pressureSensorOffset;
+ bool m_flipScreen;
+ bool m_safetyStop;
int m_maxDepth;
int m_totalTime;
int m_numberOfDives;