summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-19 06:37:13 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-04-27 11:52:48 -0700
commitea7a7c6b24c749491ee56f99cad118cd4bc7aac7 (patch)
tree0bc0d0da32c70d3d3b028e89043241d1d3d62f80 /core/downloadfromdcthread.cpp
parent36749b28d90e3200614175afe87dddf2dc81ae75 (diff)
downloadsubsurface-ea7a7c6b24c749491ee56f99cad118cd4bc7aac7.tar.gz
QML UI: add supported dive computers to log file
In a more compact format than before. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/downloadfromdcthread.cpp')
-rw-r--r--core/downloadfromdcthread.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp
index 93ed1dd8b..da2140b11 100644
--- a/core/downloadfromdcthread.cpp
+++ b/core/downloadfromdcthread.cpp
@@ -148,7 +148,6 @@ void fill_computer_list()
productList[vendor].append(product);
descriptorLookup[QString(vendor) + QString(product)] = descriptor;
- qDebug() << "added supported DC: " << vendor << " " << product;
}
dc_iterator_free(iterator);
Q_FOREACH (QString vendor, vendorList)
@@ -181,6 +180,18 @@ void fill_computer_list()
qSort(vendorList);
}
+void show_computer_list()
+{
+ qDebug() << "Supported dive computers:";
+ Q_FOREACH (QString vendor, vendorList) {
+ QString msg = vendor + ": ";
+ Q_FOREACH (QString product, productList[vendor]) {
+ msg += product + ", ";
+ }
+ msg.chop(2);
+ qDebug() << msg;
+ }
+}
DCDeviceData *DCDeviceData::m_instance = NULL;
DCDeviceData::DCDeviceData(QObject *parent) : QObject(parent)