diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-05-26 16:40:50 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-05-27 11:07:20 -0700 |
commit | 7858376727ee467ae59a18d84d40e3148ea3e38b (patch) | |
tree | 9dc19db2ec7facb3641e79f3804685803d2c063b /core/downloadfromdcthread.h | |
parent | 85e92597b561f349d24f2181e763c6ed381654ce (diff) | |
download | subsurface-7858376727ee467ae59a18d84d40e3148ea3e38b.tar.gz |
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 <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/downloadfromdcthread.h')
-rw-r--r-- | core/downloadfromdcthread.h | 9 |
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> ? |