summaryrefslogtreecommitdiffstats
path: root/download-dialog.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 16:43:33 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 16:43:33 -0300
commitc7a5d0490fa5f4e8579e6a8e0fbdc7baf7c34145 (patch)
tree615ec1dbf0887d0e1ffeecf4ed7b1600ca0c0d6a /download-dialog.c
parent15bb4fccbb14c0e69637ca5920a1e68071700b8e (diff)
downloadsubsurface-c7a5d0490fa5f4e8579e6a8e0fbdc7baf7c34145.tar.gz
Skeleton code for a non-blocking UI thread for downloading dives from the DC
This is the skeleton code for a non-blocking ui-thread It already creates the first-thread ( 'do not block the ui' ) and the second thread ('download from the dive computer') We can in the future merge both in the same place - I didn't want to do that now because the download function is written in the libdivecomputer.c code, and I cant just transform that to a QThread and use signals, so I used two threads for that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'download-dialog.c')
-rw-r--r--download-dialog.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/download-dialog.c b/download-dialog.c
index 8f6220e31..bbd499aaf 100644
--- a/download-dialog.c
+++ b/download-dialog.c
@@ -3,24 +3,12 @@
#include "dive.h"
#include "divelist.h"
#include "display.h"
-#if USE_GTK_UI
-#include "display-gtk.h"
-#include "callbacks-gtk.h"
-#endif
#include "libdivecomputer.h"
const char *default_dive_computer_vendor;
const char *default_dive_computer_product;
const char *default_dive_computer_device;
-#if USE_GTK_UI
-static gboolean force_download;
-static gboolean prefer_downloaded;
-
-OPTIONCALLBACK(force_toggle, force_download)
-OPTIONCALLBACK(prefer_dl_toggle, prefer_downloaded)
-#endif
-
struct product {
const char *product;
dc_descriptor_t *descriptor;