diff options
Diffstat (limited to 'qt-ui/configuredivecomputerthreads.h')
-rw-r--r-- | qt-ui/configuredivecomputerthreads.h | 12 |
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; }; |