diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-18 00:33:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-18 15:22:22 -0700 |
commit | 74f27a0a399a1f7c63d5542eec744102c301671f (patch) | |
tree | bf56cb41966f9e6de5615fbb516e7c3e2aba2821 /configuredivecomputer.h | |
parent | d63a3ce420fcaa6a4b576a840b9d17984f776b2a (diff) | |
download | subsurface-74f27a0a399a1f7c63d5542eec744102c301671f.tar.gz |
Add support to reset OSTC3 settings to default
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputer.h')
-rw-r--r-- | configuredivecomputer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configuredivecomputer.h b/configuredivecomputer.h index 4522e9fbe..8123576c1 100644 --- a/configuredivecomputer.h +++ b/configuredivecomputer.h @@ -21,6 +21,7 @@ public: INITIAL, READING, WRITING, + RESETTING, CANCELLING, CANCELLED, ERROR, @@ -35,6 +36,7 @@ public: bool saveXMLBackup(QString fileName, DeviceDetails *details, device_data_t *data); bool restoreXMLBackup(QString fileName, DeviceDetails *details); void startFirmwareUpdate(QString fileName, device_data_t *data); + void resetSettings(device_data_t *data); signals: void message(QString msg); void error(QString err); @@ -46,10 +48,12 @@ signals: private: ReadSettingsThread *readThread; WriteSettingsThread *writeThread; + ResetSettingsThread *resetThread; void setState(states newState); private slots: void readThreadFinished(); void writeThreadFinished(); + void resetThreadFinished(); void setError(QString err); }; |