From 7858376727ee467ae59a18d84d40e3148ea3e38b Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 26 May 2017 16:40:50 +0200 Subject: QML UI: add the DownloadThread For this I had to also make the DCDeviceData accessible, and for that it needed to be a pointer. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- core/downloadfromdcthread.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'core/downloadfromdcthread.h') 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 ? -- cgit v1.2.3-70-g09d2