diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/downloadfromdcthread.cpp | 13 | ||||
-rw-r--r-- | core/downloadfromdcthread.h | 1 |
2 files changed, 13 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) diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h index e95cb7a98..ac83790e8 100644 --- a/core/downloadfromdcthread.h +++ b/core/downloadfromdcthread.h @@ -103,6 +103,7 @@ struct mydescriptor { * stay like this for now. */ void fill_computer_list(); +void show_computer_list(); extern QStringList vendorList; extern QHash<QString, QStringList> productList; extern QMap<QString, dc_descriptor_t *> descriptorLookup; |