summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>2013-09-01 11:14:54 -0300
committerGravatar Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>2013-09-10 14:45:25 -0300
commit3f8e183008530fb8e110b77d04cf794c46ba4720 (patch)
treeedfd686ca9b323182142f36d2b15a6141dbb8ad8 /qt-ui/downloadfromdivecomputer.h
parent59da382613280b14b34df0921d308b910a36ce32 (diff)
downloadsubsurface-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.h5
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,
};