summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/downloadfromdcthread.h')
-rw-r--r--core/downloadfromdcthread.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h
index b20fe17a6..0a188dcad 100644
--- a/core/downloadfromdcthread.h
+++ b/core/downloadfromdcthread.h
@@ -38,8 +38,6 @@ public:
int deviceId() const;
int diveId() const;
- void setDiveTable(struct dive_table* downloadTable);
-
/* this needs to be a pointer to make the C-API happy */
device_data_t* internalData();
@@ -60,16 +58,17 @@ private:
class DownloadThread : public QThread {
Q_OBJECT
+ Q_PROPERTY(DCDeviceData* deviceData MEMBER m_data)
+
public:
DownloadThread();
- void setDiveTable(struct dive_table *table);
void run() override;
- DCDeviceData& data();
+ DCDeviceData *data();
QString error;
private:
- DCDeviceData m_data;
+ DCDeviceData *m_data;
};
//TODO: QList<product> ?