diff options
author | Joseph W. Joshua <joejoshw@gmail.com> | 2014-06-10 18:25:25 +0300 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2014-08-13 10:48:11 -0700 |
commit | 20eb62a98a70c1773ff99ece05f1c69e6ca8ce15 (patch) | |
tree | 0d7e18fd5405b0b259c9ae35b8315887dd4658b6 /qt-ui/configuredivecomputer.h | |
parent | 4fc16b16749a73b8c06d41cb7cb22b78c77ab29e (diff) | |
download | subsurface-20eb62a98a70c1773ff99ece05f1c69e6ca8ce15.tar.gz |
Polish up on classes
This patch polishes up on all classes added for dive computer
configuration to give a clean workflow. The classes can now
write and read data from the OSTC 3.
Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'qt-ui/configuredivecomputer.h')
-rw-r--r-- | qt-ui/configuredivecomputer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/configuredivecomputer.h b/qt-ui/configuredivecomputer.h index 65ceaa780..f21f02910 100644 --- a/qt-ui/configuredivecomputer.h +++ b/qt-ui/configuredivecomputer.h @@ -13,7 +13,7 @@ class ConfigureDiveComputer : public QObject Q_OBJECT public: explicit ConfigureDiveComputer(QObject *parent = 0); - void readSettings(DeviceDetails *deviceDetails, device_data_t *data); + void readSettings(device_data_t *data); enum states { INITIAL, @@ -27,9 +27,8 @@ public: QString lastError; states currentState; - DeviceDetails *m_deviceDetails; device_data_t *m_data; - void saveDeviceDetails(); + void saveDeviceDetails(DeviceDetails *details, device_data_t *data); void fetchDeviceDetails(); signals: @@ -38,6 +37,7 @@ signals: void readFinished(); void writeFinished(); void stateChanged(states newState); + void deviceDetailsChanged(DeviceDetails *newDetails); private: ReadSettingsThread *readThread; |