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:
Dirk Hohndel 2020-11-14 19:22:14 -08:00
parent 5a8db97819
commit 25d7c58c07
2 changed files with 23 additions and 3 deletions

View file

@ -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();