summaryrefslogtreecommitdiffstats
path: root/configuredivecomputer.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-09-12 22:37:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-12 14:02:12 -0700
commita42df06dbfc9d55d74ee416d14ab79a8606f34f7 (patch)
tree6f0b5bedecd6b2d4366b39af308451216b0dcf0d /configuredivecomputer.h
parentf38f8ce4c9a04921a5835b5390b665ef74d05390 (diff)
downloadsubsurface-a42df06dbfc9d55d74ee416d14ab79a8606f34f7.tar.gz
Lift dis- and connect out from config operations
When working with ostc's via bluetooth, they will reboot and exit bluetooth mode when you send the disconnect command. Thats kinda inconvenient when you would like to read your settings, change something and write it back, you need to start bluetooth mode on your device twice. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/configuredivecomputer.h b/configuredivecomputer.h
index fe468ffc2..f14eeeca3 100644
--- a/configuredivecomputer.h
+++ b/configuredivecomputer.h
@@ -17,6 +17,7 @@ public:
void readSettings(device_data_t *data);
enum states {
+ OPEN,
INITIAL,
READING,
WRITING,
@@ -36,6 +37,11 @@ public:
bool restoreXMLBackup(QString fileName, DeviceDetails *details);
void startFirmwareUpdate(QString fileName, device_data_t *data);
void resetSettings(device_data_t *data);
+
+ QString dc_open(device_data_t *data);
+public
+slots:
+ void dc_close(device_data_t *data);
signals:
void progress(int percent);
void message(QString msg);