summaryrefslogtreecommitdiffstats
path: root/configuredivecomputerthreads.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-01-20 22:40:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-21 17:03:21 +1200
commit1d67bae745e491cfe28806dc99f0db005649083d (patch)
treeb50c702c6b7d44536c6d463edec5e15e6c80f7f2 /configuredivecomputerthreads.h
parentba525df7665cff904818ccfc70c183f16c7b5f45 (diff)
downloadsubsurface-1d67bae745e491cfe28806dc99f0db005649083d.tar.gz
Add infrastructure to emit progress from threads
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.h')
-rw-r--r--configuredivecomputerthreads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/configuredivecomputerthreads.h b/configuredivecomputerthreads.h
index bc35caf5a..254d286ba 100644
--- a/configuredivecomputerthreads.h
+++ b/configuredivecomputerthreads.h
@@ -18,8 +18,11 @@ public:
signals:
void error(QString err);
void message(QString msg);
+ void progress(int value);
protected:
device_data_t *m_data;
+ void progressCB(int value);
+ static void event_cb(dc_device_t *device, dc_event_type_t event, const void *data, void *userdata);
};
class ReadSettingsThread : public DeviceThread {