diff options
author | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2013-09-01 11:14:54 -0300 |
---|---|---|
committer | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2013-09-10 14:45:25 -0300 |
commit | 3f8e183008530fb8e110b77d04cf794c46ba4720 (patch) | |
tree | edfd686ca9b323182142f36d2b15a6141dbb8ad8 /qt-ui/downloadfromdivecomputer.h | |
parent | 59da382613280b14b34df0921d308b910a36ce32 (diff) | |
download | subsurface-3f8e183008530fb8e110b77d04cf794c46ba4720.tar.gz |
improve DownloadDialog's error handling
shows an error message when libdivecomputer returns
an error.
Signed-off-by: Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.h')
-rw-r--r-- | qt-ui/downloadfromdivecomputer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h index f092314c0..e10d61b38 100644 --- a/qt-ui/downloadfromdivecomputer.h +++ b/qt-ui/downloadfromdivecomputer.h @@ -15,8 +15,10 @@ struct device_data_t; class DownloadThread : public QThread{ Q_OBJECT public: - explicit DownloadThread(QObject* parent, device_data_t* data); + DownloadThread(QObject* parent, device_data_t* data); virtual void run(); + + QString error; private: device_data_t *data; }; @@ -34,6 +36,7 @@ public: DOWNLOADING, CANCELLING, CANCELLED, + ERROR, DONE, }; |