Divelogs.de integration

Dirk Hohndel dirk at hohndel.org
Fri Nov 15 14:27:58 UTC 2013


On Fri, 2013-11-15 at 13:51 -0800, Thiago Macieira wrote:
> On sexta-feira, 15 de novembro de 2013 13:26:04, Dirk Hohndel wrote:
> > > Also, the Gtk version did not support downloading dives, which is what I
> > > am  implementing.
> > 
> > Correct. This was an addition fairly late in the 3.1 cycle and with an
> > eye to the upcoming Qt transition I punted on that... you can manually
> > download DLD files and import them. But for the Qt version I'd love to
> > have real upload / download integration if possible.
> 
> I've managed to execute a download, but there's no processing of the zip file 
> contents. The code is ready for whomever wants to implement the XML part. I've 
> even written the part that opens the zip file and each file inside :-)

We already have everything to open a DLD file (which is just such a
zip). Have you looked at "try_to_open_zip() in file.c?

> The part for the upload requires some testing. Since there's no UI to select 
> dives to be uploaded, I'm a bit stuck.

That should be fairly trivial. I'd simply hook into the context menu
where we already have "save as" and "export as UDDF". We should have a
generalized "Export" there and then open a menu where you are offered to
save as Subsurface XML, UDDF, upload to divelogs.de, upload to other web
sites as we add support for them.

Makes sense?

Who wants to implement that?

> Branch ready:
> 	git://github.com/thiagomacieira/subsurface (either branch there is fine)

I'll take a look to see if I can safely pull this into master

/D



More information about the subsurface mailing list