mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4fc16b1674
commit
20eb62a98a
7 changed files with 150 additions and 60 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue