diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-11-14 19:22:14 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-03 13:26:55 -0800 |
commit | 25d7c58c07fc4b0bf3bc188f540a4ac66f6cd233 (patch) | |
tree | 001306735dd20297fb03181decac648c8fb313c2 /subsurface-downloader-main.cpp | |
parent | 5a8db978198682734cdecc69a480d21a16775d4a (diff) | |
download | subsurface-25d7c58c07fc4b0bf3bc188f540a4ac66f6cd233.tar.gz |
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>
Diffstat (limited to 'subsurface-downloader-main.cpp')
-rw-r--r-- | subsurface-downloader-main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/subsurface-downloader-main.cpp b/subsurface-downloader-main.cpp index 8a3231ce5..2993e5351 100644 --- a/subsurface-downloader-main.cpp +++ b/subsurface-downloader-main.cpp @@ -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(); |