diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-25 07:28:47 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-26 10:58:15 -0700 |
commit | 43f122f9ff6eb933fcf831ac0b242f770204d2d5 (patch) | |
tree | 79e85a4ed5b33480bdcf458169941fc148f05ce5 /uemis.c | |
parent | 5305fb152b5cb31e81ac3f1ca2f2782d20b8bb83 (diff) | |
download | subsurface-43f122f9ff6eb933fcf831ac0b242f770204d2d5.tar.gz |
First implementation of native Uemis downloader
This includes one major hack that uses a private data structure from
libdivecomputer to allow us to show the Uemis Zurich as one computer the
user can import from.
Once the user has chosen the Uemis we don't use libdivecomputer but our
own downloader. Just like in the libdicecomputer case this runs in its own
thread and updates the import dialog with progress information.
The code also keeps track of the last dive that has been downloaded from a
Uemis computer so we only import new dives on subsequent downloads. And
since the Uemis Zurich gives us its device id, we make this a "per
divecomputer" property for people who dive with multiple Uemis Zurich
computers.
This uses the debugfile infrastructure to allow easily collecting
debugging output - especially on Windows where by default console output
is lost.
Known limitations: when the Uemis runs out of space (it uses its
filesystem for communication with the host computer) we have no graceful
way to reset things. This is why the code doesn't try to download ALL
dives on the computer but instead download them in increments of ten
dives. This clearly needs to be addressed once I understand how to reset
the device.
The Cancel button of the import dialog isn't correctly hooked up, yet.
I still need to figure out how to gracefully shut down a download without
potentially hanging the device.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
0 files changed, 0 insertions, 0 deletions