diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-18 00:33:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-18 15:22:13 -0700 |
commit | d63a3ce420fcaa6a4b576a840b9d17984f776b2a (patch) | |
tree | 98478fd7949a8d906080899a0944bac20e64170d | |
parent | d266fce08ef029669a8142ee1d5b9d6c8bc636af (diff) | |
download | subsurface-d63a3ce420fcaa6a4b576a840b9d17984f776b2a.tar.gz |
Save the last OSTC3 settings to the backup file
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | configuredivecomputer.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 2a7a8d95c..efda2729a 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -180,6 +180,21 @@ bool ConfigureDiveComputer::saveXMLBackup(QString fileName, DeviceDetails *detai writer.writeTextElement("Language", QString::number(details->language())); writer.writeTextElement("DateFormat", QString::number(details->dateFormat())); writer.writeTextElement("CompassGain", QString::number(details->compassGain())); + writer.writeTextElement("SafetyStop", QString::number(details->safetyStop())); + writer.writeTextElement("GfHigh", QString::number(details->gfHigh())); + writer.writeTextElement("GfLow", QString::number(details->gfLow())); + writer.writeTextElement("PressureSensorOffset", QString::number(details->pressureSensorOffset())); + writer.writeTextElement("PpO2Min", QString::number(details->ppO2Min())); + writer.writeTextElement("PpO2Max", QString::number(details->ppO2Max())); + writer.writeTextElement("FutureTTS", QString::number(details->futureTTS())); + writer.writeTextElement("CcrMode", QString::number(details->ccrMode())); + writer.writeTextElement("DecoType", QString::number(details->decoType())); + writer.writeTextElement("AGFSelectable", QString::number(details->aGFSelectable())); + writer.writeTextElement("AGFHigh", QString::number(details->aGFHigh())); + writer.writeTextElement("AGFLow", QString::number(details->aGFLow())); + writer.writeTextElement("CalibrationGas", QString::number(details->calibrationGas())); + writer.writeTextElement("FlipScreen", QString::number(details->flipScreen())); + writer.writeTextElement("SetPointFallback", QString::number(details->setPointFallback())); // Suunto vyper settings. writer.writeTextElement("Altitude", QString::number(details->altitude())); @@ -416,6 +431,51 @@ bool ConfigureDiveComputer::restoreXMLBackup(QString fileName, DeviceDetails *de if (settingName == "CompassGain") details->setCompassGain(keyString.toInt()); + if (settingName == "SafetyStop") + details->setSafetyStop(keyString.toInt()); + + if (settingName == "GfHigh") + details->setGfHigh(keyString.toInt()); + + if (settingName == "GfLow") + details->setGfLow(keyString.toInt()); + + if (settingName == "PressureSensorOffset") + details->setPressureSensorOffset(keyString.toInt()); + + if (settingName == "PpO2Min") + details->setPpO2Min(keyString.toInt()); + + if (settingName == "PpO2Max") + details->setPpO2Max(keyString.toInt()); + + if (settingName == "FutureTTS") + details->setFutureTTS(keyString.toInt()); + + if (settingName == "CcrMode") + details->setCcrMode(keyString.toInt()); + + if (settingName == "DecoType") + details->setDecoType(keyString.toInt()); + + if (settingName == "AGFSelectable") + details->setAGFSelectable(keyString.toInt()); + + if (settingName == "AGFHigh") + details->setAGFHigh(keyString.toInt()); + + if (settingName == "AGFLow") + details->setAGFLow(keyString.toInt()); + + if (settingName == "CalibrationGas") + details->setCalibrationGas(keyString.toInt()); + + if (settingName == "FlipScreen") + details->setFlipScreen(keyString.toInt()); + + if (settingName == "SetPointFallback") + details->setSetPointFallback(keyString.toInt()); + if (settingName == "Altitude") details->setAltitude(keyString.toInt()); |