mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
downloader: first step to get instructions via CLI
This still doesn't do a thing, but at least it seems to get the information closer to where we want it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5a8db97819
commit
25d7c58c07
2 changed files with 23 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "core/settings/qPref.h"
|
||||
#include "core/tag.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/subsurface-string.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QLoggingCategory>
|
||||
|
@ -85,8 +86,10 @@ int main(int argc, char **argv)
|
|||
qDebug() << "loading dive data from" << files;
|
||||
print_files();
|
||||
if (!quit) {
|
||||
// do something
|
||||
;
|
||||
if (!empty_string(prefs.dive_computer.vendor) && !empty_string(prefs.dive_computer.product) && !empty_string(prefs.dive_computer.device)) {
|
||||
// download from that dive computer
|
||||
printf("Downloading dives from %s %s (via %s)\n", prefs.dive_computer.vendor, prefs.dive_computer.product, prefs.dive_computer.device);
|
||||
}
|
||||
}
|
||||
taglist_free(g_tag_list);
|
||||
parse_xml_exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue