summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerdialog.h
diff options
context:
space:
mode:
authorGravatar Joseph W. Joshua <joejoshw@gmail.com>2014-05-30 09:56:27 +0300
committerGravatar Thiago Macieira <thiago@macieira.org>2014-08-09 12:01:54 -0300
commita7c9b25b053ee77a816e1555f1c00c3e4b996396 (patch)
tree463cade2b4ceffd63f2f9ca4bd00cb5b34e8b306 /qt-ui/configuredivecomputerdialog.h
parent791fbee260b3b0884963b8ff0e2e2968ef130792 (diff)
downloadsubsurface-a7c9b25b053ee77a816e1555f1c00c3e4b996396.tar.gz
Read basic details from dive computer
Added classes for reading data from dive computer. This is at the basic level and I will expand it as I go along. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.h')
-rw-r--r--qt-ui/configuredivecomputerdialog.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/qt-ui/configuredivecomputerdialog.h b/qt-ui/configuredivecomputerdialog.h
index 4f4fbb36c..116968b79 100644
--- a/qt-ui/configuredivecomputerdialog.h
+++ b/qt-ui/configuredivecomputerdialog.h
@@ -4,6 +4,9 @@
#include <QDialog>
#include <QStringListModel>
#include "../libdivecomputer.h"
+
+class ConfigureDiveComputer;
+
namespace Ui {
class ConfigureDiveComputerDialog;
}
@@ -21,9 +24,17 @@ private slots:
void on_product_currentIndexChanged(const QString &product);
+ void readSettings();
+ void configMessage(QString msg);
+ void configError(QString err);
+ void on_cancel_clicked();
private:
Ui::ConfigureDiveComputerDialog *ui;
+ ConfigureDiveComputer *config;
+ device_data_t device_data;
+ void getDeviceData();
+
QStringList vendorList;
QHash<QString, QStringList> productList;
QHash<QString, dc_descriptor_t *> descriptorLookup;