summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerthreads.h
diff options
context:
space:
mode:
authorGravatar Joseph W. Joshua <joejoshw@gmail.com>2014-06-10 18:25:25 +0300
committerGravatar Thiago Macieira <thiago@macieira.org>2014-08-13 10:48:11 -0700
commit20eb62a98a70c1773ff99ece05f1c69e6ca8ce15 (patch)
tree0d7e18fd5405b0b259c9ae35b8315887dd4658b6 /qt-ui/configuredivecomputerthreads.h
parent4fc16b16749a73b8c06d41cb7cb22b78c77ab29e (diff)
downloadsubsurface-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/configuredivecomputerthreads.h')
-rw-r--r--qt-ui/configuredivecomputerthreads.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/qt-ui/configuredivecomputerthreads.h b/qt-ui/configuredivecomputerthreads.h
index c684cddaa..db54db460 100644
--- a/qt-ui/configuredivecomputerthreads.h
+++ b/qt-ui/configuredivecomputerthreads.h
@@ -11,31 +11,29 @@
class ReadSettingsThread : public QThread {
Q_OBJECT
public:
- ReadSettingsThread(QObject *parent, DeviceDetails *deviceDetails, device_data_t *data);
+ ReadSettingsThread(QObject *parent, device_data_t *data);
virtual void run();
QString result;
QString lastError;
signals:
void error(QString err);
+ void devicedetails(DeviceDetails *newDeviceDetails);
private:
- DeviceDetails *m_deviceDetails;
device_data_t *m_data;
};
class WriteSettingsThread : public QThread {
Q_OBJECT
public:
- WriteSettingsThread(QObject *parent, DeviceDetails *deviceDetails, QString settingName, QVariant settingValue);
+ WriteSettingsThread(QObject *parent, device_data_t *data);
+ void setDeviceDetails(DeviceDetails *details);
virtual void run();
QString result;
QString lastError;
signals:
void error(QString err);
private:
- device_data_t *data;
- QString m_settingName;
- QVariant m_settingValue;
-
+ device_data_t *m_data;
DeviceDetails *m_deviceDetails;
};