summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-04-27 20:24:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 08:07:35 -0700
commita55efcf7d88e0521d754508b7ff9f0e89692950a (patch)
tree60e407cdbc9e38c077c0469d89cae12b413992c0 /desktop-widgets/downloadfromdivecomputer.h
parentdec47e11cd3aa1f4c6333a69c72df4c4d5e0628f (diff)
downloadsubsurface-a55efcf7d88e0521d754508b7ff9f0e89692950a.tar.gz
Move the fill_computer_list() out of widgets
fill_computer_list() creates a Qt friendly structure that contains all of the necessary information about dive computers and it's devices, and it's needed both in Qml and Widgets to allow the user to download their dives. This patch makes it possible to use the code in QML without duplication. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.h')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h
index 906cc6eb7..f137bcd5e 100644
--- a/desktop-widgets/downloadfromdivecomputer.h
+++ b/desktop-widgets/downloadfromdivecomputer.h
@@ -63,15 +63,11 @@ private:
DownloadThread *thread;
bool downloading;
- QStringList vendorList;
- QHash<QString, QStringList> productList;
- QMap<QString, dc_descriptor_t *> descriptorLookup;
device_data_t data;
int previousLast;
QStringListModel *vendorModel;
QStringListModel *productModel;
- void fill_computer_list();
void fill_device_list(int dc_type);
QString logFile;
QString dumpFile;