aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.h')
-rw-r--r--qt-ui/downloadfromdivecomputer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h
index ef17df8d4..eefcc4d29 100644
--- a/qt-ui/downloadfromdivecomputer.h
+++ b/qt-ui/downloadfromdivecomputer.h
@@ -1,7 +1,9 @@
#ifndef DOWNLOADFROMDIVECOMPUTER_H
#define DOWNLOADFROMDIVECOMPUTER_H
+
#include <QDialog>
#include <QThread>
+#include <QHash>
namespace Ui{
class DownloadFromDiveComputer;
@@ -29,6 +31,7 @@ private:
device_data_t *data;
};
+class QStringListModel;
class DownloadFromDCWidget : public QDialog{
Q_OBJECT
public:
@@ -37,10 +40,19 @@ public:
public slots:
void on_ok_clicked();
void on_cancel_clicked();
+
+ void on_vendor_currentIndexChanged(const QString& vendor);
private:
Ui::DownloadFromDiveComputer *ui;
InterfaceThread *thread;
bool downloading;
+
+ QStringList vendorList;
+ QHash<QString, QStringList> productList;
+
+ QStringListModel *vendorModel;
+ QStringListModel *productModel;
+ void fill_computer_list();
};
#endif \ No newline at end of file