mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add infrastructure to emit progress from threads
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ba525df766
commit
1d67bae745
2 changed files with 23 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue