mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Implement rudimentary divecomputer download
Small changes to the names of elements the divecomputer download UI and very simplistic first stab at populating the device_data_t structure. This is lacking lots of things - it should remember the last vendor / product used - it should figure out which device (mount point) to offer - it needs proper error handling But it's a step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f4acbb02e4
commit
246fbd0333
3 changed files with 22 additions and 10 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include <QDialog>
|
||||
#include <QThread>
|
||||
#include <QHash>
|
||||
#include <QMap>
|
||||
#include "../libdivecomputer.h"
|
||||
|
||||
namespace Ui{
|
||||
class DownloadFromDiveComputer;
|
||||
|
|
@ -49,10 +51,12 @@ private:
|
|||
|
||||
QStringList vendorList;
|
||||
QHash<QString, QStringList> productList;
|
||||
QMap<QString, dc_descriptor_t *> descriptorLookup;
|
||||
device_data_t data;
|
||||
|
||||
QStringListModel *vendorModel;
|
||||
QStringListModel *productModel;
|
||||
void fill_computer_list();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue